
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.
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() CrossesAbove MA(BARS=20)
Show Bar Workpage
LOW() > HIGH(OFFSET=1)
HIGH() < LOW(OFFSET=1)
VOL()>MA(VOL(), BARS=20, CALC=Close)
Show View Workpage
MA(BARS=12, CALC=Close)>MA(BARS=25, CALC=Close)
HighClose = HIGHESTHIGH(CLOSE(), BARS=22);
(((HighClose-LOW()) / HighClose)*100)
Show Plot Workpage
HIGHESTHIGH(BARS=52, INCBAR=True, BACKTYPE=Weeks)
LOWESTLOW(BARS=52, INCBAR=True, BACKTYPE=Weeks)
S1 = SCRIPT(SCRIPTNAME=52 Week High Tool);
S2 = SCRIPT(SCRIPTNAME=52 Week Low Tool);
(S1 + S2) / 2
Watchlist
CHANGE(INT_TYPE=Month, INT_COUNT=1)
CHANGE(INT_COUNT=3, INT_TYPE=Month)
CHANGE(INT_TYPE=Year, INT_COUNT=1)
ROC(Year(PERIODAMOUNT=1), BARS=1)
RFE()
RSI(Week(PERIODAMOUNT=1), BARS=14)
MA(BARS=50, CALC=Close) IsUp
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
CLOSE()>MA(BARS=50, CALC=Close)
HI200 = MA(BARS=200, CALC=Close);
(CLOSE() – HI200) /HI200
MA(BARS=50, CALC=Close) IsUp
RSI(Week(PERIODAMOUNT=1), BARS=14)
Column Chart
ROC(Year(PERIODAMOUNT=1), BARS=1)
CHANGE(INT_COUNT=3, INT_TYPE=Month)
CHANGE(INT_TYPE=Month, INT_COUNT=1)
Bubble Chart
RSI()
ROC(Year(PERIODAMOUNT=1), BARS=1)
MA(VOL(), BARS=20, CALC=Close)
Size Chart
Close() > MA(BARS=200)
Close() > MA(BARS=100)
Close() > MA(BARS=50)
VOLUME() > MA(VOLUME(), BARS=20, CALC=CLOSE);
Breadth
RSI() CrossesAbove 30
RSI() CrossesBelow 70
Signal Test
RSI(BARS=5) CrossesBelow 30