Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 04:47:01 +0000



Post From: ACSIL: Flatten Orders & Stop Trading Before Market Close

[2024-04-08 16:50:36]
User431178 - Posts: 541

The issue is that different instruments may have different closing times

Just make sure that the times are set correctly in the symbol settings, and that the chart session times are based on those in the symbol settings.
No need to continuously edit anything and when was the last time the exchange session times changed?

Once that is done, it is very easy, you just need to set your code to exit x seconds/minutes before the session close time (from the chart).

There is the holiday issue mentioned in the previous reply, but that is not an insurmountable task either.