I'm hoping I'm just doing something stupid but I cannot figure out what I'm doing wrong. I have a reversal strategy that's meant to place a limit order below the previous candle close. In my log I can see it trying to place the order at the correct price but it's instantly filling instead of placing the order at the correct price.
I'm using this code to find what the entry limit price should be
EntryLimitPrice=Low[1]-TickSize;
This is my trade entry line ...
myEntryOrder = EnterShortLimit(1, EntryLimitPrice, "RobReversal");
If I print EntryLimitPrice before the entry, it says it's 17609.
But it's entering incorrectly at 17611.5. Almost straight after the candle closes.
Here is a snippet from my log, it looks like it should be entering it at the correct price - 17609, but you'll see the fill price is 17611.50
As you can see from the image below, the it should never have filled as the price never hit 17609.
Hopefully I'm missing something and this is an easy fix! please let me know if this should be working or what I can check!
Thanks
Andy
Comment