I tried to do a reverse trade but I found a problem in each method.
An exemple I tried :
if (Position.MarketPosition == MarketPosition.Short)
{ if(GetCurrentAsk(0) > (Position.AveragePrice + 10*TickSize))
{ EnterLong(2); }
}
else if (Position.MarketPosition == MarketPosition.Long)
{ if(GetCurrentBid(0) < (Position.AveragePrice - 10*TickSize))
{ EnterShort(2); }
}
I would like to know if there is a method adopted by NinjaTrader to do a reverse. I would like you to help me to do reverse trade by code.
THANKS.

Comment