Plot a Weekly “Autocorrelation Periodogram “

#1
Hello Traderji

Would you please help me to Plot a Weekly “Autocorrelation Periodogram “
on a Daily Chart in a Pane of its own

Hoping that you willl oblige
Thank you in advance

Derek
===========Autocorrelation Periodogram..Link below
http://wisestocktrader.com/indicators/4665-john-f-ehlers-autocorrelation-periodogram

On a Daily Chart
I would like to Plot a Weekly “Autocorrelation Periodogram “ in a Pane of its own.
I only need the ( LastValue( dominant Weekly Cycle ) converted into days

For the S&P500 Index the Weekly Periodogram should be about 12 Weeks
Converting into days = (12 * 4.85= Days) 57 Days
( Using an average of say 4.85 trading days per week )
---------------------------------------------------------------------------
I have tried inserting the lines of code below
but I get incorrect values for a Weekly Periodogram

Code:
wc = TimeFrameCompress( Close, inWeekly );
TimeFrameSet( inWeekly );     // switch now to Weekly
TimeFrameRestore();        // restore time frame to original
Plot( TimeFrameExpand(dominantCycle,inWeekly)," dominantCycle Weekly", colorBlue );
// I  must have these Lines in the wrong places
 

Similar threads