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.
Hello! Need help solving this problem.... There is a normal parabolic which is triggered by the standard algorithm...
Open [1] > iSAR(NULL,5,0.02,0.2,1) parabolic is below (less than) the open price
if Open [1] < iSAR(NULL,5,0.02,0.2,1) parabolic is BELOW (more than) the open price
And it works by checking the opening of each new candle with this algorithm, every 5 minutes.... and if it is n4 or d1, it is very tedious and long but i need to use the algorithm so it would work immediately (ie times when we see that the parabolic trend has changed), and i need it to start working on a changed trend ......
Good afternoon. There is a volumenReversalHook 1.01 indicator that works with Volumen Reversal V1. It works, but only displays buy signals. Can you help fix it to also display sell signals?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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