The AtingMQL5 is a library created by Ating to simplify any tasks in the development of bots in MQL5.
Demo Visualization
This demo mainly uses the modules transaction, single lapse time, profit protection and trailing stop.
Enhanced CTrade Class
- Transaction Class:
- Automatic Filling Mode Selection: Automatically chooses the best filling method based on market conditions and symbol requirements.
- Invalid Input Alerts: Provides warnings for invalid inputs to ensure smooth order execution.
- Pending Order Handling: Automatically determines the type of pending order (limits or stops) based on market logic.
- Stop Calculation & Volume Rounding: Calculates stop levels and rounds order volumes to meet symbol requirements.
Order and Position Detection
Operational Day and Date Filtering
- FilterByDayWeek Class: Operate only on specified days of the week.
- FilterByCSVFile Class: For backtesting, filter operational dates based on a CSV file for precise historical testing.
Institutional Arithmetic Price Generation
Signal Generation
- LimitsByIndex Class: Create trading signals based on price limits within specific time ranges.
- LimitsByTimeRange Class: Generate signals based on predefined market indices.
Profit Protection
- BreakEven Class: Automatically adjust stop loss to breakeven once a certain profit level is reached.
- TrailingStop Class: Dynamically move the stop loss to protect profits as the price moves favorably.
Order Removal
- Remove Class: Easily cancel specific orders using magic numbers and symbols for streamlined order management.
Time Range Definition
- TimeLapseTree Class: Store and manage multiple time ranges, facilitating complex trading strategies.
- SectionTime Class: For handling a single time section, used by the Multi Lapse class for more detailed time management.
Experimental Task Manager
- TaskManager Class: Execute all library modules periodically using the OnTimer event for organized and scheduled task execution.
Documentation
AtingDocs
Test
So sorry, test in dev.
Tech Stack
Client: MetaTrader 5 Terminal
Installation
Repository
- Clone the repository to your local machine.
- Navigate to the MQL5 folder in the MetaTrader 5 directory.
- Copy the cloned repository into the MQL5 folder.
Quick Usage
- Open MetaTrader 5.
- Navigate to the Navigator window and expand the Expert Advisors tree.
- Find your project and drag it onto any chart window.
Creating an Executable File
- Open MetaEditor from MetaTrader 5 (press F4).
- Open your project.
- Open the file
.mq5
.
- Press F7 to compile. The
.ex5
file will be created in the same directory and verify the code hasn't syntax errors.
Authors
Support
For support, email edavidcamposl@gmail.com, 00514724@uca.edu.sv, X & Instagram
License
MIT