- Desktop
- Scripting
- Formulas and Scripting Functions
- DIFFPCT() Function
DIFFPCT() Function
Overview
Section titled “Overview”Available from Optuma 2.0 and onward the DIFFPCT() scripting function allows you to plot the difference (as a percentage) between two different plot values.
For example, the difference in value between 2 moving averages, or the Closing Price and Upper Bollinger band plot.
Example Script
Section titled “Example Script”V1 = MA(BARS=25);V2 = MA(BARS=150);DIFFPCT(V1,V2)
Show View using the above script to display the difference between a 25SMA and 150SMA (as a percentage).
Your privacy choices
We use cookies and similar technologies to make the site work, see how it's used, and improve it. Analytics and advertising cookies only run with your consent — see our Privacy Policy for details.