I am currenty using EnterLongStopLimit to achieve this but I get this error: "Buy stop or buy stop limit can't be placed below the market. affected Order: Buy 1 StopLimit @ 1067.0x1067.4" The GetCurrentAsk() price for this example was 1067.2
Here's my code:
limitPrice = GetCurrentAsk() + 2*TickSize;
limitStop = GetCurrentAsk() - 2*TickSize;
myEntryOrder = EnterLongStopLimit(limitPrice, limitStop);
First, I want to make sure I'm using the correct command. If so, I do not understand why I'm getting this error message. I assumed that GetCurrentAsk() is the 'market' so I don't know why the order is placed below it?
Any insight is greatly appreciated!

Comment