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

 

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?

 
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.

 
angevoyageur:

thank you;

problem solved.