Support Board
Date/Time: Sun, 02 Feb 2025 17:10:52 +0000
Post From: ACSIL - trailing stop loss and orders
[2019-09-17 11:44:58] |
User907968 - Posts: 825 |
// Data processing once the bar has closed. if(sc.GetBarHasClosedStatus(Index-1)==BHCS_BAR_HAS_CLOSED) I'm not sure this piece of code is doing what you intend, maybe that is contributing to the unexpected behaviour? sc.GetBarHasClosedStatus() The code block above will always evaluate to true, as by definition the bar prior to sc.Index is always closed. |