ATR Trailing Stoploss

ATR Trailing Stoploss

Buy=crossover(close, TS )
Sell=crossunder(close, TS )
ملاحظات الأخبار: mistakes were improved
ملاحظات الأخبار: bug fix
ملاحظات الأخبار: fix
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


Can someone please help me understand how the HHV is calculated? Thanks!
+88 رد
Have you back tested this over different time frames? I'm wondering what time frame gives the best returns using this indicator.
+58 رد
JohnMust BelsizeLion
@BelsizeLion, did you found out?
+10 رد
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?
+24 رد
Good Work !! Glad to see this indicator in Trading View. For 5 mins chart, which is best ATR multiplier setting ?
+19 رد
ceyhun Harichandraa
@Harichandraa, thank you . the original settings are good, try the strategy.
example (*2)(/2)
atr period 5-10-20
HHV period -10-20-30
+7 رد
Vapt ceyhun
@ceyhun, strategy too good. can you please suggest how to write chartink screener based on this.
+1 رد
@Vapt, tnks It was easy if there was defined coding but I don't think chartink screener can be done..
ceyhun ceyhun
@ceyhun, //@version=4
study("ATR Trailing Stoploss",overlay=true)
Atr=input(5,title="Atr Period")
Hhv=input(10,title="HHV Period")

TS=highest(high-Mult*atr(Atr),Hhv),barssince(close>highest(high-Mult*atr(Atr),Hhv) and close>close)
barcolor(Barcolor? Color:na)
plot(TS,color=Color,linewidth=3,title="ATR Trailing Stoploss")

+4 رد
@ceyhun, How do I set 'Multiplier' and 'HHV period'? Inside Pine Editor? Where can I set them inside the code?

+9 رد