Counter Question

 

Sorry to bother you, but are these the same or is there a time when the're not?

   int counted_bars = IndicatorCounted();
   if(counted_bars < 0){return(1);} counted_bars--;

versus

   int counted_bars = IndicatorCounted();
   if(counted_bars < 0){return(-1);}
 
Of course they are not the same.
 
  1. No need for the decrement. Contradictory information on IndicatorCounted() - MQL4 programming forum

  2. You should stop using the old event handlers and IndicatorCounted() and start using new event handlers.
              Event Handling Functions - Functions - Language Basics - MQL4 Reference
              How to do your lookbacks correctly.
Reason: