![]()
Grid & Overlap Manager
Overlock AI is designed to protect the account and automate the closing of a grid of orders to profit by opening a locking order and overlapping open positions with it.
The assistant allows you to significantly reduce the growth of drawdown and deposit load, increasing the level of free margin, and stabilize the grid by overlapping open positions with a locking order.
Features:account protectiondrawdown reduction, free margin increaseinformation paneldisplay of grid, breakeven and profit levels2-way overlapping: first order loss + locking order profit, last order(s) profit + locking order loss
Overlock AI Assistant has two modes of operation: lock and trade.
In lock mode (Mode==lock) the assistant takes control of the previously opened grid to achieve a positive result.
To effectively manage a basket of orders in the lock mode, you need to set the direction, supported magic id, initial position and volume of the locking order (recommended in the range from the size of the first position to the total volume of the basket) and other parameters.
The overlap option for the basket (OverlapType==basket - overlap the first order with the last one) can be used without a locking order (LockPosition==0) when using grid strategies with increasing lot size.
In lock mode it is strongly recommended to disable other Expert Advisors for the selected account.In trade mode (Mode==trade), the assistant uses a simplest grid strategy to trade from start to finish.
Nevertheless, it is recommended to use trade mode only for testing and familiarization with the Overlock AI system , as well as for determining the best parameters
Inputs
--- Common ---
Magic Buy - buy basket's magic
Magic Sell - sell basket's magic
Magic Buy Lock - buy basket lock's magic
Magic Sell Lock - sell basket lock's magic
Mode (trade/lock) - operating mode
Comment
Positions Direction Max - max number by direction and type
Direction - trading direction (excluding lock)
Dir_Long
Dir_Short
Dir_LongShortTimeframe - operating timeframe
Action Type (tick/bar) - tick or bar action
Act_Tick
Act_Bar--- Basket Volume ---
Volume Type (fixed/relative) - volume calculation type
Vol_Fix - fixed volume (=ValueFix)
Vol_Rel - balance based volume (volume=Balance/ValueRelative*ValueFixed)Volume Value Fixed, lot
Volume Value Relative, $ of balance
Progression Type (arithmetic/geometric)
Vol_Rel - arithmetic progression (volume=last+ProgressionValue)
Vol_Geo - geometric progression (volume=last* ProgressionValue)Progression Value (0- unused )
--- Levels ---
Stoploss, point
Takeprofit, point
Grid, point--- Lock ---
Lock Position (0-unused) - basket position for opening lock
Lock Volume, % of total basket volume - lock volume--- Overlap ---
Overlap Value, % - overlapping profit--- Balance Stop ---Balance Stop Type (fix/rel) - balance control type. All positions will be closed when profit/loss value is reached (>0 - profit, <0 - loss)
BS_Fix - fixed value
BS_Rel - % of balanceBalance Stop Value, $/% (0- unused )
Follow & join
MQL5 channel https://www.mql5.com/en/channels/010400444bd4d601
Telegram channel @SmartForexlab