Hi!
I trying to "get a quick start" in my indicators. What I mean is that lets say I have an moving average, of 50 days. That means that the indicator will be blank för the first 50 bars, and then show the value..
I want to make the period cumulative, like if it bar #1 theperiod is 1, bar #2 period is 2 etc up to 50 where it will be 50 for the rest...
I'm thinking somthing like this:
I thuink the logic is ok, but somehow it doesn't work..
Any thoughts or soutions anyone?
Thanks in advance!
/perigon
I trying to "get a quick start" in my indicators. What I mean is that lets say I have an moving average, of 50 days. That means that the indicator will be blank för the first 50 bars, and then show the value..
I want to make the period cumulative, like if it bar #1 theperiod is 1, bar #2 period is 2 etc up to 50 where it will be 50 for the rest...
I'm thinking somthing like this:
If Period > BarNumber Then Period = BarNumber Else Period = 50;
I thuink the logic is ok, but somehow it doesn't work..
Any thoughts or soutions anyone?
Thanks in advance!
/perigon