Support Board
Date/Time: Sun, 19 Jan 2025 00:15:11 +0000
Post From: Recalculate on Bar Close. Any options?
[2018-03-02 16:45:03] |
Mooshu22 - Posts: 25 |
@User35525, Thank you once again! Your help is most appreciated. Thank you especially for the tip to put at the top of the study list. I didn't have it this way. I did a little bit more reading and found a variable on this page that flags a recalculation instead of reload: ACSIL Interface Members - Variables and Arrays With this I just swapped out the then and else conditions to sc.FlagFullRecalculate. Thank you thank you! SCSFExport scsf_RecalculateOnBarClose(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.FlagFullRecalculate= 1; } else { sc.FlagFullRecalculate= 0; } } |