Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 476

 
Vladimir Ozharovskiy:
It seems to have helped... Thank you!
 
It helped but not much... ) Market still won't let me pass the test. ( So what's up with the function call?)
 
Vladimir Ozharovskiy:
It helped but not much... ) Market still won't let me pass the test. ( So what's up with the function call?)

It's a little early for you to be responsible for both your own development in the marketplace and the reputation of the marketplace.

 
Still, how do I get this check into the EA... Placed the code at the end as indicated above... The compiler doesn't swear... When checking for placement in the marketplace it gives error131
 
Vladimir Ozharovskiy:
Still, how do I get this check into the EA... Placed the code at the end as indicated above... The compiler doesn't swear... When checking it for placement in the marketplace it gives error131

Try placing it above. And then in the middle. Krylov's Quartet...

 
Artyom Trishkin:

Try placing it higher. And then in the middle. Krylov's quartet...

Cleverly.... As far as I understand, you need a response before an order is set. A function needs to be inserted there... How do you do that?

 
Vladimir Ozharovskiy:

Cleverly.... As far as I understand, you need a response before an order is set. A function needs to be inserted there... But how to do it ???

Please listen to my clever advice.

Forum on trading, automated trading systems & strategy testing

Any questions newbies may have about MQL4, help and discussion about algorithms and codes

Artyom Trishkin, 2018.02.21 19:46

It's a little early for you to be responsible both for your own development in the marketplace and for the reputation of the marketplace.


 

Are unions not supported in MQL4??? The reference has them...

class CDictionary : public CObject
  {
private:
   int               m_array_size;
   int               m_total;
   bool              m_free_mode;
   bool              m_auto_free;
   int               m_index;
   ulong             m_hash;
   CList            *m_array[];
   union casting_struct              // вот тут возникает ошибка
   {
      double d_value;
      ulong  l_value;
   }casting;

'union' - declaration without type dictionary2.mqh 95 4

'casting_struct' - declaration without type dictionary2.mqh 111 4

2 error(s), 0 warning(s) 3 1


 
int deinit()
  {
   Deinit_All_Objects(); //удалить все созданные объекты на графике
   EventKillTimer();
   return(0);
  }
Created a timer, butEventKillTimer doesn't reset the timer itself when the timeframe changes as it does with drawn objects?
 
Alexey Volchanskiy:

Are unions not supported in MQL4??? The reference has them...

'union' - declaration without type dictionary2.mqh 95 4

'casting_struct' - declaration without type dictionary2.mqh 111 4

2 error(s), 0 warning(s) 3 1


Checked at home, everything compiles in mql4.

You made a mistake somewhere else.

Reason: