작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
I need a Martingale Bot for my Order Management
If I attache the EA to an chart, there will appear a "buy" and a "sell" button. If i do a click on the button, the EA will start his work.
The main job of this EA is to place (pending) orders. And to adapt the tp of the previous triggered orders.
- In the backend can be defined the settings for up to 10 orders.
- The first order is a market order.
- The 9 following orders are pending orders.
- If there is no entry settings for some of the following orders, they are left out (if i want just 5 orders to be triggered instead of 9, for example)
Frontend requirement of the EA
Order 1: Market order
- Comment: here I can give a comment
- Magic Number: here i can give a magic number
- SL: distance in points from the entry
- TP: distance in points from the entry
- Risk of the balance in %: for example 1 %
- Button for Sell or Buy; direct market execution by click on the button
Backend requirement of the EA
Order 2: Pending Order
- Comment: here I can give a comment for this pending order
- Magic Number: here i can give a magic number for this pending order
- Entry: distance in points from the entry of the Order 1
- SL: distance in points from the entry of the Order 2
- TP: distance in points from the entry of the Order 2
- Risk of the balance in %: for example 1 %
Money Management: The Lot Size of the Order will be calculated by the risk
Order 3 to 10: Pending Order
- Settings see "Order 2
Order Management Requirement
If Order 2 is triggered: Set TP for all active (not pending!) orders to entry of order 1
If Order 3 is triggered: Set TP for all active (not pending!) orders to entry of order 2
If Order 4 is triggered: Set TP for all active (not pending!) order to entry of order 3
... an so on
If Order 1 is closed: close all pending orders
This means:
If Order 1 hits TP all pending Orders for this order should be closed
If Order 1 hits SL all pending Orders for this order should be closed
If Order 1 is closed by human all pending Orders for this order should be closed
General
- I will get an open EA code from you
- I will get the ea within 5-10 days
- I´m available for you the whole time for questions