I want to take an historical price[X] then divide that with the price one day prior to that historical price[X-1]
Then multiply factor that with another set price.
Xfactor= historical price [X] / historical price [X-1]
Price = Xfactor * set price.
Then I want to project that price on the Main Chart.
What would be an elegant way to do that?
Simple ones yes.
Thanks for your reply WHRoeder.
I don't want anyone to code this for me, I have most of the indicator but am kind of hesitant to post it in the SRC.
I am looking for the function that does the described on a range of dates.
So: X = iClose / iClose[-1]
But they have to be the close of a range of dates, say from 1/1/1996 to 1/6/1996
Then the plotted value Pv will be:
Pv = X * iClose
Where iClose is the latest (current) iClose.
My problem is to get the repetition for the iClose range. I can get it for one instance but not a range of historic prices.