Public class ovs million.
Major problem and updates :
🤨 too Recursive buy/ sell signal, seems data are noised by btc.
🥵Working and tested with 100% occuracy solution := sma 100 : time frame 45 min : FALLOW DAY TRENDING
Sniper entry on 3 min Time Frame ------------
💌Sma 100 - 3min T.F. : waiting for bullish trend
TRUE SIGNAL ON 45 AND 30 MIN TIME FRAME :
Need Trailing take profit to perform
Profit : 1200$
30$ margin
300$ taille
Stop loss : no
Leverage : 33
🥐 With the compliment of Trading Je
// 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=5
indicator("Ovs millions",overlay=true)
plage = input.int(33,"plage")
abs = input.int(33,"sma")
clos = ta.sma(close,abs)
val = input.float(0,"valeur d ajustement")
plaged= input.int(83,"sommets")
float dm =0
float dd =0
for i = 0 to plage
m= clos-clos[1]>0?true:false
diff= math.abs(clos-clos[1])
dm := m? dm+diff:dm
dd := m==false? dd+diff:dd
alertes = math.abs(dm[1]-dm[2]) > val and math.abs(dd-dd[1])>val
alertea = math.abs(dd[1]-dd[2]) > val and math.abs(dm-dm[1])>val
bas = ta.lowest(close,plaged)
haut = ta.highest(close,plaged)
plot(bas,offset=13)
plot(haut,offset=13)
plot(clos,color=color.yellow)
// ( alertes or alertea)
// alert("Le prix a augmenté de 33 USD par rapport aux 13 dernières bougies !", alert.freq_once_per_bar)
//otchar(alertes,"vente",color=color.red,format=)
plotshape(series=alertea, location=location.abovebar, color=color.green, style=shape.labelup, title="Alerte", text="●")
plotshape(series=alertes, location=location.abovebar, color=color.red, style=shape.labelup, title="Alerte", text="■")
clo= plot(close)
f1= plot(close+dm,color=color.green)
f2 = plot(close-dd,color=color.red)
fill(clo,f1,color=color.green)
fill(clo,f2,color=color.red)
plotshape(series= close==bas and dd >dm , location=location.belowbar, color= color.green, style=shape.labelup, title="☘🟢", text="🟢BUY")
plotshape(series= close==haut and dm > dd , location=location.belowbar, color= color.red, style=shape.labeldown, title="☘🟢", text="🔴SELL")
if (close==bas and dd>dm)
alert(" Alerte achat ", alert.freq_once_per_bar)
//lot( ta.sma(close,10))
//lot(ta.sma(close,20))
//ot(ta.sma(close,50))
mmm= ta.sma(close,100)
pw= mmm-mmm[1]>0
plot(mmm, color= pw ?color.green : color.red, linewidth=8)