OPEN-SOURCE SCRIPT

Intersection Point

This publication focusses at the intersection of 2 lines, and a trend estimation derived from a comparison of Intersection Point value against current price value.

스냅샷

The formula to calculate the Intersection Point (IP) is:




🔶 USAGE

🔹 Future / Past Intersection

The position where 2 lines would intersect in the future is shown here by extending both lines and a yellow small line to indicate its location:
스냅샷

스냅샷
Of course this can change easily when price changes.

If "Back" is enabled, the IP in history can be seen:
스냅샷

The yellow line which indicates the IP is only visible when it is not further located then +/- 500 bars from current bar.
If this point is further away, lines towards the IP still will be visible (max 500 bars further) without the IP.
스냅샷
스냅샷


🔹 Trend

The calculated intersection price is compared with the latest close and used for estimating the trend direction.

스냅샷

스냅샷

When close is above the intersection price (I), this is an indication the market is trending up, if close is below I, this would indicate the market is trending down.

The included bands can be useful for entry/SL/TP,...

스냅샷


🔶 DETAILS

🔹 Map.new()

All values are put in a map.new() with the function value()
The latest Intersection is also placed in this map with the function addLastIntersectValue() and retrieved at the last bar (right top)


🔹 Intersection Point Line

The intersection price can be made visible by enabling "Intersection Price" in SETTINGS -> STYLE. To ensure lines aren't drawn all over the place, this value is limited to maximum high + 200 days-ATR and minimum low - 200 days-ATR.
스냅샷

🔶 SETTINGS

🔹 Choose the value for both lines:

Type: choose between
• open, high, low, close,
• SMA, EMA, HullMA, WMA, VWMA, DEMA, TEMA
   • The Length setting sets 1 of these Moving Averages when chosen
• src 1 -> You can pick an external source here

🔹 Length Intersection Line: Max length of line:
Intersection Line will update untillthe amount of bars reach the "Length Intersection Line"
스냅샷

💜 PURPLE BARS 😈

• Since TradingView has chosen to give away our precious Purple coloured Wizard Badge, bars are coloured purple 😊😉
educationalforecastingTrend Analysis

오픈 소스 스크립트

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

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


LuxAlgo Dev: luxalgo.com
PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
또한 다음에서도:

면책사항