The exit logic is quite simple Please help.
// The buyBar is simply the bar that has been entered on, When the market is under it by 4 ticks close the trade.
if (Close[1] < Open[CurrentBar - buyBar]- 4 * TickSize)
{
if (counter < 6)
{
orderQuantityReverse +=1;
}
ExitLong("Stop Loss", "");
if (eminiTradeSize != 0)
{
ExitLong(1, Positions[1].Quantity, "Stop Loss", "");
}
takeTrade = true;
}
Comment