Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

OverHedgeV2 - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
5158
Rating:
(15)
Published:
2018.08.23 12:40
OverHedgeV2.mq5 (42.28 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The author of the idea - Scriptor.

mq5 code author - barabashkakvn.

Closing positions

This EA sets the level of the total profit of all positions (opened by the EA) in points - "Total Profit Target" parameter. At the same time, there is a limitation: not a single PROFITABLE position may have profit LESS than "Minimal Profit Target". Thus, the minimum profit threshold in points for positions is set. This approach gives a more qualitative profitability graph than the standard approach of closing the position by profit expressed in money.

Defining a trend

  • Moving Average "Short" is ABOVE Moving Average "Long" on "Minimum distance between MA's to determine the trend" - upward trend
  • Moving Average "Short" is BELOW Moving Average "Long" on "Minimum distance between MA's to determine the trend" - downward trend

Inputs

  • Start Lots - initial lot
  • Base (Lot=Start Lots * MathPow(Base,Number of open positions)) - basis for exponentiation, used to calculate position volume
  • Shutdown Grid - forced closing of all positions and EA operation stop
  • 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) - minimum distance between indicators for defining a trend
  • magic number - unique EA identifier

Test for EURUSD M5:

OverHedgeV2 EURUSD M5 1


OverHedgeV2 EURUSD M5 2


OverHedgeV2 EURUSD M5 3

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21411

Exp_ColorX2MA_Digit_NN3_MMRec Exp_ColorX2MA_Digit_NN3_MMRec

Three independent trading systems using ColorX2MA_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Exp_ColorJFatl_Digit_NN3_MMRec Exp_ColorJFatl_Digit_NN3_MMRec

Three independent trading systems using ColorJFatl_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Lentz_Volatility Lentz_Volatility

Lentz Volatility indicator

MA_Oscillator MA_Oscillator

МА as an oscillator