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.
Many thanks in advance.
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.
Many thanks in advance.