Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
i need an Ea which can trade as per buy/sell/exit/tp and sl email received via email .
Task Description
Goal
Code an EA which place/abort pending orders of: http://live-forex-signals.com/
Technic
Mt4
Requirements
Input field for the percentage of risk per trade.
Basic knowledge
E-Mails
Live Forex Signal sends one type of e-mail.
1. Pending Order E-Mail
This e-mail contains one pending order for one asset. A new pending order for the same asset will only arrive if there is none open trade for this asset and if there is none pending order for this asset.
Raw Format
<div>Pending order</div><div>Kaufen GBP/USD</div><div>Preis 1,3036</div><div>Take Profit 1,3058</div><div>Stop Loss 1,3008</div><div>ab dem 20:43 08-08-2016 GMT bis zum 00:43 09-08-2016 GMT</div><div style="margin-top:1em;color:gray;"><div>Ihr Abonnement endet am <b>08-Sep-2016</b>. Um Ihr Forex-Abonnement zu beenden, nutzen Sie folgenden Link.</div><div><a href="http://live-forex-signals.com/de/account/unsubscribe?email=florian.haberland%40gmx.net&hash=66eaf31af1962d74f5627e568397bd00">Abonnement beenden</a></div></div>
View Format
Pending order
Kaufen GBP/USD
Preis 1,3036
Take Profit 1,3058
Stop Loss 1,3008
ab dem 20:43 08-08-2016 GMT bis zum 00:43 09-08-2016 GMT
Setup
Workflow
If a new E-Mail arrive the EA handle it:
Pending order e-mail:
E-Mail arrives
Parse order details.
Calculate lotsize based on capital and SL
Place the pending order
Every 5 seconds
if the date of a pending order is expired, delete the pending order
Attention:
Please make sure we don’t get a conflict with different timezones. I am at (CET/MEZ).
Idea’s for Algorithm
Please check out the different assets:
http://live-forex-signals.com/
You need one variable for each asset. I mean to remember Mql4 doesn’t support array’s.
Replace “<div>” with new line and remove all “</div>”.