OPEN-SOURCE SCRIPT

Osmosis [ChartPrime]

업데이트됨
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'
스냅샷

'Normalized MACD'
스냅샷

'Slow MACD'
스냅샷

'MACD Percent Rank'
스냅샷

'MA Delta' (Delta Length set to 2)
스냅샷

'BB Width'
스냅샷

'BB Width Percentile'
스냅샷

'Stochastic'
스냅샷

'RSI'
스냅샷

'True Range OSC'
스냅샷

'Normalized Volume'
스냅샷

'Volume Delta'
스냅샷

'True Range'
스냅샷

'Rate of Change' (Smoothing set to 1)
스냅샷

'OBV' (Smoothing set to 1)
스냅샷

'MFI' (Smoothing set to 1)
스냅샷

'Trend Angle' (Smoothing set to 2 and fast mode off)
스냅샷
릴리즈 노트
Code refactor for improved understanding.
릴리즈 노트
Modified defaults.
Moving AveragesOscillators

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항