Questions from Beginners MQL4 MT4 MetaTrader 4 - page 174

 

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:

CArrayObj array;

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.

 
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 ......

here's how to do it????

 
ponochka:
here's how to do it????

Instead of Open [1] use, for example, iOpen(Symbol(),PERIOD_M5,...

 
Question on the tester. How to increase the number of bars on small timeframes, H1 and less? And also simulation quality
 
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?
 

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

Files:
AHMDI_0.mq4  9 kb
AHMD0.jpg  381 kb
 
raboco3:

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

I think I got it right, but why am I missing lines?
 
Do you guys know how to find out how to find out the STATE OF THE BALANCE AT A DATE?
 
is there any command you need for an advisor
 
Vyacheslav Yanchenkov:
is there any command you need for the EA

Calculate from the beginning of the story to the date. All deposits, withdrawals, profits.
There is no specific function.
Reason: