Download MetaTrader 5

"OnCalculate "; when used "const double &price[]" ; WHAT MEAN?

To add comments, please log in or register
Mehrdad Shiri
4585
Mehrdad Shiri  

hi.

"OnCalculate ";  when used  "const double &price[]" ; WHAT MEAN?

LIKE THIS:

int OnCalculate(const int rates_total,   
                const int prev_calculated,
                const int begin,          
                const double &price[])    
.
.
.
      HistBuffer[bar]=Direct*(price[bar]-Bands[bar]);
.
.
.

price[]" ; WHAT MEAN?

Alain Verleyen
Moderator
32417
Alain Verleyen  
TIMisthebest:

hi.

"OnCalculate ";  when used  "const double &price[]" ; WHAT MEAN?

LIKE THIS:

price[]" ; WHAT MEAN?

Do you read this, see section OnCalculate ?

price[] give you access to Open, Close, High, ... user can choose which price to use when placing the indicator on a chart.

Mehrdad Shiri
4585
Mehrdad Shiri  
angevoyageur:

thank you;

problem solved.

To add comments, please log in or register