Unlocking OverHedgeV2: Your Go-To EA for MetaTrader 5

Mike 2018.08.23 21:40 25 0 0
Attachments

Idea Creator - Scriptor.

Code Author - barabashkakvn.

Closing Positions

This EA sets a target for the total profit of all positions (opened by the EA) in points through the parameter named Total Profit Target. Importantly, every profitable position must have a profit that is equal to or greater than the Minimal Profit Target. This means you can establish a minimum profit threshold in points for your positions, leading to a more refined profitability graph compared to simply closing positions based on monetary profit.

Defining a Trend

  • When the Short Moving Average is ABOVE the Long Moving Average at the Minimum distance between MA's to determine the trend, it indicates an upward trend.
  • When the Short Moving Average is BELOW the Long Moving Average at the Minimum distance between MA's to determine the trend, it indicates a downward trend.

Inputs

  • Start Lots - the initial lot size
  • Base (Lot=Start Lots * MathPow(Base, Number of open positions)) - the basis for calculating position volume
  • Shutdown Grid - a feature to force close all positions and stop the EA's operation
  • Tunnel Width (in pips)
  • Total Profit Target (in pips)
  • Minimal Profit Target (in pips)
  • MA Short: averaging period
  • MA Long: averaging period
  • Minimum distance between MA's to determine the trend (in pips) - the minimum distance between indicators for defining a trend
  • Magic Number - a unique identifier for the EA

Here’s a test example for EURUSD on the M5 timeframe:

OverHedgeV2 EURUSD M5 1


OverHedgeV2 EURUSD M5 2


OverHedgeV2 EURUSD M5 3

List
Comments 0