OPEN-SOURCE SCRIPT

Osmosis [ChartPrime]

Actualizado
Osmosis is a multi indicator, multi period heatmap. Lookback periods can be mysterious as it can tend to seem very arbitrary. This tool allows users to see how price/volume reacts to short to long periods by visualizing all of the periods at the same time. This is useful because small periods are only good for short term movements while long periods are useful for long term movements. This more detailed view of market trends is analogues of multi time frame analysis. The lookback periods are arranged from bottom up, where the bottom of the indicator is the shortest period while the top is the longest period.

One major feature of this indicator is its ability to signal potential trend reversals. For example, a shift in the direction at the lower end of the heatmap can indicate a weakening of the current trend, suggesting a possible reversal. On the other hand, when the heatmap is fully saturated at all levels, it may indicate a strong trend that could be nearing a reversal point.

Another important and unique aspect of the Osmosis indicator is its automatic highlighting feature. This feature emphasizes regions within the heatmap that score exceptionally high or low, drawing attention to significant market movements or potential anomalies.

All of the indicators are normalized using min/max scaling driven by the highest highs and lows. The period of this scaling is adjustable by changing the "Lookback" parameter under settings. Delta length changes the lookback for "MA Delta" and "Volume Delta". A longer period corresponds to a smoother output. Fast Mode scales back the range of the indicator, literally halving the increment.

Here is a short description of what each input does:

  • Alternate Source: A choice to use a different data source for the indicator.
  • Source: An option to turn on or off the alternate data source.
  • Style: A selection menu to choose the visual style of the indicator.
  • Lookback: Adjusts how far back in time the indicator looks for its calculations.
  • Delta Length: Changes the length of time over which changes are measured.
  • Fast Mode: A setting that adjusts the range of the indicator for quicker analysis.
  • Enable Smoothing: A choice to smooth out the data for a cleaner look.
  • Smooth: Activates the smoothing feature.
  • Max Region: Highlights the highest value regions in the heatmap.
  • Max Threshold: Sets the threshold for what counts as a 'max' region.
  • Minimum Max Width: Determines the smallest size for a 'max' region to be highlighted.
  • Max Region Color: Chooses the color for the maximum value regions.
  • Max Top Line Alpha: Adjusts the transparency of the top line in max regions.
  • Max Bottom Line Alpha: Adjusts the transparency of the bottom line in max regions.
  • Line Width: Sets the thickness of the lines in the max regions.
  • Region Start Indication: Specifies where the max region starts.
  • Fill Max: Decides if the max regions should be filled with color and sets the transparency level for the color fill in max regions.
  • Minimum Region: Highlights the lowest value regions in the heatmap.
  • Minimum Threshold: Sets the threshold for what counts as a 'min' region.
  • Minimum Minimum Width: Determines the smallest size for a 'min' region to be highlighted.
  • Minimum Region Color: Chooses the color for the minimum value regions.
  • Minimum Top Line Alpha: Adjusts the transparency of the top line in min regions.
  • Minimum Bottom Line Alpha: Adjusts the transparency of the bottom line in min regions.
  • Minimum Line Width: Sets the thickness of the lines in the min regions.
  • Minimum Region Start Indication: Specifies where the min region starts.
  • Fill Minimum: Decides if the min regions should be filled with color and sets the transparency level for the color fill in min regions.
  • Color Presets: Provides pre-set color schemes.
  • Invert Color Scale: Flips the color scale.
  • Gradient Colors: Customizes individual colors for the gradient scale.


Available styles include:

'MACD Histogram'
imagen

'Normalized MACD'
imagen

'Slow MACD'
imagen

'MACD Percent Rank'
imagen

'MA Delta' (Delta Length set to 2)
imagen

'BB Width'
imagen

'BB Width Percentile'
imagen

'Stochastic'
imagen

'RSI'
imagen

'True Range OSC'
imagen

'Normalized Volume'
imagen

'Volume Delta'
imagen

'True Range'
imagen

'Rate of Change' (Smoothing set to 1)
imagen

'OBV' (Smoothing set to 1)
imagen

'MFI' (Smoothing set to 1)
imagen

'Trend Angle' (Smoothing set to 2 and fast mode off)
imagen
Notas de prensa
Code refactor for improved understanding.
Notas de prensa
Modified defaults.
Moving AveragesOscillators

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


También en:

Exención de responsabilidad