for example,
// Set 1
if (CrossAbove(MACD1.Default, MACD1.Avg, 1))
{
Draw.ArrowUp(this, @"plotMACDSto Arrow up_3", true, 0, (Low[0] + (-3 * TickSize)) , Brushes.Lime);
Log(@"MACD Cross above", Cbi.LogLevel.Information);
Log(Convert.ToString(new TimeSpan(21, 25, 0)), Cbi.LogLevel.Information);
Don't see Log() be executed though the script been running over 8 hours.
See the attached codes and the screenshot.
the entire generated codes can be retrieved from https://drive.google.com/file/d/17tT...ew?usp=sharing

Comment