Support Board
Date/Time: Sun, 02 Feb 2025 16:52:40 +0000
Post From: ACSIL - trailing stop loss and orders
[2019-09-17 13:25:19] |
User907968 - Posts: 825 |
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
|