工作已完成
指定
Dear developper,
I need your help to developp an Expert Advisor on MT4, based only on price accrossing Slow Exponential Moving Average (EMAx)
Please find below details and further conditions :
Buy Conditions:
- Candle 1 : candle accross the Slow EMA (Lowest price of candle1 Under EMAx and Highest price of candle1 above EMAx)
- Candle 2 = candle coming just after candle 1, and completely above EMAx (Lowest and Highest price of candle2 above EMAx)
- Send Buy limit Order = Highest price of Candle2 + 1 pip
Send 2 Order with same conditions above,
For Order 1 :
TP1 = 100pips
Initial Stop Loss = EMAx – 3pips
Trailingstop activitaed at 4 pips as soon as 5pips of profil reached
Moove forward by 5 pips
For Order 2 :
TP2 = 200pips
Initial Stop Loss = EMAx – 3pips
Trailingstop activitaed at breackeven as soon as 5pips of profil reached
Moove forward by 10 pips
Sell Conditions:
1. Candle 1 : candle accross the Slow EMA (Lowest price of candle1 Under EMAx and Highest price of candle1 above EMAx)
2. Candle 2 = candle coming just after candle 1, and completely below EMAx (Lowest and Highest price of candle2 below EMAx)
3. Sell limit = lowest price of Candle2 - 1 pip
Send 2 Order with same conditions above.
For Order 1 :
Initial Stop Loss = EMAx + 3pips
Trailingstop activitaed at 4 pips as soon as 5pips of profil reached
Moove forward by 5 pips
TP1 = 100pips
For Order 2 :
Initial Stop Loss = EMAx + 3pips
Trailingstop activitaed at breackeven as soon as 5pips of profil reached
Moove forward by 10 pips
TP2= 200pips
If the Buy or Sell limit order are not executed, and the price accrose EMAx again, cancel order and restrat the loop of conditions.
There can be only BUY Or SELL trade at a time.
Input I can change / optimize :
- Timeframe
- Forex pairs
- Lots Size (0,1 by default)
- EMA Period = X (150 by default)
- TP1 (100pips by default)
- TP2 (200pips by default)
- Y of Initialstop Loss = EMAx +/- Ypips (Y = 3pips by default)
- Z and W of TrailingStop Loss Order 1 = activated at Z pips as soon as W pips of profil reahed (Z = 4pips and W = 5pips by default)
- V of Trailingstop Loss Order 2 = activated at breakeven as soon as W pips of profil reached , moove forward by V pips (V = 10pips by default)
- Allowed max Drawdown : Yes/No (Yes = cut all trade if % Allowed Drawdown reached)
- A of % allowed Drawdown (A = 50% of capital by default)
- Trading during WE : YES/NO (If NO : no new trade during WE)
- MagicNumber
Do not hesitate if you need further information,
I need Code source and your support please, and even feel free to give some advise about the strategy
It will be great if I could get it in 3 weeks
Thanks