I would like to create a simple EA that does the following (unfortunately having no programming experience):
- inserts 2 limit orders with SL & TP @ a specific time of the day, taking as the price for the 2 limit orders, the opening price of the candle @ the specified time plus a certain amount of pips (for the short order) and the opening price of the same candle @ the specified time minus a certain amount of pips (for the long order);
- it should let you specify the validity of the 2 orders (for example 14:00 EST);
- if none is executed by that time, both should be cancelled;
- If 1 out of 2 is executed within the time specified, the second should be automatically and immediately cancelled;
If there is anyone willing to help me, I would be really thankful.
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.
I would like to create a simple EA that does the following (unfortunately having no programming experience):
- inserts 2 limit orders with SL & TP @ a specific time of the day, taking as the price for the 2 limit orders, the opening price of the candle @ the specified time plus a certain amount of pips (for the short order) and the opening price of the same candle @ the specified time minus a certain amount of pips (for the long order);
- it should let you specify the validity of the 2 orders (for example 14:00 EST);
- if none is executed by that time, both should be cancelled;
- If 1 out of 2 is executed within the time specified, the second should be automatically and immediately cancelled;
If there is anyone willing to help me, I would be really thankful.
thank you in advance for your help