Download MetaTrader 5
To add comments, please log in or register
Sell your CPU capacity and earn money!
tao zemin.
402
tao zemin. 2014.02.23 10:52 

On this problem, https://www.mql5.com/en/articles/226offered offered two instructions:

1) It should be noted that in order for the file to be then "detected" by MQL5 Wizard as a signal generator, it should be created in the folder Include\Expert\Signal\

2)In order not to trash in Standard Library, create our own folder Include\Expert\Signal\MySignals, in which we create file SampleSignal.mqh, specifying these parameters in MQL5 Wizard:

which one should we follow?  Can we avoid trashing the standard library?


thank you.

MQL5 Wizard: How to Create a Module of Trading Signals
MQL5 Wizard: How to Create a Module of Trading Signals
  • 2011.01.11
  • MetaQuotes Software Corp.
  • www.mql5.com
The article discusses how to write your own class of trading signals with the implementation of signals on the crossing of the price and the moving average, and how to include it to the generator of trading strategies of the MQL5 Wizard, as well as describes the structure and format of the description of the generated class for the MQL5 Wizard.
Vladimir Karputov
Moderator
37859
Vladimir Karputov 2014.02.23 11:05  
taozemin:

On this problem, https://www.mql5.com/en/articles/226offered offered two instructions:

1) It should be noted that in order for the file to be then "detected" by MQL5 Wizard as a signal generator, it should be created in the folder Include\Expert\Signal\

2)In order not to trash in Standard Library, create our own folder Include\Expert\Signal\MySignals, in which we create file SampleSignal.mqh, specifying these parameters in MQL5 Wizard:

which one should we follow?  Can we avoid trashing the standard library?


thank you.

The right decision: create folder Include\Expert\Signal\MySignals.
tao zemin.
402
tao zemin. 2014.02.23 14:23  
barabashkakvn:
The right decision: create folder Include\Expert\Signal\MySignals.

dear barabashkakvn:

thank you for your concern.  I tried that. But it didnot work. The steps are:

1) create a subfolder dunder MySignals under \Expert\Signal

2) Copy the signal file from https://c.mql5.com/2/7/samplesignal__1.mqh to the subfolder.

3) change the title to be "sample signal.", compile it.

4) Restart MQEditor(or even restart the terminal), use the MQL Wizard to create an EA.

5) In the window "Parameters of Signal Modules", i cannot see the signal just created.

What is wrong?

Vladimir Karputov
Moderator
37859
Vladimir Karputov 2014.02.23 15:28  
taozemin:

dear barabashkakvn:

thank you for your concern.  I tried that. But it didnot work. The steps are:

1) create a subfolder dunder MySignals under \Expert\Signal

2) Copy the signal file from https://c.mql5.com/2/7/samplesignal__1.mqh to the subfolder.

3) change the title to be "sample signal.", compile it.

4) Restart MQEditor(or even restart the terminal), use the MQL Wizard to create an EA.

5) In the window "Parameters of Signal Modules", i cannot see the signal just created.

What is wrong?

1. Greate a subfolder \Expert\Signal -  it's a mistake. Right to be so:

sampl 

tao zemin.
402
tao zemin. 2014.02.24 08:55  
barabashkakvn:

1. Greate a subfolder \Expert\Signal -  it's a mistake. Right to be so:

 

Dear bara:

  Thank you for your prompt reply. I put the file under all the different folders that you and the metaquotes document mentioned. But till now. I cannot find the signal in the dropdown listbox.To avoid ambiguity:

1.       in folder include\expert\signal\mysignal\samplesignal.mqh

2.       in folder include\expert \samplesignal.mqh

3.    in folder include\expert\signal\ samplesignal.mqh.

4.   in folder include\expert\mysignals\ samplesignal.mqh.


The steps for me to create the EA is:1.  

1.       restart metaEditor or even the terminal.

2.       CTrl+N to invoke MQL Wizard.

3.       choose Expert Advisor(Generate)->Next

4.    In the following dialog, modify the general properties:name, author.link,etc.click Next. 

step4-1

   5. in the window below, i click the 'Add' button.

Step 5.

6.   After step5, the following figure appeard, click the dropdown list box. But Alas! The signal that I created did not appeared in it!Anyrhing wong with my operation?

step 6.

Alain Verleyen
Moderator
29545
Alain Verleyen 2014.02.24 09:04  
taozemin:

On this problem, https://www.mql5.com/en/articles/226offered offered two instructions:

1) It should be noted that in order for the file to be then "detected" by MQL5 Wizard as a signal generator, it should be created in the folder Include\Expert\Signal\

2)In order not to trash in Standard Library, create our own folder Include\Expert\Signal\MySignals, in which we create file SampleSignal.mqh, specifying these parameters in MQL5 Wizard:

which one should we follow?  Can we avoid trashing the standard library?


thank you.

The code in this article is obsolete, as it was written for 1st version of MQL5 Wizard.

Your problem is not where you place the SampleSignal.mqh, but that it's not recognize by current version of MQL5 Wizard. The header isn't good.

See this topic All about MQL5 Wizard : create robots without programming.

tao zemin.
402
tao zemin. 2014.02.24 12:23  
angevoyageur:

The code in this article is obsolete, as it was written for 1st version of MQL5 Wizard.

Your problem is not where you place the SampleSignal.mqh, but that it's not recognize by current version of MQL5 Wizard. The header isn't good.

See this topic All about MQL5 Wizard : create robots without programming.

Dear angevoyageur:

  Thank you. And Yes, the file place is not the cause of the problem. Is there any new release of MQL5 Wizard that can recognize the customized signal class? Thank you.




/
To add comments, please log in or register