工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
2 EAs needed, please program for me.
Looking forward to working with you.
-------------------------------------------------------------------------------------------------------------
EA 1: Buy and EA 2: Sell
-------------------------------------------------------------------------------------------------------------
each EA features:
1. information box on the chart with the following information, this information will be from the settings box when i first start the EA.
Will explain further later
- Account Name (not from settings box)
- Currency Pair (not from settings box)
- Price (current Price, not from settings box)
- lot size (from settings box)
- Multiplier (from settings box)
- RLot Size (from settings box)
- RLM (from settings box)
- Pip Step (from settings box)
- TP (from settings box)
- SL (from Settings box)
- Max Trades (from settings box)
- R_Max Trades (from settings Box)
2. Settings Box "variable Inputs"
Will explain further later
- Lot Size
- Multiplier
- RLot Size
- RLM
- Pip Step
- TP
- SL
- Max Trades
- R_Max Trades
3. Every time the EA opens a trade it will be marked either
EA 1
Buy + order number
R_Sell + order number
EA 2
Sell + order number
R_Buy + Order number
Until max trades (from settings)
Example for max trades: Buy 10
R_Sell 10
Lot size calculation
EA 1 --> EA2 is exact opposite with SELL and R_Buy instead
Buy 1 lot size will be equal to Lot Size (from settings box)
Buy 2 lot size will be equal to Buy 1 lot size * Multiplier (from Settings Box)
Buy 3 lot size will be equal to Buy 2 lot size * Multiplier (from Settings Box)
until Max Trades:
Buy 10 lot size will be equal to Buy 9 lot size * Multiplier (from settings box)
R_Sell 1 lot size will be equal to RLot Size (from settings box)
R_Sell 2 lot size will be equal to R_Sell 1 lot size * RLM (from settings box)
R_Sell 3 lot size will be equal to R_Sell 3 lot size * RLM (from Settings Box)
until Max Trades:
R_Sell 10 lot size will be equal to R_Sell 9 lot size * Multiplier (from settings box)
*** IMPORTANT NOTE *** EA will NOT place Buy orders if open Buy orders = Max Trades (from settings)
EA will not place R_Sell orders if open R_Sell orders = R_Max Trades (from settings)
4. EA to place Buy and Sell orders IF
- candle close
- no open order
- if price has moved equal to or more than Pip Step (from settings)
5. TP and SL
EA1 --> exact opposite
On Buy 1 and R_Sell 1
- Buy order will set TP, buy price + TP from settings BOX
- R_Sell order will set SL, sell price - SL from settings BOX
On Buy 2 and R_Sell 2 and onwards:
- Buy Order will set TP according to martingale calcuation
- R_Sell order will set SL according to martingale calculation
Basically 2 buttons for each EA
6. Blue Button below information box on the chart to close all Buy or R_Buy trades
7. Red Button below information box on the chart to close all Sell or R_Sell Trades
-- Important Information --
No trade will be closed unless TP hit or SL hit or any of the Buttons pressed --> pressing buttons will close only a specific set of trades as mentioned above.