Hello voici :
//====================================================================
// Stoch Fast (5,3) vs Stoch Slow (25,15) – Crossover Breakout
// Flèches + Lignes verticales dans le panneau Stoch
//====================================================================
DEFPARAM drawonlastbaronly = false
//—————————————————-
// Paramètres
//—————————————————-
periodKfast = 5
smoothKfast = 3
periodKslow = 25
smoothKslow = 15
//—————————————————-
// Calculs Stoch (syntaxe moderne PRT)
//—————————————————-
Kfast = Stochastic[periodKfast, smoothKfast](close) // Fast %K (5,3)
Kslow = Stochastic[periodKslow, smoothKslow](close) // Slow %K (25,15)
//—————————————————-
// Signaux
//—————————————————-
buySignal = Kfast CROSSES OVER Kslow
sellSignal = Kfast CROSSES UNDER Kslow
//—————————————————-
// Flèches + texte sur le graphique principal
//—————————————————-
IF buySignal THEN
DRAWARROWUP(barindex, low*0.995) COLOURED(0,255,0)
ENDIF
IF sellSignal THEN
DRAWARROWDOWN(barindex, high*1.005) COLOURED(255,0,0)
ENDIF
//—————————————————-
// Lignes verticales dans le sous-graphique Stoch
//—————————————————-
IF buySignal THEN
DRAWVLINE(barindex) COLOURED(120,255,120)
ENDIF
IF sellSignal THEN
DRAWVLINE(barindex) COLOURED(255,120,120)
ENDIF
RETURN