MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Moving Slope Rate of Change
Looking through the September 2005 issue of TASC, pp. 16-22: Two Moving Function
Hybrids and wondering if this is a correct MSFL interpretation of the Moving Slope ROC indicator described.

Moving Slope Rate of Change (ROC) I

periods:=Input("Time Periods",1,100,25);
a:=LinRegSlope(C,periods);
b:=ROC(a,periods,points);
a;
b;
0;

 
Well g your formula is correct, however the author suggest that you divide your final result by the number of periods used so that you can compare the value of your indicator on security X with the value of the indicator on security Y ... So while the indicator you posted plots exacly the same as the one I will post it is important to note the scale difference ...

 


Moving Slope Rate of Change (ROC) II

periods:=Input("Time Periods",1,100,25);
LINV:=LinRegSlope(C,periods);
ROCV:=ROC(LINV,periods,$);
ROCV/periods

 
Of course you're right. I understand exactly what you did... I just did not take that last step because I wasn't 100% sure of the first part. Anyway, thanks for taking the time to look it over.
Source / From: TOP
http://forum.equis.com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!