EA Black Dragon MT5 is an indicator-based Forex trading robot developed by the Forex Robot Easy Team. This code serves as a sample implementation of the EA Black Dragon MT5 trading strategy.
For detailed reviews and trading results of the official product, please visit the Forex Robot Easy website.
Before running this code, ensure that the following libraries and indicators are included:
- PositionInfo.mqh
- Trade.mqh
- BlackDragon.mqh
- MovingAverages.mqh
The code includes several global variables that can be customized based on individual trading strategies and preferences:
enableHedging
: Set totrue
to enable trading on accounts that support hedging.enableNewSeries
: Set totrue
to enable opening a new series of orders.stopLossMultiplier
: Defines the multiplier for modifying the stop loss level.networkMultiplier
: Defines the multiplier for modifying the network of orders.fastMA
: Defines the period for the fast moving average.slowMA
: Defines the period for the slow moving average.
This function opens a new deal based on the color of the Black Dragon indicator. If the color is green, a buy order is placed. If the color is red, a sell order is placed.
This function manages the existing orders based on the color of the Black Dragon indicator. If the color is green, the stop loss level and network of orders are modified. If the color is red, only the stop loss level is modified.
This function enables trading on accounts that support hedging, if the enableHedging
variable is set to true
.
This function can be used to add custom settings specific to individual trading strategies and preferences.
This function enables or disables the opening of a new series of orders, based on the value of the enableNewSeries
variable.
This function manages the moving averages by retrieving the values of the fast and slow moving averages using the GetMAValue()
method from the CMovingAverages
object. Custom moving averages management logic can be added in this function.
This function executes the trading operations by calling the above-defined functions in the required sequence.
This is the entry point of the program. It calls the TradeOperations()
function to start the trading process.
Please note that ForexRobotEasy is not the official developer of this product. The provided code is a sample implementation that can work as described in the official product. To find the official developer of this product and for detailed reviews and trading results, please visit the Forex Robot Easy website.