Germany
Posts: 24 since Feb 2011
Thanks Given: 1
Thanks Received: 0
|
Hi there,
I recently observed a problem related to calculation of indicators by values of another indicator.
For illustration see the following example:
indi1:
if (CurrentBar>=200)
{
Plot0.Set(1);
}
else
{return;}
Applied to a chart the indicator plots nothing before bar no. 200, after it it plots 1.
indi2:
Plot0.Set(Testindi1()[0]);
I would expect and want indi2 to do the same as indi1, which means to plot and calculate nothing befor bar number 200.
What happens instead is that the value of the current Close is plotted befor bar number 200.
Any suggestions how to get rid of/suppress that behaviour?
|