Skip to content

ForexRobotEasy/Monster-EA-X-Gold-MT5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Expert Advisor for Trading in the Gold Market

This expert advisor is designed for trading in the gold market. It is developed by Forex Robot Easy Team and you can find detailed reviews and trading results of this product here. Please note that ForexRobotEasy is not the official developer of this product, we only provide a sample code that can work as described in this product. To find the official developer of this product, please use MQL5.

Code Explanation

CalculateLinkedNumbers Function

This function is used to calculate linked numbers and settings based on the input value. It takes a value parameter and multiplies it by 1.5 to get the linked value. The calculated linked value is then returned.

PlacePendingOrders Function

This function is responsible for placing pending orders at specific times. It first gets the current time and the local time. If the current time matches the pending time, it proceeds to place pending orders based on identified entry points. The entry point is calculated using the CalculateLinkedNumbers function with a value of 1.0. The stop loss and take profit values are also calculated using the CalculateLinkedNumbers function with values of 0.5 and 2.0 respectively. Finally, it places a pending buy order and a pending sell order using the calculated values.

ExecutePendingOrders Function

This function is used to execute pending orders. It first checks if there are any pending orders by checking the total number of orders. If there are pending orders, it loops through each order starting from the latest one. It retrieves the ticket number of the order and checks if it is a pending order. If it is a pending order, it executes the order by sending a sell order with the same ticket number, open price, and other necessary parameters.

OperateOn5MinuteTimeframe Function

This function operates on a 5-minute timeframe. It first checks if the current timeframe is 5-minute. If it is, it calls the PlacePendingOrders and ExecutePendingOrders functions to perform the necessary trading operations.

OnTick Function

This is the entry point of the expert advisor. It is triggered on every tick. The OperateOn5MinuteTimeframe function is called to ensure that the expert advisor operates strictly on a 5-minute timeframe.

Product Description

The Monster EA X Gold MT5 is an expert advisor designed specifically for trading in the gold market. It uses a scalping strategy to identify entry points and places pending orders at specific times. The expert advisor calculates linked numbers and settings based on the input values to determine the entry points, stop loss, and take profit levels.

The Monster EA X Gold MT5 expert advisor is developed by Forex Robot Easy Team. To find detailed reviews and trading results of this product, please visit here. Please note that ForexRobotEasy is not the official developer of this product. We only provide a sample code that can work as described in this 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