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.
Size:
Color:
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.
Size:
Color:
CODE:
Please log in to see this code.
symbol = LABD timeframe = 10/20/2015 to 7/25/2016 position size = $5000 (RP)
Size:
Color:
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.
Size:
Color:
Thanks Eugene. It works fine now.
Size:
Color: