if (CrossAbove(DEMA1, SMA55, 1))
{
ExitShort(); // to exist all long positions
EnterLong(1, "First Long A"); // start fresh long
Print( "First Long A");
}
//other condition for adding to existing position
{ ..... }
If my position is 10, the above block exits shorts of 10 then immediately adds 10 long and one for my "first long A" .
What is wrong with this code or we have a bug here?
Comment