ATFX_Breakout_Robot___Ver_1_Build_05
Download scriptThe ATFX Breakout Robot is an automated trading system designed to execute trades based on specific market price actions. Below is a professional overview of how the software functions and its core components:
Core Functionality
The robot acts as an automated assistant that monitors financial markets to identify "breakout" opportunities—moments when the price moves beyond a predetermined level with significant momentum. Instead of requiring a human to watch charts 24/7, the robot processes these movements and executes trades automatically based on the rules defined in its configuration.
Key Operational Features
- Trade Direction Control: Users can independently toggle whether the robot is allowed to enter "Long" positions (buying with the expectation that prices will rise) or "Short" positions (selling with the expectation that prices will fall).
- Automated Risk Management: The system includes built-in safety features, such as an automated Stop-Loss mechanism. This ensures that if a trade moves against the desired direction, the robot can automatically close the position to limit potential financial losses.
- Dynamic Position Sizing: To manage account health, the robot supports multiple trading styles:
- Fixed Lot Sizes: Trading with a consistent, pre-set amount of currency per trade.
- Auto-Lot Scaling: The ability for the robot to calculate position sizes automatically based on the total account balance.
- Risk Limits: A "Maximum Account Risk" ceiling prevents the robot from opening positions that are too large for the current account balance, providing a layer of protection against over-leveraging.
- Execution Precision: The system includes a "Slippage"設定 to manage the difference between the expected price and the actual executed price, ensuring the robot doesn't enter trades under unfavorable market conditions.
Security and Environment
The software is designed with a robust security architecture:
- DLL Integration: The core logic relies on an external dynamic link library (DLL). This provides a secure environment where the trading rules are kept private.
- Access Protection: The system includes a built-in security engine. This verifies credentials (such as passwords) and expiration dates; if the requirements are not met, the robot will automatically disable its trading capabilities to ensure unauthorized use is blocked.
Visual Interface & Tracking
For ease of use, the robot provides clear visual feedback on the trading platform:
- Color-Coded Status: It distinguishes between different types of actions (Buying, Selling, and Closing) using unique colors, making it easy for the user to monitor active trades at a glance.
- Order Management: The robot can be configured to automatically clean up "pending" orders (orders waiting to be triggered) once a trade is closed, keeping the trading workspace organized.
//+------------------------------------------------------------------+
//| ATFX_Breakout_Robot___Ver_1_Build_05.mq4 |
//| Copyright © 2009, atfx |
//| http://www.autotradingfx.org |
//| email: atfx01@gmail.com |
//| |
//| This Expert uses an External DLL file. It does not work without |
//| its DLL. The DLL file have a built in security Engine that |
//| disable itself in case of Expiration Date or Wrong Password. |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, atfx"
#property link "http://www.autotradingfx.org"
//+-----------------------------------------------
// external include section
//+-----------------------------------------------
#include <stdlib.mqh>
#include <stderror.mqh>
//+-----------------------------------------------
// external DLL library section
//+-----------------------------------------------
#import "ATFX_Breakout_Robot.dll"
#import
//+-----------------------------------------------
// user customizable parameters
//+-----------------------------------------------
extern string ___BKOUT_SETTINGS_______ = "-----------------------------------------";
extern bool Bkout_EnableTrading = true;
extern bool Bkout_LongTrades = true;
extern bool Bkout_ShortTrades = true;
extern bool Bkout_EnableAutoStopLoss = true;
//extern bool Bkout_GhostMode = false;
extern int Bkout_MagicNumber = 439878;
extern string Bkout_Password = "YourPasswordHere";
extern string ___BKOUT_MM_____________ = "-----------------------------------------";
extern double Bkout_FixedLotSize = 0.1;
extern bool Bkout_EnableAutoLot = false;
extern double Bkout_MaxAccountRisk = 5;
extern double Bkout_MinLotSize = 0.01;
extern double Bkout_MaxLotSize = 1000000.00;
extern int Bkout_Slippage = 30;
extern string ___BKOUT_OTHERS_________ = "-----------------------------------------";
extern color Bkout_OpenBuyColor = Lime;
extern color Bkout_OpenSellColor = Red;
extern color Bkout_CloseBuyColor = Blue;
extern color Bkout_CloseSellColor = Blue;
extern bool Bkout_DelPendingsOnExit = true;
extern string ___ROBOT_COMMON_________ = "-----------------------------------------";
extern string RobotName = "ATFX Breakout Robot";
extern string RobotVersion = "1";
extern string RobotBuild = "05";
extern string RobotCopyright = "Copyright © 2009";
extern string RobotOwner = "atfx";
extern string RobotWebSite = "http://www.autotradingfx.org";
extern string RobotContact = "atfx01@gmail.com";
extern bool ShowRobotComment = true;
//+-----------------------------------------------
// global variables declaration
//+-----------------------------------------------
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
void init() {
//+-----------------------------------------------
// end special init function
//+-----------------------------------------------
return;
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
void start() {
//+-----------------------------------------------
// end special start function
//+-----------------------------------------------
return;
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
void deinit() {
//+-----------------------------------------------
// end special deinit function
//+-----------------------------------------------
return;
}
Comments