Je suis le Mr. Mauricio.
Jai développe mon robot a 3 ans sur tradingview avec des excellentes résultat , maintenant je voudrais quil soyez développe sur mt5.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Mauriciothanatos // BRLTRADING
//@version=4
study("BOT-ICHIMOKU 02", shorttitle=" BOT-ICHIMOKU 02", overlay=true)
// Criação e Plotagem do Ichimoku //
res = input(title="Time Frame", type=input.resolution, defval="")
TKlength = input(9, "Tenkansen Length", minval=1)
KJlength = input(26, "Kijunsen Length", minval=1)
CSHSlength = input(25, "Chikouspan Length/Horizontal Shift", minval=1)
SBlength = input(52, "SenkouspanB Length", minval=1)
SAlength = input(26, "SenkouspanA Length", minval=1)
TK = avg(lowest(TKlength), highest(TKlength))
KJ = avg(lowest(KJlength), highest(KJlength))
CS = close
SB = avg(lowest(SBlength), highest(SBlength))
SA = avg(TK, KJ)
TKk = security(syminfo.tickerid, res, TK)
KJk = security(syminfo.tickerid, res, KJ)
CSk = security(syminfo.tickerid, res, CS)
SBk = security(syminfo.tickerid, res, SB)
SAk = security(syminfo.tickerid, res, SA)
plot(TKk, linewidth=2, color=#fa04d9, title="TenkanSen")
plot(KJk, linewidth=2, color=#3002fc, title="KijunSen")
plot(CSk, offset=-CSHSlength, linewidth=1, color=#76ff14, title="ChikouSpan")
SenkouA = plot(SAk, offset=CSHSlength, linewidth=1, color=#d1d4dc, title="SenkouSpanA")
SenkouB = plot(SBk, offset=CSHSlength, linewidth=1, color=#434651, title="SenkouSpanB")
fill(SenkouA, SenkouB, color=SAk > SBk ? #d1d4dc : #434651, transp=80)
// Criação e plotagem das EMAs //
ema_50 = ema(close, 50)
sma_200 = sma(close, 200)
senkou_A = SA
senkou_B = SB
chikou_S = CS
tenkan_S = TKk
kinjun_S = KJk
plot(ema_50, linewidth=2, color=#ff9800, title="EMA 50")
plot(sma_200, linewidth=2, color=#fde800, title="SMA 200")
//Parametros de Compra
compra = open[0] < senkou_A[25] and close[0] > senkou_A[25] and close[0] > senkou_B[25] and senkou_A[0] >= senkou_B[0]
and chikou_S[0] > high[25] and chikou_S[0] > senkou_A[50] and chikou_S[0] > senkou_B[50] and open[0] < close[0]
and close[0] > tenkan_S[0] and close[0] > kinjun_S[0] and chikou_S[0] > tenkan_S[25] and chikou_S[0] > kinjun_S[25]
plotshape(compra, style=shape.triangleup, color=#76ff14, size=size.tiny, location=location.belowbar, title="BUY", text="BUY", textcolor=#76ff14)
alertcondition(compra, title="BUY P", message=" BUYY!!! {{exchange}}:{{ticker}}")
compra1 = open[0] < tenkan_S[0] and open[0] < kinjun_S[0] and open[0] < senkou_B[25] and open[0] < senkou_A[25] and open[0] < ema_50[0] and open[0] < sma_200[0]
and close[0] > tenkan_S[0] and close[0] > kinjun_S[0] and close[0] > senkou_A[25] and close[0] > ema_50[0] and close[0] > sma_200[0]
and senkou_A[0] >= senkou_B[0] and chikou_S[0] > high[25] and chikou_S[0] > senkou_A[50] and chikou_S[0] > senkou_B[50]
and chikou_S[0] > tenkan_S[25] and chikou_S[0] > kinjun_S[25] and chikou_S[0] > ema_50[25] and chikou_S[0] > sma_200[25]
//and sma_200[0] > sma_200[5]
plotshape(compra1, style=shape.triangleup, color=#76ff14, size=size.tiny, location=location.belowbar, title="BUY+", text="BUY+", textcolor=#76ff14)
alertcondition(compra1, title="BUY + P", message=" BUY +!!! {{exchange}}:{{ticker}}")
//Parametros de Venda
venda = open[0] > senkou_B[25] and close[0] < senkou_B[25] and close[0] < senkou_A[25] and senkou_A[0] <= senkou_B[0]
and chikou_S[0] < low[25] and chikou_S[0] < senkou_A[50] and chikou_S[0] < senkou_B[50] and open[0] > close[0]
and close[0] < tenkan_S[0] and close[0] < kinjun_S[0] and chikou_S[0] < tenkan_S[25] and chikou_S[0] < kinjun_S[25]
plotshape(venda, style=shape.triangledown, color=#b40505, size=size.tiny, location=location.abovebar, title="SELL", text="SELL", textcolor=#76ff14)
alertcondition(venda, title="SELL P", message="SELL!!! {{exchange}}:{{ticker}}")
venda1 = open[0] > tenkan_S[0] and open[0] > kinjun_S[0] and open[0] > senkou_A[25] and open[0] > senkou_B[25] and open[0] > ema_50[0] and open[0] > sma_200[0]
and close[0] < tenkan_S[0] and close[0] < kinjun_S[0] and close[0] < senkou_B[25] and close[0] < ema_50[0] and close[0] < sma_200[0]
and senkou_A[0] <= senkou_B[0] and chikou_S[0] < high[25] and chikou_S[0] < senkou_A[50] and chikou_S[0] < senkou_B[50]
and chikou_S[0] < tenkan_S[25] and chikou_S[0] < kinjun_S[25] and chikou_S[0] < ema_50[25] and chikou_S[0] < sma_200[25]
//and sma_200[0] < sma_200[5]
plotshape(venda1, style=shape.triangledown, color=#b40505, size=size.tiny, location=location.abovebar, title="SELL+", text="SELL+ ", textcolor=#76ff14)
alertcondition(venda1, title="SELL + P", message="SELL +!!! {{exchange}}:{{ticker}}")