Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 20:01:53 +0000



One Time Calculations That Do Not Run During Study Updating

View Count: 635

[2017-06-22 07:44:03]
jizzary - Posts: 177
the code example
--------------------
if(sc.Index == 0)
{
//Code to run only on study full recalculation
}


the experession (sc.Index == 0)will be true
not only on full-recalculation but after SetDefaults as well ... right ?

so may be it should be as follows

if (sc.IsFullRecalculation || sc.DownloadingHistoricalData)
{
if (sc.Index == 0)
{
//Code to run only once on study full recalculation
}

return;
}



=>> if true - documentation should be corrected
Date Time Of Last Edit: 2017-06-22 13:10:44

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account