protected override void StartCalc()  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
maisatomai
Posts: 83
Joined: 18 Mar 2013
Has thanked: 11 times

protected override void StartCalc()

Postby maisatomai » 18 Mar 2013

protected override void StartCalc() {
// assign inputs
System.Windows.Forms.MessageBox.Show("Test");}

I realise that messagebox will run for 3 times. I do not understand. Shouldn't it be only once?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: protected override void StartCalc()  [SOLVED]

Postby Henry MultiСharts » 19 Mar 2013

It looks like your study is trying to select the MaxBarsBack value required for study calculation.
Try to output current MaxBarsBack value into your window to see how it changes.
System.Windows.Forms.MessageBox.Show(String.Format("MaxBarsBack = {0}", ExecInfo.MaxBarsBack));


Return to “MultiCharts .NET”