Store variable value to Array (MQL5)

 

Hello all,

I need to store variable values into an array

i tried :

   double AverageRSI=(MaxRSI+MinRSI)/2;
   
   //--- Copy Average values to buffer
   ArrayFill(average_rsi_buffer,0,2,AverageRSI);

But it doesn't work

Can anyone help me ?

 
chpeller:

I need to store variable values into an array

i tried :

But it doesn't work

"doesn't work" means?

In any case, show more codes so that people here can straightaway run and see what is wrong.

 
  1. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.

  2. Post all relevant code. We have no idea what average_rsi_buffer is, or where those two line are.
Reason: