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?
+4 Reply
QuantNomad SIO34trade
@SIO34trade, here are alerts for this strategy:
+2 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
hey, thanks for sharing! this looks good. i saw the type of trailing stoploss by % of the price works well in crypto and stock market. but if i wanna put it as fixed pip points for take profit and stop loss in forex trading, can you please tell how can i change on line 37? thanks!
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
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out