Support Board
Date/Time: Mon, 30 Dec 2024 17:25:07 +0000
[User Discussion] - Recalc Issue
View Count: 862
[2014-12-16 01:51:32] |
Benevolent - Posts: 4 |
Hello, I'm having a strange issue with a custom study I am working on. The structure is as follows: #include "sierrachart.h" #include <math.h> SCDLLName("TestStudy") SCSFExport scsf_ofa(SCStudyGraphRef sc) { //declare variables } if (sc.SetDefaults) { //set defaults return; } if(sc.UpdateStartIndex==0) { usr_check = 0; if(sc.IsUserAllowedForSCDLLName == true) usr_check = 1; else { s.Format("You are not allowed to use this"); sc.AddMessageToLog(s,1); } } if(usr_check == 1) { // process data, elaboration, signals, etc. } } The strange thing with this code, is while running in a live environment, the data does not populate correctly. It measures tick data, and paints the bars accordingly. However, I have to run a full recalculate on the chart for the data to process correctly. With the structure listed above, could there be something wrong with the loops? Is there an SC command that can force recalculate after a bar is complete? Any suggestions? Thanks! |
To post a message in this thread, you need to log in with your Sierra Chart account: