I am trying to set Profit Targets and Stop Losses according to the Values from an ATR with a user-defined Period. For example, While the strategy is based on Renko, the Stop-Loss and Take Profits are based on a 240-Minute ATR. I have two problems with this:
1. How do I set the Order Fill Resolution to Ticks when I use the ATR on a second Data Series (I don't see another way to accomplish the task above)
2. It seems that the Stop-Loss and Take-Profit orders are executing right after the order has been placed (See attachment). How can this be fixed? I have tried Tick- and Pip-based SL and TP Modes.
I have attached the strategy code, as well as a screenshot from the Strategy analyzer.
Thanks in advance,
Marius
Comment