ceyhun

ATR Trailing Stoploss

ATR Trailing Stoploss

Buy=crossover(close, TS )
Sell=crossunder(close, TS )
Versionshinweise: mistakes were improved
Von Favorisierten Skripten entfernen Zu Favorisierten Skripten hinzufügen

Kommentare

Can someone please help me understand how the HHV is calculated? Thanks!
+25 Antworten
Have you back tested this over different time frames? I'm wondering what time frame gives the best returns using this indicator.
+13 Antworten
Good Work !! Glad to see this indicator in Trading View. For 5 mins chart, which is best ATR multiplier setting ?
+5 Antworten
ceyhun Harichandraa
@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
+1 Antworten
Vapt ceyhun
@ceyhun, strategy too good. can you please suggest how to write chartink screener based on this.
Antworten
@Vapt, tnks It was easy if there was defined coding but I don't think chartink screener can be done..
Antworten
ceyhun ceyhun
@ceyhun, //@version=4
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)
Antworten
@ceyhun, How do I set 'Multiplier' and 'HHV period'? Inside Pine Editor? Where can I set them inside the code?

Thnx
+2 Antworten
thanks man ,great work!
+1 Antworten
ceyhun BKTRADE
@BKTRADE, thank you.
Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender So funktioniert es! Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden