DIFFPCT() Function

Author: Optuma Team Last updated: Jun 16, 2021 13:11


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

V1 = MA(BARS=25); 
V2 = MA(BARS=150);


Show View using the above script to display the difference between a 25SMA and 150SMA (as a percentage).