How To make an EA only open order 10 minute after market opens for the day, and close all order 10 minutes before market close for the day

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 trader, i have already build the function that will send the market and pending order, i just need someone to write a conditional statement for me that will check if the
market has open for the day 10 minute ago, the the function will run and placed the order.
and once it is remaining 10 minute for the market to close for the day i want to select the orders by ticket and closed them.
for example