Login Page - Create Account

Support Board


Date/Time: Tue, 04 Feb 2025 15:54:27 +0000



Post From: Recalculate chart with sc.RecalculateChartImmediate

[2020-01-26 21:35:31]
User869657 - Posts: 31
Hello SC Engineering team,

Similarly to what is explained in the below post, I am trying to backtest a strategy, modifying the parameters' values to see how it behaves as follows :

for loops on my parameters' values
{
Update the parameters' values with sc.SetChartStudyInputInt and trying to recalculate the chart with sc.RecalculateChartImmediate
loop through the bars, apply strategy and export data in csv file
}

Unfortunately, I cannot make the sc.RecalculateChartImmediate function work (it actually doesnt do anything). I have looked through the ACSIL doc and found the functions sc.RecalculateChart and sc.FlagFullRecalculate (for which I have seen the function you have provided as example, "SCSFExport scsf_PeriodicChartRecalculation") but both produce the same results which is that the chart keeps being recalculated, as if someone kept cliking on "Apply" in the studies' window

Could you please let me know if I am misunderstanding the use of sc.RecalculateChartImmediate and if yes, kindly guide me through it ?

Thanks a lot in advance

ACSIL / RecalculateChart and GetStudyArrayFromChartUsingID problem ?