Questions from Beginners MQL4 MT4 MetaTrader 4 - page 174

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
Forum on Trading, Automated Trading Systems and Strategy Tests
Questions from beginners MQL4 MT4 MetaTrader 4
leonerd, 2019.03.01 10:54
Hello.
Can you please advise how to do this correctly.
There is a global collection of objects:
There is an additional class where a lot of calculations are done and this includes creating objects and adding them to the collection:
class CCheck : public CArrayObj { } bool CCheck::SomeMethod(void) { CSample *sample_object=new CSample(); array.Add(sample_object); }
This additional object of CCheck class I create regularly in a loop. But I can't destroy it, because I need CSample objects in the array collection. If I destroy CCheck, then I lose the sample_objects from the array.
They won't.
Instead of Open [1] use, for example, iOpen(Symbol(),PERIOD_M5,...
help me out
Why won't it show all trends? Are the quotes bad or a bug in the code?
I've solved the problem of the first circle and the second one I can't figure out from the code
help me out
Why won't it show all trends? Are the quotes bad or a bug in the code?
I've solved the problem of the first circle and the second one I can't figure out from the code
is there any command you need for the EA