AIYARA V1.0 – A Pre-Loaded Pending Grid Trading Approach
I've always found grid trading interesting, but one thing I wanted to explore further was how the system handles pending orders and manages multiple positions once the market starts moving.
That idea became the foundation of AIYARA Gold Trading System V1.0, an Expert Advisor developed for MetaTrader 5 hedging accounts.
The main concept behind AIYARA is quite simple: instead of placing the next grid order only after the previous one has been triggered, the EA prepares the pending orders in advance.
How the Grid Works
AIYARA uses two separate sets of pending orders:
-
Buy Stop orders above the selected grid center.
-
Sell Stop orders below the selected grid center.
Both sides can be configured independently, including the number of grid levels and the distance between orders.
One detail worth mentioning is that AIYARA keeps the pending orders on the opposite side when orders from one side are triggered. This allows the EA to maintain both sides of the grid rather than automatically removing the other side.
The grid center can be based on the current market price or a manually specified price.
Flexible Lot Management
Lot sizing is another important part of the system.
AIYARA offers two lot modes:
-
Fixed Lot – Uses the same configured lot size for each grid level.
-
Progressive Lot – Increases lot size according to the selected multiplier.
There is also an Auto Lot option that adjusts the base lot according to account balance at the beginning of each trading cycle.
Users can configure maximum position limits and lot exposure to keep the trading setup within their preferred boundaries.
Basket Management
When several positions are open simultaneously, managing the combined result becomes important.
AIYARA includes several exit options:
-
Buy Basket Take Profit
-
Sell Basket Take Profit
-
Total Basket Take Profit
-
Buy and Sell Basket Trailing
-
Total Basket Trailing
The EA can also estimate exit commission based on entry deal commission when calculating basket profit targets.
This gives users more flexibility in deciding how positions should be managed and closed.
Risk Management and Filters
Grid systems need proper risk controls, especially when the market moves strongly in one direction.
AIYARA provides configurable protection options, including:
-
Maximum positions and lot limits
-
Maximum spread filter
-
Floating drawdown protection
-
Equity stop
-
Daily loss limit
-
Minimum margin level protection
-
Emergency stop
For entry filtering, users can enable ADX and RSI conditions. These filters are checked before starting a new trading cycle.
There is also a trading schedule that supports broker server time, GMT and individually configured trading hours for each day of the week.
Importantly, these entry filters and trading schedules are designed to control new cycles, rather than automatically stopping an existing cycle whenever market conditions change.
Dashboard and Trade Monitoring
AIYARA also comes with an optional chart dashboard.
It provides information about account status, open positions, pending orders, basket performance and risk conditions.
Three visual themes are available:
-
Dark Professional
-
Light Modern
-
Black Gold
The dashboard also includes manual trading management controls and a trading history calendar.
A Few Things to Keep in Mind
AIYARA is designed for MetaTrader 5 hedging accounts and is primarily intended for gold trading.
As with other grid-based systems, the number of open positions can increase during certain market conditions. Strong directional movements may create substantial floating losses and margin pressure.
For this reason, I recommend testing the EA with a demo account first and carefully reviewing the lot settings, grid distance and risk protection parameters before using real funds.
No trading system can eliminate market risk, and the settings should always be selected according to the user's account size and risk tolerance.
Final Thoughts
AIYARA V1.0 is built around a pre-loaded pending grid concept, with separate Buy and Sell management, flexible lot sizing and several basket exit options.
My goal with this project was to bring these functions together in one EA while giving users enough control to configure how the system operates.
I'm continuing to work on improving the EA and making its operation more convenient for MetaTrader 5 users.
If you're interested in learning more about the system, you can find it here:
AIYARA Gold Trading System V1.0
https://www.mql5.com/en/market/product/208814
Thank you for reading!
Source URL: https://www.mql5.com/en/market/product/208814


