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.

Snapshot

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:
Snapshot

Snapshot
Of course this can change easily when price changes.

If "Back" is enabled, the IP in history can be seen:
Snapshot

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.
Snapshot
Snapshot


🔹 Trend

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

Snapshot

Snapshot

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,...

Snapshot


🔶 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.
Snapshot

🔶 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"
Snapshot

💜 PURPLE BARS 😈

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

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


LuxAlgo Dev: luxalgo.com
PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
Auch am:

Haftungsausschluss