• 概述
  • 评论
  • 评论
  • 新特性

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:

Input Parameters

  • InpMagic = 14549924       // magic number
  • InpLots  = 0.1                 // Lots
  • InpTotalProfit = 50         // Profit target for closing all positions
  • InpTotalLoss = 1000        // Loss target for closing all positions
  • InpMaxOrders = 1           // Max Orders
  • InpHedgePairs = USDJPY // Hedge symbol,Not used if empty
















































无评论
版本 1.2 2020.02.09
Version 1.2 2020.02.09
Optimize the code
Increase the judgment of the nature of the symbol correlation
版本 1.1 2020.02.07
Version 1.1 2020.02.07
Optimize the code