Discussion of article "MQL5 Wizard: New Version" - page 7

 
uncleVic:

The significance of each market model, embedded with a signal, is set in the class constructor. The values are selected experimentally and are not the truth in the last instance.

There are methods for setting the significance of each model in the class, but they are not available from the Wizard yet.

There are a lot of posts and comments that "each market model has its own weight" sometimes the values of some models are given

For example: From here

Option 2.

The price crossed the ascending MA indicator from top to bottom. This corresponds to one of the market modelsembedded in the MA module , which implies price growth. Its significance is equal to 10. At the same time, the Stochastic oscillator turned downwards and formed a divergence with the price. This is one of the marketmodels embedded in the Stochastic module , suggesting a price drop. The significance of this model is 80

Is it possible to post a list of those values, which are embedded in the models, even experimentally?

For now they are not available from the Wizard, because this is an important parameter and we need to know its value to cover it at least at first with the weight of the signal.

because we constantly have to deal with unknown value when working with signals, and when there are many of them......

 
IvanIvanov:

For now they are not available from the Wizard, because this is an important parameter and you need to know its value to cover it at least at first with the weight of the signal.

because we constantly have to deal with an unknown value when working with signals, and when there are many of them......

Look in the constructor of the signal module class, there you can see these values

//+------------------------------------------------------------------+
//| Constructor CSignalCCI.|
//| INPUT: no.|
//| OUTPUT: no.|
//|| REMARK: no.|
//+------------------------------------------------------------------+
void CSignalCCI::CSignalCCI()
  {
//--- initialisation of protected data
   m_used_series=USE_SERIES_HIGH+USE_SERIES_LOW;
//--- setting default values for the oscillator parameters
   m_periodCCI  =14;
//--- setting default "weights" of the market models
   m_pattern_0  =90;         // model 0 "the oscillator has required direction"
   m_pattern_1  =60;         // model 1 "reverse behind the level of overbuying/overselling"
   m_pattern_2  =100;        // model 3 "divergence of the oscillator and price"
   m_pattern_3  =50;         // model 4 "double divergence of the oscillator and price"
  }
Документация по MQL5: Основы языка / Типы данных / Структуры и классы
Документация по MQL5: Основы языка / Типы данных / Структуры и классы
  • www.mql5.com
Основы языка / Типы данных / Структуры и классы - Документация по MQL5
 
Rosh:

Look in the constructor of the signal module class, you can see these values there

I can't find it.

I can't find it here either https://www.mql5.com/ru/search?keyword=m_pattern_0++++%3D90%3B

 
IvanIvanov:

Couldn't find it

I can't find it here either. https://www.mql5.com/ru/search?keyword=m_pattern_0++++%3D90%3B.

What folder are you looking in? You need to Include\Expert\Signal, that's where the signal modules are located.


 
Rosh:

What folder are you looking in? You need to Include\Expert\Signal, that's where the signal modules are located.


:-) I was looking in the link you mentioned.

Thanks, I found it.

 
IvanIvanov:

By https://www.mql5.com/en/docs/standardlibrary /expertclasses/csignal/signal_ac

Where is this parameter regulated?

Each signal has a set of type methods:

   //--- methods of adjusting "weights" of market models
   void              Pattern_0(int value)              { m_pattern_0=value;           }
   void              Pattern_1(int value)              { m_pattern_1=value;           }
   void              Pattern_2(int value)              { m_pattern_2=value;           }
   void              Pattern_3(int value)              { m_pattern_3=value;           }
 
uncleVic:

Each signal has a set of methods like:

I meant Where to put a one or a zero to toggle the mode "Every tick" or "On the kiss of opening", I don't understand what you answered.
 
IvanIvanov:
I meant where to put a one or a zero to toggle the mode "Every tick" or "By tick", I don't understand what you answered.

At the beginning of the Expert Advisor before the Input parameters there should be a line such as

bool         Expert_EveryTick                =true;    // 
 
Lizar:

At the beginning of the Expert Advisor before Input parameters there should be a line of the following type

bool Expert_EveryTick =true; //

false is 0 - it means that the Expert Advisor works by ticks

true is 1 - it means that the Expert Advisor works by bars.

Have I got it right?

 
Rosh:

What folder are you looking in? It is necessary in Include\Expert\Signal, there you can find signal modules.



Do I understand correctly that in this folder, if necessary, I can change the weight parameters of indicator trading signals and it will be relevant only for my computer or the necessary parameters will be written into the Expert Advisor during compilation.

I have highlighted the parameters I am interested in

{

//--- initialization of protected data

   m_used_series=USE_SERIES_HIGH+USE_SERIES_LOW;

//--- setting default "weights" of the market models

   m_pattern_0=30;           // model 0 "first analyzed bar has required color"

   m_pattern_1=20;           // model 1 "the 'saucer' signal"

   m_pattern_2=70;           // model 2 "the 'crossing of the zero line' signal"

   m_pattern_3=90;           // model 2 "the 'divergence' signal"

  } 

Will the parameters in this folder be changed to default when I update the terminal?