![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
below you can see some standard time based buy/sell. for example at 10:00:00 he buys/sells,
but i wonder if you can put a pending order buy/sell the moment that the time is 10:00 with the high/low bar from previous 1hour bar,
i guess with this code you can get the the high from the previous bar but i dont know how to put a pending order with that high of that previous 1hour bar,
hope someone can help :)
datetime curTime;
curTime=Time[0];
double getal2 = High[1];
double getal3 = High[1]-0.00045;