Download MetaTrader 5

To get signal from expert advisor

To add comments, please log in or register
Find out how to add a video in the messages editor
metind
15
metind 2016.02.07 13:05 

Dear All,

 

I want to try a expert advisor for tester with a method but always it gave me fail. The method is ;

 1. Using MA and Bollinger bands.

2. The time H4.

3. If MA is lower than boolinger band main

    3.a if t-2 close is lower than MA and bollinger band main (bar must be bearish)

    3.b if t-1 close is lower than MA and bollinger band main (bar must be bearish) 

    for t time, open buy ticket.

 

4. If MA is greater than boolinger band main

    3.a if t-2 close is greater than MA and bollinger band main (bar must be bullish)

    3.b if t-1 close is greater than MA and bollinger band main (bar must be bullish)

    for t time ,open sell ticket.

 

For this strategy could you help me to write a code.

diegotrazzi
5
diegotrazzi 2016.02.09 00:24  
What is your strategy for closing open trades ?
ScienziatoBesti
11
ScienziatoBesti 2016.02.10 23:56  

Hi,

you can start modifying an existing example.

In standard MetaTrade distribution you can find the file MACD example.mq5 (I attached it anyway).

I suggest you to start from this example that is very clear. It is not difficult to add Bollinger Band in place of MACD.

Bye

Files:
To add comments, please log in or register