• Información general
  • Comentarios
  • Discusión (2)
  • Novedades

DYJ Hedging

The DYJ Hedging is based on the following idea: crossing of two Moving Average lines (Fast and slow ) is used as a signal for opening positions.

The DYJ Hedging searches for position opening conditions only on a new bar (performs operations at the moment of new bar emergence), while Total Profit is controlled on every tick. When a condition for opening a position is found (a check is performed for the Base symbol on which the EA is running), the EA opens two positions at once: on the Base symbol and on the Hedge symbol.

An example of launch on the EURJPY symbol, while the Hedge symbol is USDJPY:

Note: MT5 backtesting cannot simulate all currency signal markets!

Other product: https://www.mql5.com/en/users/cdymql4/seller#products

Input Parameters

  • InpMagic = 14549924       --  magic number
  • InpBasePairs    = GBPUSD,EURUSD,USDJPY,USDCHF,XAUUSD,XAGUSD,USDCAD --  Comma-separated list of hedge symbols . 
  • InpHedgePairs = USDJPY,EURJPY,USDCHF,EURCHF  --  Comma-separated list of hedge symbols . not used if empty;
  • InpPercentRisk = 0       -- Risk (%) [0=False]
  • InpLots  = 0.1                 --  Lots
  • InpTotalProfit = 50         --  Profit target for closing all positions
  • InpTotalLoss = 1000        --  Loss target for closing all positions
  • InpEquityDelta  = 1.1     --  Equity target multiple for closing all positions
  • InpBaseMaxOrders = 1    --  Base Pairs Counts
  • InpMaxOrders = 1           --  Max Orders
  • InpMaxSpread  = 20        -- Max Spread
  • InpPipStep  = 300      -- Order step
  • InpTakeProfit = 0.0         -- TakeProfit 
  • InpStopLoss   = 0.0         -- StopLoss
  • InpTrailingStop = 0         -- Trailing Stop (in pips)
  • InpTrailingStep = 0;        -- Trailing Step (in pips)
  • InpIncreasedProfit  = 10  --  Increased Profit($) for GrowthRat
  • InpDistanceDivisor  = 3              // Pending Distance fraction. Do not use pending if it is 0.


Productos recomendados
Filtro:
No hay comentarios
Versión 2.8 2020.07.07
Version 2.6 2020.07.06

Optimize the code
Versión 2.4 2020.07.02
Version 2.4 2020.07.04

Optimize the code

Modify the parameter InpBasePairs
You can use comma separated list of base symbols

Add Risk parameter InpPercentRisk

Add Spread parameter InpMaxSpread

Add tracking stop loss parameter setting

Add order distance parameter Inppipstep setting

Add alternative strategies
Versión 1.5 2020.06.22
Version 1.5 2020.06.22
Optimize the code
Modify the parameter InpHedgePairs:
You can use comma separated list of hedge symbols
Versión 1.3 2020.06.18
Version 1.3 2020.06.18
Add parameters:
1 -- MA Short: averaging period
2 -- MA Long: averaging period
3 -- RSI: averaging period
Versión 1.2 2020.02.09
Version 1.2 2020.02.09
Optimize the code
Increase the judgment of the nature of the symbol correlation
Versión 1.1 2020.02.07
Version 1.1 2020.02.07
Optimize the code