ZeroCode: Create a simple MACD Cross expert

 

Hello,

Before using ZeroCode, please watch the flash video walkthrough of creating a simple MACD Crossover expert (240KB). If the video freezes while playing, then download the zip version instead.

1. Indicators Setup

As you can see in the video, I added a MACD for use in Trading Logics. I left it with default values (12,26,9).

2. System Logics

What we want is to have an expert that BUY when the MACD histogram crosses up the MACD signal line, and SELL when the MACD histogram crosses down the MACD signal line.

Comparision Operators:

= means EQUAL

!= means NOT EQUAL

> means GREATER THAN

>= means GREATER THAN OR EQUAL TO

< means LESS THAN

<= means LESS THAN OR EQUAL TO

That's it for a simple MACD cross. Enjoys!

 

Oh! To generate the mql, fill out necessary info and click "Compile" to save.

 

Now the video is play along with narative text, and size is only 240KB.