case (int)State.ST_SIGLONG:
// we got triggered
if (Position.MarketPosition == MarketPosition.Long)
{
LPrint("SIGLONG, entered position at " + Position.AvgPrice.ToString());
iState = (int)State.ST_INLONG;
}
else
{
On a sim account this works correctly. On a live account the property shows Flat even though the trade has been executed with the result that we never enter the correct next state of "In a long position"

Comment