Universal Investor: Your Go-To EA for MetaTrader 5

Mike 2012.11.20 20:32 23 0 0
Attachments

If you're looking for an Expert Advisor that gets the job done, look no further than the Universal Investor. This EA has been meticulously rewritten from MQL4 and originally published by the talented Olek on the MQL5 community. You can check out the original here.

How It Works

The Universal Investor operates using exponential moving averages (EMA) and linear weighted moving averages (LWMA). Here’s the scoop: a buy position kicks off when the EMA is above the LWMA, and both indicators are trending upwards. Conversely, a sell position is triggered when the EMA falls below the LWMA and both are headed downwards.

When the EMA dips below the LWMA, any open buy positions are closed. On the flip side, if the EMA rises above the LWMA, your sell positions will be shut down.

You have the option to set a fixed lot size or base it on your available margin. Plus, there's a handy feature that adjusts the lot size during losing streaks—essentially, the more consecutive losses you face, the smaller your lot size will be.

Check out the performance of the Universal Investor in the strategy tester's visual mode below:

 

Parameters

  • MovingPeriod: The smoothing period for your averages.
  • MaximumRisk: Your defined risk level (applies if Lots=0).
  • Lots: Set your lot size.
  • DecreaseFactor: This factor determines the lot size reduction after losing trades. Set to 0 to disable reduction. The lower the value, the greater the reduction. If it's impossible to reduce the lot size, it opens the minimum lot position available.
List
Comments 0