Support Board
Date/Time: Sat, 23 Nov 2024 14:54:59 +0000
Post From: How often CPP programs get executed
[2024-08-21 16:11:10] |
User935839 - Posts: 2 |
Hi guys I'm confused on how often CPP programs get executed during live/playback session. i come from Ninjatrader c# trading and it was easy to know how often code get executed (each new tick/each bar close ... ) . However i dont get it in Sierra,, like i want my code to get executed every chart bar close, i trying that just to see how often it get called : if(sc.GetBarHasClosedStatus(sc.Index)==BHCS_BAR_HAS_NOT_CLOSED) { {sc.AddMessageToLog("to execute only once per bar", true);} // return;//do not do any processing if the bar at the current index has not closed } the result on logs is like having new log each +/-9 seconds ,,, which is not really coherent ... i just want my code to get executed at very moment of bar close whatever the timeframe on my chart is . i wish my question is clear enough and u can help me , Thanks a lot |