PROTECTED SOURCE SCRIPT

Swings P1 / P2 / P3

58
Swing detection via ta.pivothigh/ta.pivotlow (len/len), so labels appear after pivot confirmation (len bars). P2 = swing high, P3 = swing low, P1 marks the prior pivot at trend transition (HH/HL → up, LL/LH → down). Optional ATR minimum leg-length filter.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.