+1 888 340 6572 GET STARTED

ROC (Rate Of Change)

Function > ROC (Rate Of Change)



Article/Author: Omega Research Inc., 1997

Download: FUNCTION-ROC.ELA

File Includes: Function - ROC

Category: Function > ROC (Rate Of Change)

Description:This function calculates rate of change of the price.

Inputs:

EasyLanguage Code:
INPUTS: PRICE(NUMERICSERIES) , LENGTH(NUMERICSIMPLE) ; 


IF PRICE[LENGTH] > 0 THEN
ROC = ( PRICE - PRICE[LENGTH] ) / PRICE[LENGTH] * 100 ; { RATE OF CHANGE }