Why does my strategy exceed my 5% stop loss?
Author: ronwealth
Creation Date: 7/26/2016 4:24 PM
profile picture

ronwealth

#1
I built a strategy with rules. Rules are: buy at market, sell at close, and sell at 5% based trailing stop. When I run the strategy and save it the trades button shows several losses from 6 to 12%. Why does the strategy not activate my 5% stop loss? How can I fix this? Thank you from a newbie.
profile picture

Eugene

#2
Welcome to the forums.

Please click "Open code in new Strategy window", copy the code and paste it here when replying. Also, could you indicate the symbols, time frame and chosen position sizing? We'll try to tell what went wrong then.

P.S. Correction: there's no "trades button". There can be either Trade Ticket view (which doesn't have to do with backtesting, activated by Ctrl-T) or Trades tab (visualizer). The latter is what you mean.
profile picture

ronwealth

#3
CODE:
Please log in to see this code.

symbol = LABD timeframe = 10/20/2015 to 7/25/2016 position size = $5000 (RP)
profile picture

Eugene

#4
Firstly, SellAtTrailingStop is not a stop loss. Check out the definition in investopedia, for instance. Thus, your strategy does not have a stop loss installed.

Most importantly, the trailing stop haven't had a chance to trigger just once: the AtClose order prevails. Disable it, drop a "Sell at stop loss" condition and check out the difference.
profile picture

ronwealth

#5
Thanks Eugene. It works fine now.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).