Support Board
Date/Time: Tue, 07 May 2024 02:20:29 +0000
Post From: ACSIL - trailing stop loss and orders
[2019-09-17 13:45:50] |
MattK - Posts: 42 |
Are you saying that this block of code executes only once and when the last bar closes (right before the new one starts? Because the doc says: "The very last bar in the chart is never considered a closed bar until there is a new bar added to the chart." sc.GetBarHasClosedStatus() I'll try and see if that makes any difference, rather than using a complicated index variable and if statement. |