Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 15:39:45 +0000



Post From: How often CPP programs get executed

[2024-08-22 00:36:33]
ForgivingComputers.com - Posts: 960
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);