Core Architecture Shift in Pine v5
1. ta.lowestbars() Index Offset: ta.lowestbars(low[1], 15) returns a negative offset (e.g., -4 means 4 bars before bar 1, so 5 bars ago from the current candle). Subtracting this value converts it cleanly into a positive shift index (1 - (-4) = 5) that can index into low[5] or stochK[5].
2. Native Dynamic Indexing: In Pine v5, using variables inside series subscripting (stochK[shiftRecentLow]) is natively supported without needing array.get() calls.
3. plotshape() vs Objects: Unlike MT4/MT5 where drawing persistent chart objects clutters chart memory, plotshape() evaluates once per bar on the GPU/server engine and doesn't require any manual cleanup code.
4. Alert Engine Integration: The included alertcondition() functions allow instant webhook routing out to automated trading bots or Telegram alerts.
How to detect divergence in forex scalping?
Re: How to detect divergence in forex scalping?
Cool, but it seems to me little bit more complicated.
Do you think it is possible to make it more simple?
Do you think it is possible to make it more simple?
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.