
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Im new to this forum and mql5.
Let's say I want to work (do some calculation) with last 100 candles everytime a new candle appears.
MqlRates rates[];
ArraySetAsSeries(rates,true);
int copied=CopyRates(Symbol(),0,0,100,rates);
if(copied>0)
{ //do something
}
Is calling copyrates function each time a new candle appears ok?
Only the last (newest) candle data is changed.
Isn't copying all the existing data again is a waste(memory, efficency) ?
Please tell me you understand what I'm saying.
Should I follow another approch like using a LinkedList or something?
Thanks