QuantNomad

Trailing SL Strategy [QuantNomad]

I'm a big fan of simple strategies.
This one is a very simple one. So it consists only from one Trailing SL. When SL is hit, the position is reversed and SL is tracked for a new position.
You can choose one of 3 types of SL:
  • % of your price
  • ATR - it is calculated as current ATR * multiplier
  • Absolute
As you can see even this simple strategy can show pretty good results.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
Courses:
PineScript Programming: https://qntly.com/pinepro
TradingView Essential: https://qntly.com/tve

Access to Pro Indic.: https://qntly.com/proind

YouTube: https://qntly.com/youtube
Discord: https://qntly.com/discord
Telegram: https://qntly.com/tel

Comments

Sir that's not working no so singnal on chart
+8 Reply
QuantNomad Choudhary122
@Choudhary122, What symbol/timeframe are you using? I bet default params are too big for your stuff. Try to switch to ATR, should work on anything.
+5 Reply
The script works pretty good. Can also please add alerts?
+5 Reply
QuantNomad SIO34trade
@SIO34trade, here are alerts for this strategy:
+4 Reply
Hey looks pretty good! Thanks for share! Any recommend about TF, 1h and above?
+2 Reply
QuantNomad WallStSpecter
@WallStSpecter, Yep, it seems to work pretty good at 1-4H. I think it might work pretty good and on other time-frames with different settings.
+2 Reply
WallStSpecter QuantNomad
@QuantNomad, thanks for respond. Have a good day!
Reply
Thank you for your special help for my question on mail system... Also for sharing... Good job
+1 Reply
Hi QuantNomad, I love this strategy of yours.

I am trying to adapt your code to run on my script which uses pyramiding only when my PNL is negative. The case is, after my first entry, I have 2 more pyramiding orders to average my position at strategic places

The question is, I want to start trailing only after my last pyramiding order get filled. May you suggest me how would I do this?

Thanks in advance
Reply
Great stuff.

Hiw do i get to your training course and can I get help with my first pine code which is only part working. Thanks for the cool code!
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter