Skip to content

ForexRobotEasy/Smart-Scalper-PRO-MT5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Smart Scalper PRO MT5

This is a sample code provided by Forex Robot Easy Team for the Smart Scalper PRO MT5 program. For detailed reviews and trading results of this product, please visit Forex Robot Easy - Smart Scalper PRO MT5 Review.

Description

Smart Scalper PRO MT5 is a trading robot that utilizes a simple moving average (SMA) indicator to identify potential trading opportunities in the market. It opens long positions when the current bid price is above the SMA and opens short positions when the current bid price is below the SMA.

The program includes necessary libraries and defines constants for lot size, stop loss, and take profit levels. It uses the Trade class provided by MQL5 to execute trades and manage positions.

How it Works

  1. The program initializes by setting the initial stop loss and take profit levels.
  2. It enables real-time events by setting a timer.
  3. On each tick event, the program gets the current bid and ask prices and calculates the SMA.
  4. If the bid price is above the SMA, a long position is opened with the specified lot size, ask price, stop loss level, and take profit level.
  5. If the bid price is below the SMA, a short position is opened with the specified lot size, bid price, stop loss level, and take profit level.
  6. On deinitialization, the program closes all open positions.
  7. On each timer event, the program checks if trading is allowed. If not, it closes all open positions.
  8. The program continues to execute the OnStart event handler.

Please note that this is a sample code provided by Forex Robot Easy Team and is not the official developer of this product. The code is provided for educational purposes and can work as described in the product. To find the official developer of this product, please refer to MQL5.

Disclaimer

Forex Robot Easy Team is not the official developer of Smart Scalper PRO MT5. We have provided a sample code that can work as described in the product. For detailed reviews and trading results, please visit Forex Robot Easy - Smart Scalper PRO MT5 Review. 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