TypeOnline Course
Students Enrolled845
(5 ratings)
PriceFree
Buy Now

This course is designed for anyone who is new to the powerful scripting language which is used in numerous tools and features throughout Optuma.

Throughout the following videos, Darren Hawkins, MSTA guides you through the use of the Optuma scripting language, showing you how easy it is to create your own scripts to get more out of Optuma.

Areas covered include Custom Watchlist Columns, Scans, Custom Tools, Alerts, Analysis Tiles, Signal Tester and Chart Headers (Professional Services only) and more.

Section 1Intro to Scripting
Lecture 1Where Can Scripting be Used?Free Preview

Where Can Scripting be Used?

Optuma’s powerful scripting language can be used in a number of tools and features throughout Optuma. This video will give you a brief overview of several of the ways that scripting can be used which will be covered throughout this course.

To see the formulas used in the examples click the boxes below. They can then be copied and pasted in to your script editor window using CTRL+V on your keyboard.

New Scan Workpage

Close crosses above 20 period MA

CLOSE() CrossesAbove MA(BARS=20)

Show Bar Workpage

Bullish gap where Low > previous bar's High

LOW() > HIGH(OFFSET=1)

Bearish gap where High < previous bar's Low

HIGH() < LOW(OFFSET=1)

Above Avg Vol?

VOL()>MA(VOL(), BARS=20, CALC=Close)

Show View Workpage

Yellow Show View

MA(BARS=12, CALC=Close)>MA(BARS=25, CALC=Close)

VIXFix

HighClose = HIGHESTHIGH(CLOSE(), BARS=22);
(((HighClose-LOW()) / HighClose)*100)

Show Plot Workpage

52 Week High

HIGHESTHIGH(BARS=52, INCBAR=True, BACKTYPE=Weeks)

52 Week Low

LOWESTLOW(BARS=52, INCBAR=True, BACKTYPE=Weeks)

52 Week High/Low Mid-way Point

S1 = SCRIPT(SCRIPTNAME=52 Week High Tool);
S2 = SCRIPT(SCRIPTNAME=52 Week Low Tool);
(S1 + S2) / 2

Watchlist

1Mo %

CHANGE(INT_TYPE=Month, INT_COUNT=1)

3Mo %

CHANGE(INT_COUNT=3, INT_TYPE=Month)

12Mo %

CHANGE(INT_TYPE=Year, INT_COUNT=1)

YTD%

ROC(Year(PERIODAMOUNT=1), BARS=1)

% Below 52 Wk High

RFE()

Week RSI(14)

RSI(Week(PERIODAMOUNT=1), BARS=14)

50MA Slope Up?

MA(BARS=50, CALC=Close) IsUp

MyRank

IF( MA(BARS=50, CALC=Close) > MA(BARS=200, CALC=Close), IF( MA(BARS=15, CALC=Close) < MA(BARS=50, CALC=Close), 2, 1), IF( MA(BARS=15, CALC=Close) < MA(BARS=50, CALC=Close), -1, -2))

Bar Colours Workpage

Green Bars

CLOSE()>MA(BARS=50, CALC=Close)

% From 200MA

HI200 = MA(BARS=200, CALC=Close);
(CLOSE() – HI200) /HI200

Is 50 MA up?

MA(BARS=50, CALC=Close) IsUp

WeekRSI(14)

RSI(Week(PERIODAMOUNT=1), BARS=14)

Column Chart

YTD%

ROC(Year(PERIODAMOUNT=1), BARS=1)

3Mo %

CHANGE(INT_COUNT=3, INT_TYPE=Month)

1Mo %

CHANGE(INT_TYPE=Month, INT_COUNT=1)

Bubble Chart

X-Axis = RSI

RSI()

Y-Axis = YTD%

ROC(Year(PERIODAMOUNT=1), BARS=1)

Size = Average Vol

MA(VOL(), BARS=20, CALC=Close)

Size Chart

Above 200MA

Close() > MA(BARS=200)

Above 100MA

Close() > MA(BARS=100)

Above 50MA

Close() > MA(BARS=50)

Vol > AvgVol 20 Day

VOLUME() > MA(VOLUME(), BARS=20, CALC=CLOSE);

Breadth

RSI Crosses Above

RSI() CrossesAbove 30

RSI Crosses Below

RSI() CrossesBelow 70

Signal Test

RSI Crosses Below

RSI(BARS=5) CrossesBelow 30

Lecture 2The Script Editor
Lecture 3Custom Watchlist Columns
Lecture 4Dot Notation
Lecture 5Introduction to Scans
Lecture 6The Show Bar Tool
Lecture 7The Show Plot Tool
Lecture 8The Show View Tool
Lecture 9Using "Smart" Operators
Lecture 10Creating Analysis Tiles
Lecture 11Using the Chart Elements Tool
Lecture 12Creating Technical Alerts
Lecture 13Creating Custom Tools
Lecture 14Using Chart Headers
Lecture 15Watch Tiles
Lecture 16Back Tester
Lecture 17Signal Tester
Lecture 18Using Scripts in Tool Tip & Crosshair Labels