仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
The EA should run:
- In the moment it is attached to chart OR
- When programmable dates and times are triggered
Dates (5 max), can be inserted as extern string in this format: dd.mm.yyyy hh.mm.ss, dd.mm.yyyy hh.mm.ss, dd.mm.yyyy hh.mm.ss, ….).
The EA will trade news release; receival of news data feed from sources is not needed though: it’s a semi manual approach. EA will be activated (manually or programming as said above) some time before the news release.
Once the EA is activated, it has to place - at the same time – a pending buy and a sell order 'X' points away from the activation price. SL and TP can be also set, as well as a trailing stop loss.
The feature OCO (one-Cancels-the-Other Order) can also be selected: once one pending order is filled, cancel the other one.
You can select is just trade “buy” and/or just trade “sell”.
Input parameters (more details below):
- Buy Stop Distance pts
- Buy Stop Stop Loss
- Buy Stop Take Profit
- Buy Stop TSL STARTING pts
- Buy Stop TSL STEP pts
- Sell Stop Distance pts
- Sell Stop Stop Loss
- Sell Stop Take Profit
- Sell Stop TSL STARTING pts
- Sell Stop TSL STEP pts
The below parameters are visualized in the chart once the EA is active, with:
- Buy/Sell Stop Entry points: in black color line
- Buy/Sell Stop SL: in red dotted line
- Buy/Sell Stop TP: in dark green dotted line
Variables
+--- General Settings ---+
Trade Buy True/False
Trade Sell True/False
+--- Trade Settings ---+
Trade Fixed Lots
Buy Stop Distance pts à The distance from the open price to the entry order price (buy stop)
Buy Stop Stop Loss (0 = no SL) à The distance from the entry order price to the SL.
Buy Stop Take Profit (0 = no TP)à The distance from the entry order price to the TP.
Buy Stop TSL starting pts (0 = no TSL) à the distance from entry order price at which the TSL starts
Buy Stop TSL step pts à The Trailing Stop will be trailed in this set distance behind the current market price.
Sell Stop Distance pts à The distance from the open price to the entry order price (sell stop)
Sell Stop Stop Loss (0 = no SL) à The distance from the entry order price to the SL.
Sell Stop Take Profit (0 = no TP) à The distance from the entry order price to the TP.
Sell Stop TSL starting pts (0 = no TSL) à the distance from entry order price at which the TSL starts
Sell Stop TSL pts à The Trailing Stop will be trailed in this set distance behind the current market price.
+--- Position Management ---+
Fixed Lots: the lot size used
+--- Visualization ---+
ShowInfoPanel: enable the information panel on the chart (on/off), about profit/loss during the trade.e trade.
-
I need EA’s source code of the program.