Possible loss of data due to type conversion [solved]

 
               int bandsHandle = iBands(_Symbol, PERIOD_CURRENT, BB_Period, BB_Deviation, 0, PRICE_CLOSE);

               double bbUpper[];
               double bbMiddle[];
               double bbLower[];
               CopyBuffer(bandsHandle, 0, 0, 1, bbUpper);
               CopyBuffer(bandsHandle, 1, 0, 1, bbMiddle);
               CopyBuffer(bandsHandle, 2, 0, 1, bbLower);


possible loss of data due to type conversion test407.mq5 92 77


Does anyone have an idea how I can resolve this warning?

 

If it is meant to be MQL5 you need to post all your code. The above lines should not generate loss of data warning.

 

Oh I found the issue. Possibly you defined BB_Period as double type. To remove the warning define it as integer.

 
Yashar Seyyedin #:

Oh I found the issue. Possibly you defined BB_Period as double type. To remove the warning define it as integer.

but is this MQL5 code? It was posted in the MT4 section and over 12 hours yet mods have not flagged it 

 
Chioma Obunadike #:
mods

I already missed @Fernando Carreiro.

 
Chioma Obunadike #: but is this MQL5 code? It was posted in the MT4 section and over 12 hours yet mods have not flagged it 

Moved.