The goal is to move from a simple EnterLong() where my trade gets jammed into the market mid-bar to a more elegant EnterLongMIT() where my order could be perched one tick over the signal bar where it will wait for the market to trigger it, subsequently triggering my target and stop-loss protection orders.
I have read the docs and it seems that EnterLongMIT() from the managed approach is the right choice for this. However, I'm not seeing it work as intended. Also, while the method accepts up to 5 arguments there is only one example of its usage in the docs which does no meet my needs. I'm double confused.
Can I simply replace:
EnterLong(1, "My Trade");
with
EnterLongMIT(1, High[0] + (10 * TickSize), "My Trade");
Now, I thought would place my order 10 ticks above the signal bar (for testing I'm doing 10 ticks just so I can clearly see it's working). However, when I try the strategy in the historical playback, even at 1x, it places the order right above the signal and it immediately triggers.
What do you think I'm doing wrong?
Thanks,
Coop
Comment