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

 
IvanIvanov:


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.

These parameters will be substituted when generating the Expert Advisor. The compilation uses what is in the generated code.
 
IvanIvanov: Will the parameters in this folder change to defaults when the terminal is updated?
During automatic update the codes in the standard delivery are also updated. Therefore, it is better to make your own copies of the required modules under different names.
[Deleted]  
Rosh:
These parameters will be substituted when generating the EA. When compiling, what is in the generated code is used.

I probably did not formulate the question correctly....

Will the compiled EA work in another terminal with the parameters that were set during compilation or will it turn to the corresponding module of the new machine for data?

[Deleted]  

Can I get a reply to this post?

Something I've lost the logic...

Why in the AC signals module the weights are set by the condition "when they appeared"

-------------------------

// model 0 "first analyzed bar has required colour" - bar of required colour was analyzed for the first time
// model 1 "there is a condition for entering the market" - there is a condition for entering the market
// model 2 "condition for entering the market has just appeared" - condition for entering the market has just appeared

------------------------

void CSignalAC::CSignalAC()
  {
//--- setting default "weights" of the market models
   m_pattern_0=90;           // model 0 "first analyzed bar has required color"
   m_pattern_1=50;           // model 1 "there is a condition for entering the market"
   m_pattern_2=30;           // model 2 "condition for entering the market has just appeared"
  }

And in the module of AO signals the weights are given to the patterns themselves.

------------------------------------------

// model 0 "first analysed bar has required colour" - first analysed bar of required colour
// model 1 "the 'saucer' signal" - saucer signal
// model 2 "the 'crossing of the zero line' signal" - zero line crossing signal
// model 2 "the 'divergence' signal" - divergence signal

-----------------------------------------

void CSignalAO::CSignalAO()
  {
//--- 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=60;           // model 1 "the 'saucer' signal"
   m_pattern_2=50;           // model 2 "the 'crossing of the zero line' signal"
   m_pattern_3=30;           // model 2 "the 'divergence' signal"
  }

Is this logic really set like this or does the description suffer?

 
IvanIvanov:

false - this is 0 - so the expert works by ticks

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

Did I get it right?

On the contrary.
 
IvanIvanov:

// model 0 "first analysed bar has required colour" - first analysed bar has required colour

The translation suffered from Google.

"the first analyzed bar has the required colour". This is not a buy or sell signal, but an attempt to implement the B.V. rule: "Do not buy if the histogram bar is red and do not sell if the histogram bar is green".

Depending on whether the Expert Advisor works "at opening prices" or "on all ticks", the number of the first analysed bar changes (1 or 0).

Документация по MQL5: Стандартные константы, перечисления и структуры / Константы индикаторов / Ценовые константы
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы индикаторов / Ценовые константы
  • www.mql5.com
Стандартные константы, перечисления и структуры / Константы индикаторов / Ценовые константы - Документация по MQL5
[Deleted]  
Rosh:

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


If you edit data in the files of the specified folder, do you need to save or compile them when you finish?

I've done some digging, will they be restored when updating?

 
IvanIvanov:

If you edit the data in the files in the specified folder, do you have to save or compile them when you're done?

I've done some digging, will they be restored when I upgrade?

They will. Don't tinker with the library. Make copies for vivisections.

 

Missing Trading Modules 

 

On the website one of the signals is called 'Signals based on crossover of main and signal MACD lines'

When i use MQL5 there this option is not available the only option is 'signals of oscillator MACD'

How do i get these modules 

html { height:100%; overflow:auto; _overflow:scroll; } body { padding:0; color:#626363; font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif; font-size:.8em; height:100%; } div { margin:0; padding:0; } form { margin:0; padding:0; } td { font-size:12px; } th { font-size:12px; } p { margin:0; padding:0; margin-bottom:12px; } input { margin:0; } input.button { font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif; font-size:1em; font-weight:normal; padding:2px; } h1 { margin:0; padding:0; font-size:1.6em; font-weight:bold; } h2 { margin:0; padding:0; font-size:1.4em; font-weight:bold; margin-bottom:5px; margin-top:5px; } h3 { margin:0; padding:0; font-size:1.2em; font-weight:bold; margin-top:6px; margin-bottom:6px; } h4 { margin:0; padding:0; } ul { list-style-type:square; } a { color:#42639C; } a:visited { color:#42639C; } a:link { color:#42639C; } img { border-width:0; }

 

Hi,

based on the following quotation:

Combining Signals in the EA

To create our own Expert Advisor, it is necessary first of all to decide on what instrument and in what timeframe we will trade. Second, we should select Signals on the basis of indicators that we will use for trading.


Is it possible to trade on 2 symbols? Based on trading module results, to buy SymbolA and to sell SymbolB simultaneously?

Peter