ArchitectureStrategiesResearchWhy UsPricing
Momentum Oscillator Momentum Indicators

ROCP: Rate of change Percentage: (price-prevPrice)/prevPrice

Rate of change Percentage: (price-prevPrice)/prevPrice

Visual Rule Syntax: @ROCP(close, 14)

Key Takeaways

  • Vectorized mathematical transform for advanced factor composition.
  • Executes at high performance within the Saral Engine runtime.
  • Essential for data normalization and non-linear factor modeling.

What It Means in Simple Terms

Rate of change Percentage: (price-prevPrice)/prevPrice is a quantitative transform that evaluates cyclical frequencies, price ratios, or mathematical series transformations.

How It Helps You as an Investor

It provides a flexible building block for constructing custom indicators, non-linear factor scores, and composite filters in the Saral visual DAG.

Visual Node Rule Syntax & How to Plug in Values

Visual Node Expression No Code Required
@ROCP(close, 14)

Parameter Tuning & Market Calibration

Plug the appropriate price field (such as close, high, low) and optional lookback parameters into the node rule.

Input Fields & Parameters

Field / Parameter Type Default Role & Description
close field Required Historical input price or volume series from market feed.
timeperiod int 10 Lookback period or tuning parameter for market calibration.

Mathematical Formulation

The mathematical definition of ROCP (Rate of change Percentage: (price-prevPrice)/prevPrice) as evaluated within the Saral Engine execution pipeline:

ROCP(Xt)→Transformed Series\text{ROCP}(X_t) \rightarrow \text{Transformed Series}

Variable & Parameter Definitions

Mathematical transform applied element-wise across the series.

Systematic Strategy Applications

Rate of change Percentage: (price-prevPrice)/prevPrice Rule Transform Rule
@ROCP(close, 14) > 0

Evaluate Rate of change Percentage: (price-prevPrice)/prevPrice in a composite rule.

Common Questions & Practical Considerations

How do I use @ROCP in a visual strategy?

Connect it inside a rule or ranking node to transform raw price values into standardized quantitative signals.