Tuesday, April 12, 2011

Rate of change from a date

Rate of change from a date
Use the following formula plots one percent rate of change between the specified date and today. The user is prompted for certain date.This will only work in MetaStock â ¢ for Windows 95/NT version 6.5 (or higher) or MetaStock Professional.

Construct the formula in Indicator Builder, giving it the name shown in bold letters. All text after "formula" and before "* END * THE FORMULA" below should be placed in the Formula Indicator builder. Once the indicator has been created, you can drag the indicator Quicklist ranking inside window of your scheme.

NAME: ROC Since Date

Formula:

Day1: = Input ("Day", 1,31,4);
Month1: = Input ("Month", 1,12,1);
Year1: = Input ("Year", 1900,2400,1999);

100 * (close - ValueWhen (1, DayOfMonth () = Day1 and Month () = Month1 and year () = Year1, close)) / ValueWhen (1, DayOfMonth () = Day1 and Month () = Month1 and year () = Year1, close)

No comments:

Post a Comment

Powered by Blogger.