Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 17:47:13 +0000



Post From: Resync of charts not working as previous (Kiwi's resync study)

[2018-09-04 11:01:05]
samual sprat - Posts: 343
Hi,

I've been using kiwi's resync study for a while now and it's been working well after updating it with 'FreeDLL=0'. However in one of the release over past couple of months it's stopped working as expected and no longer refreshes the studies on the chart. I believe it's doing something because if I scroll back to old data on the chart then at the defined interval in the study (e.g. 60 seconds) the chart will jump back to current data, but the studies are not refreshed any longer. Any idea what the problem is?

Sorry to post this direct to support, but I'm not sure if this is broken because of a change or if the code needs to address different modules now, so any help appreciated. I've recompiled it using build 1795 and still have same issue

Also. Is this a functionality which could be added natively to sierra with option to enable/disable in settings, it's only a couple of lines long?

#include "sierrachart.h"
SCDLLName("* Kiwi's Stuff 2015 *")


/*==========================================================================*/
SCSFExport scsf_RecalcChart(SCStudyInterfaceRef sc) {
if (sc.SetDefaults) {
sc.GraphName = "Recalc";
sc.StudyDescription = "Recalc Chart every x secs based on real time";
sc.Subgraph[0].Name = "Strobe";
sc.Subgraph[1].Name = "Time";
sc.Subgraph[0].DrawStyle=DRAWSTYLE_IGNORE;
sc.Subgraph[1].DrawStyle=DRAWSTYLE_IGNORE;
sc.Input[0].Name="Seconds between recalcs";
sc.Input[0].SetInt(60);
sc.UpdateAlways=1;
sc.FreeDLL = 0;
return;
}

if (sc.CurrentSystemDateTime.GetTime() % sc.Input[0].GetInt() == 0) {
if (sc.Subgraph[0][sc.ArraySize-1] < 999660) {
sc.Subgraph[0][sc.ArraySize-1] = 999666;
sc.Subgraph[1][sc.ArraySize-1] = sc.CurrentSystemDateTime.GetTime();
sc.FlagFullRecalculate = 1;
}
}
else
sc.Subgraph[0][sc.ArraySize-1] = 0;
}

Thanks
Sunny