if(Close[0]>High[1])
{
EnterLong(); // Buying at the open
// I want to exit on the close of this same bar
}
// Now, assuming that that the statement in the if(...) is true and I go long at the next bar's open how do I exit the long position on the close of the same bar?

Comment