Hello,
In metatrader we can set expiration date for pending order
Is it possible to create tools for entry time pending order such as specific time for entry?
Thank you in advance
Yes, you can. For example, there is a code like this: Pending orders by time 2
The EA works with pending orders: it places Buy Stop and Sell Stop at a certain time. At the same time, Stop Loss is immediately assigned to pending orders, but Take Profit is virtual here: open positions are monitored and, when the current position price reaches the Take Profit level, the market is closed.
Features of work:
- The EA works on timeframes BELOW "H1".
- If the EA works, for example, on the "M15" timeframe, then pending orders will be sequentially deleted and placed four times within an hour: at [hour]: 00 minutes, at [hour]: 15 minutes, at [hour]: 30 minutes and at [hour]: 45 minutes.
Result on 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
Modification of the Expert Advisor Pending orders by time : now you can set either a constant lot (parameter Lots > 0 and Risk == 0) or dynamic ( Lots == 0 and Risk > 0). Added trailing.
The EA works with pending orders: it places Buy Stop and Sell Stop at a certain time. At the same time, Stop Loss is immediately assigned to pending orders, but Take Profit is virtual here: open positions are monitored and when the current position price reaches the Take Profit level, the market closes.
Features of work:
- The EA works on timeframes BELOW "H1".
- If the EA works, for example, on the "M15" timeframe, then pending orders will be sequentially deleted and placed four times within an hour: at [hour]: 00 minutes, at [hour]: 15 minutes, at [hour]: 30 minutes and at [hour]: 45 minutes.
Hello,
In metatrader we can set expiration date for pending order
Is it possible to create tools for entry time pending order such as specific time for entry?
Thank you in advance
You can input your code in
void OnTimer() { //--- }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
In metatrader we can set expiration date for pending order
Is it possible to create tools for entry time pending order such as specific time for entry?
Thank you in advance