DislikedHello dear programmers, I'm having a problem with: possible loss of data due to type conversion from 'long' to 'double' {image} // Fill arrays with price and volume data for(int i = 0; i < bars; i++) { MqlRates rates[]; if(CopyRates(_Symbol, PERIOD_M1, i, 1, rates) > 0) { priceArray[i] = (rates[0].high + rates[0].low + rates[0].close) / 3.0; // Typical pricevolumeArray[i]
= rates[0].tick_volume; } } Can someone help me with this? My sincere thanks in advance!
"Edited:" This code is for mq5
Ignored
The variable array tick_volume[] is long:
And your volumeArray[] is double.
That's why you are getting this warning.
Define your volumeArray[] as long.
Inserted Code
long volumeArray[];
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!