Syntax Help for a Newbie

 

Hi,


This is probably very simple for you guys.


I want to write a code for MetaTrader 4 for this conditions, but I do not know how to start:


Signal to Go Long when:

1) MACD crosses above the zero line, and

2) RSI recently crosses above 70, and

3) Stoch is less than 80


Signal to Go Short when:

1) MACD crosses below the zero line, and

2) RSI recently crosses below 30, and

3) Stoch is more than 20


Thanks in advance for any help!

 

SL

Is simples - look at the free sample Expert Advisers that come with MT

Just right-click one of these and select Modify to see all the code :)

Good Luck

-BB-

 
BarrowBoy:

SL

Is simples - look at the free sample Expert Advisers that come with MT

Just right-click one of these and select Modify to see all the code :)

Good Luck

-BB-

Spot on BB.

Let's say you choose the moving averages sample MQ4 (source code) file.

Next step, consult the 'Documentation' section on this forum and start to annotate the source code  so that you can see what the code is doing.

By the way - the question you ask has nothing to do with syntax.

Good luck, CB.

Reason: