Skip to content

Formulas and Scripting Functions

By Optuma Team · Updated 2023-10-21

A list of functions which can be used in Optuma Scripting formulas.


Absolute Value Function - ABS()

Accumulation Function - ACC()

Accumulation Since Signal Function - ACCSINCESIGNAL()

Anchored VWAP function - AVWAP()

Astro Scripting Functions

BARCOUNT() Function

BARDATE() and STRINGDATA() Functions

BARINDEX() Function

BARTYPES() Function

BARSTRUE() Function

CHANGE() Function

CANDLESTICKPATTERN() Function

CHANGESINCESIGNAL() Function

Correlation Function - CRL()

COUNTMATCHSINCESIGNAL() Function

Currency Conversion - FX()

DAYNUM(), MONTHNUM(), and YEARNUM()

DAYOFWEEK() Function

DIFFPCT() Function

DATAFIELD() Function

Days Up and Days Down Functions

FIRST() Function

FLOOR() Function

GANNSWING() Function

Gap Finder Function - GAP()

GETDATA() Function

GoNoGo Functions

Heikin-Ashi Candlestick Function - HAC()

HIDDEN() Function

HIGHESTHIGH() Function

ISMEMBER() Function

ISTICKER() Function

JDKRS() Function for Relative Rotation Graphs® (RRGs)

LAST() Function

Linear Regression Function - LRVAL()

LOWESTLOW() Function

MATCHFUNFIELD() Function

MAX() and MIN() Functions

MOD() Function

Multiple Output Plots

NEARESTALERT() Function

NOREPEAT() Function

NONZERO() Function

OFFSET() Function (and Square Bracket Syntax)

PARENT() Function

PERFORMANCE() Function

PIVOT() Function

Planetary Difference - PDIFF()

RATCHET() Function

Relative Index Comparison Function - RIC()

ROUNDING() Function

SCRIPT() Function

SHADE() Function

SIGNALAFTER() Function

STOCHSCAN() Function

SECURITY() Function

Show Bar - Scripted Settings

SWINGSTAT() Function

SWINGTRENDUP() and SWINGTRENDDOWN() functions

SWITCH() Function

TIMEFRAME() Function

TIMESINCESIGNAL() Function

Total Return Function - TRET()

VALUEWHEN() Function

VERGENCE() Function

WEIGHT() Function

WITHINRANGE() Function

Choose which categories of cookies you allow. Strictly-necessary cookies are always on. You can change this any time via the "Cookie Settings" link in the footer.

  • Functional

    Remember preferences like dismissed banners and your dark-mode choice.

  • Analytics

    Help us understand how the site is used so we can improve it.

  • Marketing

    Measure our advertising and help us reach people who may be interested in Optuma.