Skip to content

ForexRobotEasy/Dragon-Gold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Dragon Gold Forex Trading Robot

Developer: Forex Robot Easy Team

Website: forexroboteasy.com

This code is a sample implementation of the Dragon Gold Forex Trading Robot. Please note that ForexRobotEasy is not the official developer of this product. We are only showcasing a sample code that can work as described in the product. To find the official developer of this product, please use MQL5.

For detailed reviews and trading results of this product, please visit Forex Robot Review - Dragon Gold Forex Software.

Functionality

The Dragon Gold Forex Trading Robot is designed to automate trading in the Forex market. It uses a moving average crossover strategy to open and close positions.

Import necessary libraries

The code imports the necessary libraries for trading and technical indicators.

Define input parameters

The code defines the following input parameters:

  • lotSize: Trading lot size
  • stopLoss: Stop loss in pips
  • takeProfit: Take profit in pips

Define global variables

The code defines a global variable ticket to keep track of the trade ticket number.

Initialize the trading robot

The OnInit() function is called when the trading robot is initialized. It prints an initialization message and returns INIT_SUCCEEDED.

Start trading

The OnTick() function is called on every tick. It calculates the short and long moving averages using the iMA() function.

If there is no open position (ticket == 0), the code checks if the short moving average crosses above or below the long moving average. If the short moving average crosses above the long moving average, a new buy position is opened. If the short moving average crosses below the long moving average, a new sell position is opened.

If there is already an open position (ticket != 0), the code checks if the position is still open. If the position is closed, it prints a closing message and resets the ticket variable.

Handle errors

The OnDeinit() function is called when the trading robot is deinitialized. It prints a deinitialization message and the reason for deinitialization.

Product Description

Dragon Gold Forex Trading Robot is an advanced automated trading software designed to trade in the Forex market. It utilizes a proven moving average crossover strategy to identify profitable trading opportunities.

Key Features:

  • Automated Trading: The Dragon Gold Forex Trading Robot executes trades automatically based on predefined trading rules.
  • Moving Average Crossover Strategy: The software uses a combination of short and long moving averages to generate trading signals.
  • Customizable Parameters: Traders can adjust the lot size, stop loss, and take profit parameters according to their risk tolerance and trading preferences.

The Dragon Gold Forex Trading Robot is suitable for both novice and experienced traders looking to automate their trading strategies. It eliminates the need for manual trade execution and allows traders to take advantage of market opportunities 24/7.

For detailed reviews and trading results of this product, please visit Forex Robot Review - Dragon Gold Forex Software.

Please note that ForexRobotEasy is not the official developer of this product. We are only showcasing a sample code that can work as described in the product. To find the official developer of this product, please use MQL5.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published