仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
A need an simple martingale EA.
Input:
- Tp by pips (default 15pips) (can work with different pairs automatically, i.e no issue b/w EURUSD and USDJPY)
- sl by pips (default, zero)
- Starting lot size (default 0.01)
- lotsize multiplier (default 1.4)
- max number of trades (default 50)
- min distance each trade (by pips), default 6 pips)
- Max risk by % of DD (default 90)
- Max lot to trigger waiting orders (default 1.0lot)
- Magic#
- Comment:
Key functioning:
- Work with current chart time frame.
- Enter trade by MA10 & MA20 cross over (Entering signal have to be determine by a separate sub-function, so that I can change it by myself latter on)
- New trade per Bar
- Automatically close all trades when tp target is reach, including waiting orders.
- When lot size of last trade reach Max lot to trigger waiting orders (i.e 1.0 lot), auto traders trigger by new bar will be STOP, replace by 5 waiting orders, still the same trade type, the same lot multiplier, but distance per trade calculated by fibonacci chain (fn = fn-1+ fn-2)
![](https://c.mql5.com/21/238/5442951016418.png)
** when waiting order 1 activated, another waiting order will be created automatically base on the same methodology.
- Trade management by Magic# (account can trade multiples EA, manual trades)