Gerçek TradingView ruhuyla, bu komut dosyasının yazarı açık kaynak olarak yayınladı, böylece yatırımcılar bunu anlayabilir ve doğrulayabilir. Yazara tebrikler! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından belirlenmektedir. Bir grafikte kullanmak için favorilerinize ekleyebilirsiniz.
Bu komut dosyasını bir grafikte kullanmak ister misiniz?
Hi @ceyhun - you have done a great job. I have a query if you can answer then will be great help for me. What is HHV here? Is it highest of 10 days high or something else?
@Harichandraa, thank you . the original settings are good, try the strategy.
settings
example (*2)(/2)
Multiplier-2.5-5-10
atr period 5-10-20
HHV period -10-20-30
Yorumlar
settings
example (*2)(/2)
Multiplier-2.5-5-10
atr period 5-10-20
HHV period -10-20-30
study("ATR Trailing Stoploss",overlay=true)
Atr=input(5,title="Atr Period")
Hhv=input(10,title="HHV Period")
Mult=input(2.5,title="Multiplier")
Barcolor=input(true,title="Barcolor")
TS=highest(high-Mult*atr(Atr),Hhv),barssince(close>highest(high-Mult*atr(Atr),Hhv) and close>close)
Color=iff(close>TS,color.green,iff(close<TS,color.red,color.black))
barcolor(Barcolor? Color:na)
plot(TS,color=Color,linewidth=3,title="ATR Trailing Stoploss")
plotshape(crossover(close,TS),color=color.green,text="Buy",location=location.belowbar,style=shape.labelup,textcolor=color.white,transp=10)
plotshape(crossunder(close,TS),color=color.red,text="Sell",style=shape.labeldown,textcolor=color.white,transp=10)
Thnx