Gorbie

GBPJPY 4h Indicator

327 visualizzazioni
29
327 0
Strategy + Indicator (with the same name).

Make your personal E-mail Alert for the entry.
Rimuovi dagli script preferiti Aggiungi agli script preferiti
study(title="gj4h", shorttitle="gj4h", overlay=true)

fastl = security(tickerid, "240", sma(close, 8))
slowl = security(tickerid, "240", sma(close, 60))
tpl = input(title="Take profit", type=integer, defval=5450)
sll = input(title="Stop loss", type=integer, defval=2950)
fasts = security(tickerid, "240", sma(close, 9))
slows = security(tickerid, "240", sma(close, 71))
tps = input(title="Take profit", type=integer, defval=5970)
sls = input(title="Stop loss", type=integer, defval=3200)

buy = cross(fastl,slowl) and fastl>slowl and close
sell = cross(fasts,slows) and fasts<slows and close
long = (buy*close? buy*close : na)
short = (sell*close? sell*close : na)

//Signal
plot(fastl, color=silver, trackprice=false, title="8", transp=80)
plot(slowl, color=gray, trackprice=false, title="60", transp=80)
plot(fasts, color=silver, trackprice=false, title="9", transp=80)
plot(slows, color=gray, trackprice=false, title="71", transp=80)

//Alert
plotshape(long, "Alert Buy", shape.triangleup, location.belowbar, black, offset=0, text="buy", size=size.auto)
plotshape(short, "Alert Sell", shape.triangledown, location.abovebar, black, offset=0, text="sell", size=size.auto)

//Entry
entrybuy = security(tickerid, "60", long)
plot(entrybuy, "Buy price", style=linebr, linewidth=3, color=blue, trackprice=true, offset=0)
entrysell = security(tickerid, "60", short)
plot(entrysell, "Sell price", style=linebr, linewidth=3, color=red, trackprice=true, offset=0)

//Long
tpbuy = long + tpl/100000*100
tpbb = security(tickerid, "60", tpbuy)
plot(tpbb, "Long Take", style=linebr, linewidth=3, color=green, trackprice=true, offset=0)
slbuy = long - sll/100000*100
slbb = security(tickerid, "60", slbuy)
plot(slbb, "Long Stop", style=linebr, linewidth=3, color=fuchsia, trackprice=true, offset=0)

//Short
tpsell = short - tps/100000*100
tpss = security(tickerid, "60", tpsell)
plot(tpss, "Short Take", style=linebr, linewidth=3, color=green, trackprice=true, offset=0)
slsell = short + sls/100000*100
slss = security(tickerid, "60", slsell)
plot(slss, "Short Stop", style=linebr, linewidth=3, color=fuchsia, trackprice=true, offset=0)


Home Screener azioni Screener forex Screener cripto Calendario economico Show Come funziona Caratteristiche Grafico Costi Regolamento Moderatori Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Centro di supporto Invita un amico Suggerisci funzionalità Blog & Novità FAQ Wiki Twitter
Profilo Impostazioni profilo Account e fatturazione Invita un amico I miei ticket di supporto Centro di supporto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci