Download MetaTrader 5

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

To add comments, please log in or register
Share links from other resources. Now they have a description.
Mehrdad Shiri
4480
Mehrdad Shiri 2013.05.01 08:50 

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
30739
Alain Verleyen 2013.05.01 09:08  
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
4480
Mehrdad Shiri 2013.05.01 09:33  
angevoyageur:

thank you;

problem solved.

To add comments, please log in or register