Variable problem

 
Hello to all, 

For some time I have been trying to get the number of consecutive maximum losses at the end of my backrest in a variable but my program returns a completely different number than what I see in my program... here it is:

   double OnTester()
      {

       MaxConsecutivesLoss =STAT_CONLOSSMAX_TRADES;
       return (MaxConsecutivesLoss);

  

       }
   


Thanks in advance :-D
 
Hello Mr Roeder,

I read your different links and I wanted to thank you very much for your answer which helped me a lot.

Good luck and thank you!