Support Board
Date/Time: Sun, 19 Jan 2025 00:16:37 +0000
Post From: Recalculate on Bar Close. Any options?
[2018-03-02 09:29:33] |
User35525 - Posts: 182 |
Hi Mooshu22, I'm not an ACSIL expert, but this code snippet has worked for me in the past: SCSFExport scsf_study_name(SCStudyGraphRef sc) // scsf_Name can be anything { if(sc.GetBarHasClosedStatus()==BHCS_BAR_HAS_NOT_CLOSED) return;//do not do any processing if the bar at our current index has not closed if (sc.SetDefaults != 1 && sc.IsFullRecalculation != 1) { sc.FlagToReloadChartData= 1; } else { sc.FlagToReloadChartData= 0; } ... So just create an ACSIL study that has the above, add it to your chart and set it to run on bar close only, and you should be good. Maybe SC can provide an official study called Recalculate all studies on bar close. Date Time Of Last Edit: 2018-03-02 10:48:05
|