I couldn't achieve with short entry but below code works in long entry please help or guide me to also accomplish on short entry.
/Thanks, SM.
protected override void OnBarUpdate()
{
if (CurrentBar < BarsRequiredToTrade)
return;
if(CrossAbove(EMA1, EMA2, 1) && Position.MarketPosition == MarketPosition.Flat)
EnterLong();
else if (CrossBelow(EMA1, EMA2, 1))
ExitLong();
}

Comment