rates_total

 
Hi, I'm just new to MQL, could someone please explain what I should understand by 'rates_total'? Is it a variable to count the processed bars, or is it a number that gives the total bars available? I can't find anything substantial in the MQL5 Language Reference. Thanks.
 
Kenny Lewis:
Hi, I'm just new to MQL, could someone please explain what I should understand by 'rates_total'? Is it a variable to count the processed bars, or is it a number that gives the total bars available? I can't find anything substantial in the MQL5 Language Reference. Thanks.

You didn't look very hard. Look up OnCalculate()

OnCalculate

[in]  Size of the price[] array or input series available to the indicator for calculation. In the second function type, the parameter value corresponds to the number of bars on the chart it is launched at.



 
Keith Watford:

You didn't look very hard. Look up OnCalculate()

OK, thanks. I'm finding the MQL5 Lang Ref quite confusing, which is part of my problem. Some of the examples are a bit off the point, and don't really inform the text very well. But then I only started about 6 weeks ago.
Reason: