Download MetaTrader 5
To add comments, please log in or register
Do you have idle PCs? Connect them to MQL5 Cloud Network and earn money!
Stefano Specia
Stefano Specia 2014.11.29 18:30 
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