|
|||||||||||||||||||
| Special offer: buy MetaStock (try for free) | Reuters QuoteCenter Real-Time Data (get a free month) | EOD Data |
|
I am trying to modify Jose's Centred MA that extends the last MA value to the last trading date. I hope to replace the extended part of the MA using an estimated curve or a straight line with last few MA values. As shown below, I calucalate the difference of the last 2 MA values (maybe a +ve or -ve difference) and then add the difference to the last MA values recursively. But i failed to show the desired result after a number of trials. Could you kindly advise on the algorithm. Thanks in advance for the help. Chu ========================================== { Centered MA - v2.0 } { Copyright 2005 Jose Silva { User inputs } { Choose MA type: { Forward-reference MA } { Extend plot into null zone } {******* the line i add **********} { Restrict invalid initial MA plot } { Plot MA on price chart } =========================================== This is one possible projection solution that we came up with a few weeks ago with help from Jose and Roy. Its hard wired for a 9-day average, but gives one idea of how to do it. Like any projection its less reliable the further out it goes. Andrew Code:{with help from Jose & Roy} CMAP:= CMAP;
all formulas for MetaStock all formulas
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
|
|