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,
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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;