Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 21:11:46 +0000



Post From: Updating Broke Code

[2021-12-29 14:41:22]
1+1=10 - Posts: 270
Hi SC Support,

I had previously stated a separate thread detailing that on V2339, sc.NewTradingDay(sc.Index) was re-writing the sc.BaseDateTimeIn of bars it was called on: sc.IsNewTradingDay( anyBarIdx ) rewrites sc.BaseDateTimeIn[anyBarIdx] to SessionStartTime

I created a custom study file with only a sc.NewTradingDay(sc.Index) call and I'm experiencing the same issue. I have the code below but I also created a 1.5 minutes screen recording. I truly think some bug is affecting some set of the ACSIL time-related functionality:
https://youtu.be/2WyvWbaXrNc


#include "sierrachart.h"
SCDLLName("My Studies")

SCSFExport scsf_Test(SCStudyInterfaceRef sc)
{
if (sc.SetDefaults)
{
sc.GraphName = "Test";
sc.AutoLoop = 1;

}

sc.IsNewTradingDay(sc.Index);
}