Pine Script (TradingView)
Ceci est un exemple Pine Script TradingView pour cet indicateur. Collez-le dans l'editeur Pine TradingView, ajoutez-le au graphique, puis ajustez les parametres selon votre marche et votre unite de temps.
//@version=6
indicator("Williams Alligator Indicator", overlay=true)
jaw = ta.sma(hl2, 13)
teeth = ta.sma(hl2, 8)
lips = ta.sma(hl2, 5)
awake = lips > teeth and teeth > jaw
longSignal = ta.crossover(lips, teeth) and lips > jaw
exitSignal = ta.crossunder(lips, teeth)
plotshape(longSignal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plotshape(exitSignal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
plot(jaw, "Jaw (13)", color=color.blue, linewidth=2)
plot(teeth, "Teeth (8)", color=color.red, linewidth=2)
plot(lips, "Lips (5)", color=color.green, linewidth=2)