工作已完成
指定
Hello
I need an Expert Advisor based on (almost)Engulfing patterns with money management settings.
For my Bearish Engulfing pattern should work as following as rule (please check the attached image):
- low1<low2
- high1>high2 (classic bearish engulfing have this one but for my robot I don't need it. I am not sure if not including this will affect to open trades or the programming logic)
- close1< open2
- open1>close1
- open2<close2
- The bearish candle can not be twice as big as the bullish candle
When this rules have been met, the EA can open a sell limit order on the close1 of the bearish candle plus spread if possible and SL on top of high1
For bullish signal:
- high1>high2
- close1>open2
- open1<close1
- open2>close2
- The bullish candle can not be twice as big as the bearish candle
When this rules have been met, the EA can open a buy limit order on the close1 of the bullish candle plus spread if possible and SL bellow low1.
The EA should only manage on the active pair that it is running the EA. If for example this run this EA in two pairs like EURUSD and GBPUSD, the EA applies the general rules for opening trades the rules but different money management selected in their settings (if applicable) .
For the EA money management:
- Limit to one open order/active. It can open 1 pending limit order but if the trade is active it will not open new pending orders until the active order is closed.(This should not affect if I attach the EA to other pair).
- Trading hours. It will use the server hour. This one should be option as ON / OFF and the hours that I can set
- Option to select between 3 options for selecting lot size. A) Based on percentage of account. B) Based on a fixed amount of money. C) Fix lot Size
- Slippage protection for entry and SL(set on pips).
- Target. The numeric number will multiply for the value of SL . If for example I set to "1" it will TP the same amount set as the SL pips. Or 1.5 it would be 1.5 multiply SL.
- Partial close. I would like to have the option as ON / OFF and to select what percentage I want to close if the active trade gets to 1% of the balance . Once it closes the percentage the trade moves to breakeven.
- The ability to create alerts when orders are active.
For the job to be completed the source also must be included. I also include some pics as reference for the pattern and the MM settings.