I want to know how exit the trade after the bar closes. I tryed with :
if((Position.MarketPosition == MarketPosition.Short) && (BarsSinceEntryExecution() == 0))
{
ExitShort();
}
And that do this:
So I tryed with:
if((Position.MarketPosition == MarketPosition.Short) && (BarsSinceEntryExecution() == 1))
{
ExitShort();
}
And that do this:
The thing that I want to do is this:

Comment