The manual for LossStreakLong and LossStreakShort says:
Current number of losses in a row, or 0 if the last trade was a winner.
It seems like this reset to 0 does not work for phantom trades, but does work for real trades (ie Lots=1). Can you please confirm?
In my logic, I want to switch to phantom mode if the recent string of trades are a loss, but then switch back to real trading once there is at least 1 phantom win. I am trying to turn off trading during the chop period but restart when trending resumes.
For example, in this code I can see that the streak counter is getting reset to 0 periodically, but only if I never switch to phantom mode. Once I enable the phantom trades, the counter stops resetting.
if (Price[0]>LowPass200 && trend==1)
{
//if (LossStreakLong>3) Lots=-1; //phantom
//else
{
Lots=1;
reverseLong(1,tmf);
}
}
else if (Price[0]<LowPass200 && trend==0)
{
//if (LossStreakShort>3) Lots=-1; //phantom
//else
{
Lots=1;
reverseShort(1,tmf);
}
}
THANKS