i expect that when the condition = true ---> send the MIT order at High[0] or Low[0]
but the thing is once i send the MIT order, the order will just filled right at the next sec.
in the picture attached, the condition isLong=True. the MIT order shoud be right at the pp(the golden line)
but it just fill at next order.
I am not sure what is wrong here
-----------------------------------------------------------------------------------------------------------------------------
if (isLong)
{
_entryOrder = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.MIT, posSize,0,
High[0]+(RSI_Tick*0.25),"", EnterLongName);
}
if (!isLong)
{
_entryOrder = SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.MIT, posSize, 0,
Low[0]-(RSI_Tick*0.25),"", EnterShortName);
}
----------------------------------------------------------------------------------------------------------------------
Comment