RE: How to create the Mansfield Relative Performance Indicator
(2013-06-04, 09:21 AM)bluemosaic Wrote: You mention that n=52 for weekly and n=200 for daily.
This is also using weekly and daily chart data respectively for each price bar/candle?
I am currently trying to code this up in Sharescope (and will share it on this forum when done) but struggling a bit.
When coding it, remember that you are creating a 52 week moving average of the stock divided by the index to get the zero line on the weekly chart, and 200 day moving average of the stock divided by the index to get the zero line on the daily chart. So first off create number 2 from the AAPL example in the first post, as that's just adding a moving average to the relative performance indicator, as that will give you have a reference to create the flattened version.
I can't speak to how Sharescope handles the data, but my software just looks at each bar.
Cheers
isatrader
Fate does not always let you fix the tuition fee. She delivers the educational wallop and presents her own bill - Reminiscences of a Stock Operator.
Fate does not always let you fix the tuition fee. She delivers the educational wallop and presents her own bill - Reminiscences of a Stock Operator.