josetolima

Alert GetTrendStrategy BTCUSD

2251 visitas
283
//@version=2
study(title="Alert GetTrendStrategy BTCUSD", shorttitle="GTSBTC", overlay=true)
tim=input('370')

out1 = security(tickerid, tim, open)
out2 = security(tickerid, tim, close)


//buy = cross(out1,out2) and out1<out2 and close
//sell = cross(out1,out2) and out1>out2 and close
//long = (buy*close? buy*close : na)
//short = (sell*close? sell*close : na)

plot(out1,color=red, title='Rojo')
plot(out2,color=green, title='Verde')

//Marker
//plotshape(long, "Buy", shape.triangleup, location.belowbar, blue, offset=0, text="buy", size=size.tiny)
//plotshape(short, "Sell", shape.triangledown, location.abovebar, red, offset=0, text="sell", size=size.tiny)


gtsBuy = crossover(security(tickerid, tim, close),security(tickerid, tim, open))
alertcondition(gtsBuy,title='BuyCondition', message='BTCUSD GTS Buy')


gtsSell = crossunder(security(tickerid, tim, close),security(tickerid, tim, open))


alertcondition(gtsSell,title='SellCondition', message='BTCUSD GTS Sell')

plotshape(gtsBuy, "Buy", shape.triangleup, location.belowbar, #400FEA, offset=0, text="Buy", size=size.tiny)
plotshape(gtsSell, "Sell", shape.triangledown, location.abovebar, fuchsia, offset=0, text="Sell", size=size.tiny)
Script protegido
Este script se publica con código cerrado y puede usarlo libremente. Puede marcarlo como favorito para utilizarlo en un gráfico. No puede ver ni modificar su código fuente.
¿Quiere utilizar este script en un gráfico?

Comentarios

Simple, easy and wonderful!
The only small problem is that buy and sell can't be read in dark graphics mode.
Thanks
+1 Responder
Are the alarms accurate as on the display?
Responder
This is repaint indicator
Responder
what is this repaint?
Responder
It has a problem. Signal is changing after bar closed.
Responder
how can plot this in chart
Responder
Hi can you aslo do alert for sell plz ?
Responder