if (BarsSinceExit() > 0 || BarsSinceExit() == -1 && ...............) //to prevent me from taking multiple entry orders in the same bar.
{
EnterLong();
}
if (BarsSinceEntry() == 0) // exit at the end of the same bar's signal
{
ExitLong();
}
ie, i enter long, now i want to exit at the close of the same bar, rather than waiting for the open of the next bar
i looked around the forums and couldnt get anything to work..
Comment