Problems with constants in prewritten Stochastic indicator

To add comments, please log in or register
Stefano Specia
Stefano Specia  
Hi everybody, unfortunately I didn't manage to find any valuable explanation for a problem.
I'm building a stochastic oscillattor from scratch based on the one built by MT4-5 team and located and named as Stochastic in the 'Indicators' folder.

Supposing they do not possess any value, how can constant variables like rates_total and prev_calculated be inserted in if operators as conditions?
Are these lines crucial for regular functioning of the indicator? Sorry if I don't get the point.
Here is a little part of the code:
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])

Thank you in advance!
To add comments, please log in or register