Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 20:28:37 +0000



Post From: ACSIL - trailing stop loss and orders

[2019-09-17 13:25:19]
User907968 - Posts: 802
Mostly I am using this when wanting to do something when bar closes (i.e. only once per bar) -

if(sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED)
{
// insert code here
}

No need for anything more complicated and no need to designate index if using auto-looping.

Also be aware of the following (although I've only found this to be relevant at the end of the session when there is no new bar until next day) -
ACSIL Programming Concepts: Determining if Last Chart Bar is Closed
Date Time Of Last Edit: 2019-09-17 13:36:34