仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Hello, I need a very simple EA which opens an Order at a specific Time, and closed it at a specific (Broker)Time.
This Time has to be defined by Hours and Minutes, that it also works, if the EA doesn’t get a tick at the specific second (like in low volatility times).
The Stop Loss can be calculated by the Daily ATR (last closed daily candle, but independent of the timeframe = may be used on m5 but still uses daily ATR for the calculation) with specific factors.
If this is not enabled, a fix stop loss can be set with the parameter „Stop Loss“, but this can also be set to 0 for no stop loss.
Please print out the settings on the chart.
It needs to have following Input Parameters:
Input Parameter
Open Time (Hours and Minutes)
Close Time (Hours and Minutes)
Direction (Buy or Sell)
Stop Loss ATR Calculation (Yes or No)
Daily ATR Factor (1/4, 1/3, 1/2, Full, Double)
Stop Loss (If "Stop Loss ATR Calculation" is disabled, it can be defined here, but also no stop loss Possible)
Take Profit (none also Possible)
Risk (Based on Capital)
Magicnumber
Example
Input Parameter
Open Time 06:20
Close Time 08:15
Direction Buy
Stop Loss ATR Calculation Yes
Daily ATR Factor 1/4
Stop Loss 0
Take Profit 0
Risk 1%
Magicnumber 999
Calculation of ATR with the last completed Candle= 1457/4=364,25=364 Points Stop Loss