Task:
Create a new ChartScript
Step:
Click on the ‘New’ script button
ChartScript library ‘New’ button
A new empty ChartScript editor window will appear:
ChartScript Editor window
Step:
Select the ‘Properties’ tab and enter a name for this script, use the name MyForceIndex
ChartScript editor properties tab
Step:
Select the Parameters tab and enter a new parameter named ‘N’
Parameters tab with new parameter named ‘N’
Step:
Select the Script tab again and enter the following script (don’t worry about what the script does for now – we’ll cover that later)
RAW:= V * (C - REF(C,1));
FI: EMA(RAW, N);
0;
Script tab with ForceIndex formula entered
Step:
Compile the script by pressing the compile button
Step:
Save the finished script by pressing the ‘Save As’ button, note the ‘Save As’ name will default to the name that was entered in the Properties tab.
Save Script As dialog box
Step
Close the chart script editor dialog by pressing the x button in the top right hand corner
Step
View the Chart Script Library to verify that the script just created is visible
ChartScript library with MyForceIndex visible