Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 17:13:17 +0000



Post From: How to restart / recalc only one specific study on a chart - or do I simulate a restart?

[2025-02-26 18:23:37]
JohnR - User831573 - Posts: 330
I have a study, that draws subgraphs on a chart drawing on bars are initiated by finding a specific drawn object type on a bar and it continues to draw until a condition is met. Basically it is a stop loss level. I add the drawn object to the desired bar and currently I press recalc. There are other reason I do not want all studies to recalc.

Can I capture a menu item and then set some sc.'variable' or execute some sc.'function' to accomplish what I am after?

If I need to simulate a recalc for this study based on menu item I create, How do I reset/initiate my 2 subgraphs for all bars, or what value do I place in each bar as I loop through them until last / current bar (sc.Index) ?

If I change an input on Study-A and press OK, it will recalc all studies on the chart.

I've been digging around the online docs

Below are areas I read/reread
sc.FlagFullRecalculate - to cause a full recalculation of all studies on a chart
sc.FlagToReloadChartData

All help, guidance and pointers to info is appreciated.

JohnR