Implicit string to number conversion

 

Implicit string to number conversion warning occurs next to all values in the array. Don't understand why considering each value returns a double. How can input the values for RSI240P0, RSI240P1, RSI240P2 in the array without getting that warning? 


   double RSI240P0 = iRSI(NULL, PERIOD_H4, RSIPeriod, PRICE_CLOSE, 0);
   double RSI240P1 = iRSI(NULL, PERIOD_H4, RSIPeriod, PRICE_CLOSE, 1);
   double RSI240P2 = iRSI(NULL, PERIOD_H4, RSIPeriod, PRICE_CLOSE, 2);

   double RSIValues[3] = {"RSI240P0", "RSI240P1", "RSI240P2"};
 
  1. Each value does not return anything.

    "RSI240P0", "RSI240P1", "RSI240P2"

    Those are strings. They have nothing to do with your double variables.

  2. How to get the values into the array? Assign them.

       double RSIValues[3];
    RSIValues[0] = RSI240P0;
    RSIValues[1] = RSI240P1;
    RSIValues[2] = RSI240P2;
    

    Or drop the variables and assign the values directly from the iRSI calls.