Support Board
Date/Time: Sun, 06 Jul 2025 12:28:56 +0000
Post From: How often CPP programs get executed
[2024-08-22 00:36:33] |
ForgivingComputers.com - Posts: 1076 |
Since you used sc.Index, that implies you are using sc.AutoLoop = 1;
In which case you do not specify the index for the status function. This is what you need: if(sc.GetBarHasClosedStatus()==BHCS_BAR_HAS_NOT_CLOSED)
{ return;//do not do any processing if the bar at the current index has not closed } else sc.AddMessageToLog("to execute only once per bar", true); |