Specification
So basically, EA will open a pending order 5 minutes before the news buy and sell in X pips away from current price.
If buy trigger, delete sell pending order. vice-versa. EA have risk setting based on equity, take profit, stoploss, and trailing stop,trailing step
Requirement :
1. Fetch News data in EA from forexfactory. Fetch news data must be hardcoded into EA without calling any indicator
2. Fetch news data into EA, and print it on the chart, example EURUSD chart, search only news for EUR and USD -- GBP CHF, so only GBP and CHF News. EA will refresh/get news every hours.
3. EA can be set to fetch only low impact, medium impact, high impact.
4. EA can be set to open stop / limit pending order (trend / counter trend)
Setting :
Manual Lot
Use Risk = True/False
Risk - in percent based equity, this option used if use risk set to true, otherwise it will use manual lot
Distance - X pips from current price/bid price
Enumeration Use Pending Order = Limit, Stop
Take Profit
Stop Loss
Trailing Stop
Trailing Step
Max Spread -- check max spread to open order
Enumeration Low Impact, Medium Impact, High Impact News
Pending order time = 5 -- set X minutes before news happen to open pending order
To easy the task, just set time based on brokertime.