Expert Advisors: MQL5 Wizard - Trade Signals Based on Crossover of Lines of the Alligator Indicator

 

MQL5 Wizard - Trade Signals Based on Crossover of Lines of the Alligator Indicator:

MQL5 Wizard provides the automatic creation of Expert Advisors (see MQL5 Wizard: Creating Expert Advisors without Programming).

It's time consider the trading signals, based on the Alligator technical indicator, presented by B.Williams in "Trading Chaos". The strategy called "Signals based on the Alligator" (when creating EA automatically in MQL5 Wizard).

The system is based on three moving averages (Lips, Teeth and Jaw lines), and oscillators, calculated using the difference between them. The trading signals are generated after crossover of the Alligator lines, depending on trend, determined by order of these lines. In the case of upward trend the Lips line (with minimal period) is the highest, the next is the Teeth line, and the lowest is the Jaw line. The similar but opposite case in the case of downward trend.

The trade signals:

  • Open long position: crossover of the Alligator lines and increase of the distance between them in the case of the upward trend;
  • Close long position: upward crossover of Lips line with the Jaw line;
  • Open short position: crossover of the Alligator lines and increase of the distance between them in the case of the downward trend;
  • Close short position: downward crossover of Lips line with the Jaw line;


Trade signals, based on the Alligator technical indicator

Testing Results of the Expert Advisor with trading signals, based on the Alligator indicator

Author: MetaQuotes Software Corp.


 
Good afternoon MetaQuotes! Could you please advise how to supplement the Expert Advisor code so that the column (or column) of MT5 comment is filled in when opening and closing positions. So that it would be visible which Expert Advisor opened or closed a trade. Thank you.
 

Please explain what does it mean LipsTeethDiff(-1) versus LipsTeethDiff(1). Which positions in buffer correspond to -1 and 1?

Thanks. 

 
ypopov:

Please explain what does it mean LipsTeethDiff(-1) versus LipsTeethDiff(1). Which positions in buffer correspond to -1 and 1?

Thanks. 

Indexes:

  •  1 - future bar (Jaw(1), Teeth(1) and Lips(1) <> EMPTY_VALUE because of the shift of the Alligator lines)
  •  0 - current (uncompleted) bar
  •  1 - last completed bar
 

Hello!

I have a problem with adding trading signals to the MQL5 Wizard. Here's how I do it: I download a file with the mqh extension to the "Terminal Catalogue\MQL5\Include\Expert\Expert\Signal\MySignals" directory, restart MetaEditor, create an Expert Advisor (generate), and it is not in the "Signal Module Parameters"!

 
Hello.I am new to Forex, I don't even know the Russian translation of these 3 EA lines.Can anyone help me in this?
 
kukshinskimikos:
Hello.I am new to Forex, I don't even know the Russian translation of these 3 EA lines.Can anyone help me in this?
https://www.metatrader5.com/ru/terminal/help/indicators/bw_indicators/alligator
 
Read the article carefully, it's all spelled out.