Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Get Rich or Die Trying GBP

Author of the idea — John Smith, author of the MQL5 code — barabashkakvn.

Positions are only opened at the specified time (+ shift set in "Additional hour"). Bullish and bearish bars are counted on PERIOD_M1 (M1). The money management classes CMoneyFixedMargin and CMoneyFixedRisk are used.

Inputs:

  • Stop Loss
  • Take Profit
  • Take Profit 2 — used for a program-based closing
  • Trailing Stop
  • Trailing Step
  • Money Management — risk calculation type (percent of free margin or fixed risk value)
  • Risk for a deal (in percent) allowable risk percent value
  • Count bars — the number of bars among which bullish and bearish bars will be counted
  • Additional hour — shift
  • Max positions  — the maximum number of positions

Comparison of lot calculation based on the free margin on GBPUSD,M1:

MetaTrader Experts, Indicators, Scripts and Libraries

and the fixed risk value:

MetaTrader Experts, Indicators, Scripts and Libraries

The difference here is only the position load.

18710

Best MetaTrader Indicators + Profitable Expert Advisors