Skip to content

ForexRobotEasy/EA-Boom-Crash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

EA Boom Crash

Developed by Forex Robot Easy Team

Website: forexroboteasy.com


Description

This code is an Expert Advisor (EA) for the MQL5 platform. The EA is designed to execute trading orders based on the daily opening price of a currency pair.

The EA uses the following functions:

GetDailyOpeningPrice()

This function determines the daily opening price by iterating through the historical data and finding the opening price of the most recent trading day.

IsPriceAboveOpening(double price, double opening)

This function checks if the current price is above the daily opening price.

DrawBlueLine()

This function draws a blue line on the chart when the price is above the daily opening price.

ExecuteBuyOrders()

This function executes buy orders only when the price is above the blue line.

IsPriceBelowOpening(double price, double opening)

This function checks if the current price is below the daily opening price.

DrawRedLine()

This function draws a red line on the chart when the price is below the daily opening price.

ExecuteSellOrders()

This function executes sell orders only when the price is below the red line.

OnTick()

This is the entry point function for executing the trading logic. It calls the above functions in the following order: DrawBlueLine(), DrawRedLine(), ExecuteBuyOrders(), ExecuteSellOrders().


For detailed reviews and trading results of this product, please visit here.

Please note that ForexRobotEasy is not the official developer of this product. We are showcasing 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