Keyword Description
Rate of change
Class
Indicator
Where Legal
Resources
|
Entry Logic
|
Exit Logic
|
Initial Size
|
Resize
(Pre-Category)
|
Resize
(Category-Level)
|
l
|
l
|
l
|
|
|
|
Syntax
ROC[p,n]
Where p is the price (O,H,L,C) and n is an integer representing the number of days in the study.
Example
Sample code
COL2 = ROC[CLOSE, 45]
|
Rate of Change returns a value that tells you where today's price is relative to the price of a selected number of days ago, expressed as a percentage of that previous price. If today's price is 110 and the previous price was 100, the ROC function will return a value of 1.10. If today's price is 90 and the previous price was 100, the value would be .90.
|
|