Discussion of article "MQL5 Wizard: New Version"

 

New article MQL5 Wizard: New Version is published:

The article contains descriptions of the new features available in the updated MQL5 Wizard. The modified architecture of signals allow creating trading robots based on the combination of various market patterns. The example contained in the article explains the procedure of interactive creation of an Expert Advisor.

Author: MetaQuotes

 
Rosh:

The article MQL5 Wizard: New Version has been published:

Author: MetaQuotes

Just one question. Where is this 439 build?
 
Buter:
Just one question. Where is this 439 build?

It's been here for five days.

 
sergeev:

has been here for five days.

There's 430 on the link
 
Buter:
There's 430 on the link

that's a question for the SD.

I got it updated to 439 automatically.

 
sergeev:

that's a question for the SD.

I got it updated to 439 automatically.

Okay. We'll look for it.
 

Shouldn't the Symbol for the second Stochastic oscillator on the final screen of Signal properties in step 2 read "EURJPY" and not "current"?!?!

Stochastic Oscillator
  • votes: 8
  • 2010.01.26
  • MetaQuotes Software Corp. | English Russian Chinese Spanish Portuguese
  • www.mql5.com
The Stochastic Oscillator compares where a security’s price closed relative to its price range over a given time period.
 

Hi Victor,

Seems nice, but I guess I found an error in SignalStoch.mqh : 

int CSignalStoch::LongCondition()
  {
   int result=0;
   int idx   =StartIndex();
   //--- check direction of the main line
   if(DiffMain(idx)>0.0)
     {
      //--- the main line is directed upwards, and it confirms the possibility of price growth
      if(IS_PATTERN_USAGE(0))
         result=m_pattern_0;      // "confirming" signal number 0
      //--- if the model 1 is used, look for a reverse of the main line
      if(IS_PATTERN_USAGE(1) && DiffMain(idx+1)<0.0)
         result=m_pattern_1;      // signal number 1
      //--- if the model 2 is used, look for an intersection of the main and signal line
      if(IS_PATTERN_USAGE(2) && DiffMainSignal(idx)>0.0 && DiffMainSignal(idx+1)<0.0)
         result=m_pattern_2;      // signal number 2
      //--- if the models 3 or 4 are used, look for divergences
      if((IS_PATTERN_USAGE(4) || IS_PATTERN_USAGE(5)))  should be  ((IS_PATTERN_USAGE(3) || IS_PATTERN_USAGE(4))) 
        {
         //--- perform the extended analysis of the oscillator state
         ExtStateStoch(idx);
         //--- if the model 3 is used, look for the "divergence" signal
         if(IS_PATTERN_USAGE(3) && CompareMaps(1,1))      // 0000 0001b
            result=m_pattern_3;   // signal number 3
         //--- if the model 4 is used, look for the "double divergence" signal
         if(IS_PATTERN_USAGE(4) && CompareMaps(0x11,2))   // 0001 0001b
            return(m_pattern_4);  // signal number 4
        }
     }
//--- return the result
   return(result);
  }

  1. Can you please explain how CompareMaps is working. I have to admint I do not understand that proc.
  2. I don't understand neither the call to IS_PATTERN_USAGE define in ExpertSignal.mqh

#define IS_PATTERN_USAGE(p)          ((m_patterns_usage&(((int)1)<<p))!=0)

 

 

Regards,

Olivier
 

 

Are there plans to add multicurrency to the wizard?

 
Erm955:

Is multicurrency planned to be added to the master?

How much more multicurrency should it be? Each signal can be given a symbol name and a timeframe on which it will work. Explain what you are missing in the current version, please.
Документация по MQL5: Предопределенные переменные / _Symbol
Документация по MQL5: Предопределенные переменные / _Symbol
  • www.mql5.com
Предопределенные переменные / _Symbol - Документация по MQL5
 
Rosh:
How much more multi-currency should it be? Each signal can be given a symbol name and a timeframe on which it will work. Explain what you are missing in the current version, please.

I have generated an Expert Advisor. The main interval is current, signals on EURUSD and GBPUSD. I set it in the tester on EURUSD. After testing, all trades are only on EURUSD. No trades on GBPUSD. Similarly, I put it on GBPUSD (as a working one). After testing, all transactions only on the pound. That's why the question?