@square-creator-811034073
le plus simple mais eficasse indicateur.
a combiner avec d autres et l observation ( fin de figures etc)
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © jeromehorus
//@version=6
indicator("AAAGenesis 45 minutes",overlay=true)
int count=0
float tp =0
if (bar_index > 0)
for i=0 to 83
mp = close[i]-close[i+1]>=0?true:false
dp = math.abs(close[i]-close[i+1])
tp := mp ? tp+dp: tp-dp
trend = tp<=0?false: true
tp :=0
if (bar_index > 0)
for i=6 to 89
mp = close[i]-close[i+1]>=0?true:false
dp = math.abs(close[i]-close[i+1])
tp := mp ? tp+dp: tp-dp
trend6 = tp<=0?false: true
plotshape(series= trend and trend6, location=location.belowbar, color= color.green, style=shape.labelup, title="☘🟢", text="🦄")plotshape(series= trend==false and trend6==false, location=location.belowbar, color= color.red, style=shape.labelup, title="☘", text="🔥")