stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

[REQUEST] EA to close open orders of the user-defined pairs only, at a user-defined time of the day
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=6327
Page 1 of 1
Author:  K-Lander [ Thu Apr 27, 2023 11:34 pm ]
Post subject:  [REQUEST] EA to close open orders of the user-defined pairs only, at a user-defined time of the day

Cheers all,
Context: I´m doing some research on certain commodities (Corn, Soybean, Cotton and others) on D1 and need to close any open trades of a given pair at a time of day specific for each pair. Different commodities have different daytrading-stop times, hence the catch. Found some "close-all" EAs but none fitting my needs, and my coding skills aren´t good enough to hack them, so here is what I need:

The EA should close all open trades (no need to worry about pending orders) of the user-defined pairs only, at a user-defined time of day.

I think I should use one instance of the EA for each different closing time, while one EA should be able to manage all the pairs with the same closing time.

I have an old version of MPTM with that feature but for some reason it doesn´t work.

Many thanks in advance.

K
All times are UTC Page 1 of 1