Base Code

 

Hello,


I opened a trading account with a brooker that supports MetaTrader 4.

I have been trading for some years in stocks and I am converting my systems to MQL4.


Is there a template for Authomatic Trading System and for Trading System tester?


Basically, some common from where I should start when developing my code.


Thanks,

Miguel

 
shapper:

Hello,


I opened a trading account with a brooker that supports MetaTrader 4.

I have been trading for some years in stocks and I am converting my systems to MQL4.


Is there a template for Authomatic Trading System and for Trading System tester?


Basically, some common from where I should start when developing my code.


Thanks,

Miguel

build your code from this, 'Expert Advisor Sample'

 
If you want you can tell which indicators you use, when you buy or sell and I can write EA for you. By!
 
01005379:
If you want you can tell which indicators you use, when you buy or sell and I can write EA for you. By!

Hi,


For now a template would be great. For example, one that as the following:

- Long Position:

- Buys when MACD histogram crosses above 0 and RSI is under thirty and rising;

- Sells when MACD histogram crosses under 0 and RSI is over seventy and dropping;

> Use Stop Loss, Trailing Stop and Target Profit.


- Short Position

- Sells when MACD histogram crosses under 0 and RSI is over seventy and dropping;

- Buys when MACD histogram crosses above 0 and RSI is under thirty and rising;

> Use Stop Loss, Trailing Stop and Target Profit.


And example of automatic trading and testing would be great. I then start from that.

I am familiar with a number of programming languages: C#, VB, MatLab Script, ..


I just would like a script to start to understand what do I need to set it up and how it works.


Thanks,

Miguel

 

There are many examples of experts.

https://www.mql5.com/en/code

 
shapper:

Hi,


For now a template would be great. For example, one that as the following:

- Long Position:

- Buys when MACD histogram crosses above 0 and RSI is under thirty and rising;

- Sells when MACD histogram crosses under 0 and RSI is over seventy and dropping;

> Use Stop Loss, Trailing Stop and Target Profit.


- Short Position

- Sells when MACD histogram crosses under 0 and RSI is over seventy and dropping;

- Buys when MACD histogram crosses above 0 and RSI is under thirty and rising;

> Use Stop Loss, Trailing Stop and Target Profit.


And example of automatic trading and testing would be great. I then start from that.

I am familiar with a number of programming languages: C#, VB, MatLab Script, ..


I just would like a script to start to understand what do I need to set it up and how it works.


Thanks,

Miguel

Where can I send it?

 
Welcome to the forex world.
Reason: