Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Configurable bollinger band (period, gap, shift)
Configurable ATR
MM configurable
lockable expert working time frame in parameters (current; M;W;D;4h;1h;30m;15m;5m;1m)
configurable trading hours( trade between xxh xmn and between xxh xxmn) (morning and afternoon)
trading days
Minimum ATR to trade
Maximum Spread to trade
maximum number of simultaneous trades
MM filter: trade only in the direction of the MM
possibility to send an alert (on mobile) instead of opening a trade
possibility of sending an alert (on mobile) when a trade is opened
Configurable lot: fixed, or risk in %
Tp and SL configurable: fixed or automatic (see below)
trade opening rules : having a bubble: candle that opens and closes outside the bollinger bands then in the following x (x configurable from 1 to 5) candles reintegration into the BBs by candle closure inside the bollinger bands (the candle must reintegrate bollinger bands on half its size at least)
if the reintegration candle is <5 pips away from the 20mma, the trade is not taken
Automatic SL: High/Low of last 3 candles + X ATR (X configurable)
Automatic TP: TP1 (close x% (x configurable)) at mm20 (bollinger center band ) The TP must move with each new candle to follow the 20 MM.
If the 20 MM crosses the entry price the trade is closed
Automatic TS : When the TP1 is reaches the stop loss becomes a TS fixed at the highest/lowest point of the last X candles + swap The TS is updated with each new candle. ( X configurable from 1 to 10. in real time while the expert works through a small window on the chart: TS = X candles)
After X (x configurable) losing trade, the expert pauses and sends a message on mobile: "Market in trend, no trade"
I want to have the complete code of the expert and to be the owner. I must be able to modify it later if necessary (without necessarily going through you)
Thank you