Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Universal_Investor - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Universal_Investor - expert for MetaTrader 5

This Expert Advisor was rewritten in MQL4 and was originally published here https://www.mql5.com/en/code/8079 by its author Olek .

The operation of EA trading is based on exponential (EMA) and linear weighted (LWMA) moving averages . A buy position is opened when the EMA is above the LWMA and both MAs are pointing upwards. A sell position is opened when the EMA is below the LWMA and both MAs are pointing downwards.

When the EMA is below the LWMA, the long position is closed. When the EMA is above the LWMA, the sell position is closed.

The lot size for opening a position can be fixed or proportional to the available margin. There is an additional feature to reduce the number of losing lots - the more consecutive losing trades, the smaller the number of lots.

The following graph shows the performance of the Expert Advisor in the visual mode of the strategy tester.

Universal_Investor - expert for MetaTrader 5


Attachment download

📎 universal_investor.mq5 (7.71 KB)

Source: MQL5 #1076

Verification code Refresh