How the Expert Advisor trades:
- The Expert Advisor starts trading by opening two multidirectional orders. After closing a profitable order, the EA opens two orders again, multiplying the volume for the open direction. If there are open orders, the Expert Advisor changes the TakeProfit in points.TakeProfit is dynamic and is adjusted depending on the number of open orders in the opposite direction.
- Additionally, the opening of order grids also has a dynamic step that changes depending on the number of open orders in the current direction.
Troubleshooting, contacting the author –>>
Input parameters:
MAIN SETTINGS-The section containing the main settings of the Expert Advisor strategy. Contains variables that determine when the recovery will start and which orders will be processed.
- Size of the first order-A variable that determines the size of the first order.
- Orders Magic number – The main identifier of the EA’s orders. It is used primarily for identifying orders.
- Comments of the EA’s orders-Comments on orders opened by the EA.
- Allow to open OP_BUY orders-A variable that allows you to choose whether to enable or disable the ability of the Expert Advisor to open BUY orders.
- Allow to open OP_SELL orders-A variable that allows you to choose whether to enable or disable the ability of the Expert Advisor to open orders of the SELL type.
- Allow to open new orders after close-Allow to open orders after closing the previous ones. At the end of trading, you can disable this feature and then the Expert Advisor will not be able to open new orders after closing the previous ones.
- Show panel of advisor-The ability to show or hide the Expert Advisor panel.
[spoiler title=”Read More…”]
PROTECTION SETTINGS-A section containing various security features.
- Maximum slippage in points – The maximum allowed slippage in points for opening and closing orders.
- Maximum spread in points – The maximum allowed spread for opening orders. Measured in points.
- Maximum size of orders – The maximum volume for a single order. Measured in lots.
- Maximum size number of orders – The maximum allowed number of orders of the same type.
GRIDS SETTINGS-The section containing the grid settings of the Expert Advisor.
- Multiplier for size of orders – Multiplier for orders. Each subsequent order opened by the Expert Advisor in the order grid will be larger than the previous one by this coefficient.
- Step for grids-Variable that regulates the step between orders, measured in points.
TAKE PROFIT SETTINGS-The section containing the TekeProfit settings.
- Size of Virtual TakeProfit (in Points) – The size of the deposit in points. It is calculated for the current group of orders from the breakeven price.
- Increase TPForEachOrder – The coefficient of increase of the take profit for each subsequent order in the opposite direction. Increase TPForEachOrder-the variable regulates the TP by the number of orders in the other direction. Since subsequent orders are opened at the moment of closing, dynamic TP is an important element of money management. The TP of a group of orders is equal to the TP in points the number of orders in the opposite direction * Increase TP for each order (Increase TPForEachOrder). For example, the TP is 100, and the increase for each order is 10. For the first buy order, the TP will be 100, for the second 110, for the 3rd 120, and so on as the basket of OP_SELL orders increases.
Increase TPForEachOrder-the variable regulates the TP by the number of orders in the other direction. Since subsequent orders are opened at the moment of closing, dynamic TP is an important element of money management. The TP of a group of orders is equal to the TP in points the number of orders in the opposite direction * Increase TP for each order (Increase TPForEachOrder). For example, the TP is 100, and the increase for each order is 10. For the first buy order, the TP will be 100, for the second 110, for the 3rd 120, and so on as the basket of OP_SELL orders increases.
Other developments of the author -> >
[/spoiler]