Registered User Joined: 10/27/2004 Posts: 821 Location: Philly area
|
I would like Real Code to plot the detrender residue, that is
Plot = Price - MA of Price
assume MA set at 21d and MA is EMA
thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You could just add an exponential MACD 1, 21 to the chart.
'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.1 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Detrender Residue
'|******************************************************************
'# Period = UserInput.Integer = 21
Plot = Price.Last - Price.XAVG(Period)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|