My indicator Works like this:
Step 1: A Trade Losses, Variable lastTradeLoss++;
Step 2: A Trade Wins, Variable lastTradeLoss = 0; //Resets Variable at each Win
Step 3: Two Losses in a Row, if(lastTradeLoss > 1) //This Triggers my Loss Sequence
//CONSECUTIVE LOSSes ALGORITHM: Fires Only after 2 Consecutive Losses #region Losses Algorithm if(lastTradeLoss > 1) { beginSequence = true; lossPerSeq = lastTradeLoss; //Amount of Losses for This Sequence }
But every time a Trade Wins the lastTradeLoss = 0;
So I tried this totalLossPerSeq = lossPerSeq; and that can't work cause of the resetting problem.
I tried totalLossPerSeq = lossPerSeq + totalLossPerSeq; and that Didn't work either.
BASICALLY: I just want to know how should I store the Number of Losses from each Sequence so that it can be used in A.C.L calculation. Without storing every single Loss taken. that's why I RESET lastTradeLoss at the End of Each Sequence.
Thanks in ADvance
Comment