Author of the idea: Β Yuri, mq5 code author: barabashkakvn.
The Expert Advisor works with pending orders: it sets Buy Stop and Sell Stop at the specified time. Pending orders are set with the Stop Loss. The EA uses virtual Take Profit, i.e. it monitors open positions, and when the current position profit reaches Take Profit, the EA closes it by market.
Operation features:
- The Expert Advisor works on timeframe below “H1”.
- For example, if the Expert Advisor works on the M15 timeframe, the EA will place pending orders four times within one hour: at [hour]:00 minutes, at [hour]:15, at [hour]:30 and at [hour]:45.
Results for EURUSD, H30 with the following settings:
- Opening hour – 09
- Closing hour – 21
- Distance from the price (in pips) – 10
- Volume transaction – 0.1
- Stop Loss (in pips) – 20
- Take Profit (in pips) – 500