Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 04:34:47 +0000



Post From: Executing orders at bar close

[2020-12-18 17:16:11]
User820318 - Posts: 40
Dear SC Engineering team

I was recently told that using the below function to execute orders at the bar close is not best practise
sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED

However there are several examples in the TradingSystem.cpp in the ACS_Source folder that use this precise logic to enter at the close.

This documentation suggests a different method (ACSIL Programming Concepts: Determining if Last Chart Bar is Closed).

Is it possible to provide an explicit example?

Thank you for your time.
Date Time Of Last Edit: 2020-12-18 17:16:34