Support Board
Date/Time: Wed, 29 Oct 2025 02:22:07 +0000
Post From: How often CPP programs get executed
| [2024-08-22 00:36:33] |
| ForgivingComputers.com - Posts: 1150 |
|
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); |
