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 want an EA that trades the specific news from the pairs below:(example if AUD news is coming then it will trade all AUD pairs at the same time.)
- AUD/CAD
- AUD/CHF
- AUD/JPY
- AUD/NZD
- AUD/USD
- CAD/CHF
- CAD/JPY
- CHF/JPY
- EUR/AUD
- EUR/CAD
- EUR/CHF
- EUR/GBP
- EUR/JPY
- EUR/NZD
- EUR/USD
- GBP/AUD
- GBP/CAD
- GBP/CHF
- GBP/JPY
- GBP/NZD
- GBP/USD
- NZD/CAD
- NZD/CHF
- NZD/JPY
- NZD/USD
- USD/CAD
- USD/CHF
- USD/JPY
- XAU/USD
It can only trade the news listed below:
USD
NFP
APD non farm employment change
Unemployment Rate
CPI
GDP
Crude Oil inventory
CAD
GDP
CORE CPI
Employment Change
Core Retail Sales
GBP
Manufacturing PMI
Constructions PMI
GDP
CPI
NZD
GDP
CPI
Unemployment Data
AUD
Retail Sales
Unemployment Change
ENTRY:
Once per news. I want to place a buy stop and sell stop at start of the news time. So if USD news starts at 8:30am New York time then place the two pending order at that time.
If the pending orders are not triggered within 5 minutes after news starts(example 8:35am New York time) then close both pending orders.
If one pending order is triggered within 5 minutes after news start then close the other pending order(example if buy stop is triggered then close the sells top pending order)
Entry - I want to set in pips away from news start time.(example if I put 5 pips for the input then there will be 1 buy stop and 1 sell stop order opened 5 pips away from the news start)
TP - I want to set it in pips
SL - half of TP(example if TP is set to 100 pips then SL is 50 pips)
If News is happening at the same time with with more than one currency then do not trade that combination.(example if we have USD news at 8:30am and CAD news also at 8:30 am then we will not take any position on USDCAD pair combination.)
INPUTS
ENTRY:
Entry Pips away from news start(default 5 pip)
TP in pips(default 5 pip)
RISK: (Drop down menu for each)(risk per position)
Fixed lots
Percentage of Account balance
Percentage of Account equity
specific amount in USD. example - $100.00
EQUITY PROTECTOR:( if account equity reaches X amount in LOSS then pause trades for 48 hours.)
Toggle this function ON/OFF
Amount in USD equity(for example if my initial balance is 100000 I want to just type 95000 so that it stops there)
Hours the EA pauses
EQUITY STOPPER:( if account equity reaches X amount in PROFIT then turn off EA.)
Toggle this function ON/OFF
Amount in USD equity(for example if my initial balance is 100000 I want to just type 105000 so that it stops there)
Add a magic number
please provide source code .mq5
Thank you.