| What's New in ShareScript v1.1 |
We are delighted to announce the release of a new upgrade to ShareScript in version 5.3 of ShareScope Plus/Pro. ShareScript v1.1 sees a number of exciting enhancements, aimed to give users more functionality and greater flexibility than ever before.
New features include:
ShareScript now allows you to build and show dialog boxes from within your scripts.
This means that you can directly input parameters for ShareScript columns, indicators and scripts from the main ShareScope screen.
Dialogs are easy to create and by adding a range of controls, can be customised to suit your preferred investment style.
The example below shows a simple dialog with a configurable Moving Average setting. The code on the right creates the dialog.
 |
var dlg = new Dialog("Column settings", 160, 45);
dlg.addOkButton();
dlg.addCancelButton();
dlg.addIntEdit("period", -1, -1, -1, -1, "M.A. Period", "days", 7);
dlg.show();
|
|
You can also create much more complex dialogs such as the one shown below. Here, the dialog allows you to define the type and time period used for
a Moving Average. The script then returns column values based on the criteria entered.
ShareScript v1.1 also provides you with a Storage mechanism for column and indicator parameters, so you can store user-settings
in ShareScope's configuration files.
| Intraday data, columns and indicators |
TOP |
You can now use ShareScript to access intraday data in ShareScope. Create scripts using the latest intraday price, or select full tick-by-tick, trade or OHLCV bar data.
Take a look at the following example. Here, an intraday main graph indicator is used to highlight areas when the share is trading below a simple moving average:
In addition, you can also specify whether intraday columns update continually - as changes to the intraday data occur - or you can set columns to update
at regular intervals, for example, every 15 seconds.
Another significant enhancement is that indicators can be easily applied to intraday and historical charts, and will not require
any changes to the script to function correctly on both chart types.
| Read and write files to disk |
TOP |
The new File object allows you read and write text files to disk, making it easy to output reports in the format of your choice.
For example, you can run an analysis and ouput a csv file for easy importing and further analysis in Microsoft Excel.
For further information about the File object, please see the
ShareScript Language Reference, or have a look at the
Inflation Adjuster example script provided with the new release, which reads a set of annual inflation figures from a file and uses these to adjust a share's price for inflation.
| Access to many of ShareScope's analytics |
TOP |
ShareScript now provides access to a range of ShareScope's analytics that use you use as building blocks for your own indicators.
These analytics can be easily used with both intraday and historical data.
The new analytics provided are:
- MinMax
- Variance
- Trend
- RSI
- MACD
- ATR
- Momentum
- Price Oscillator
- Stochastic Oscillator
- Aroon
- Williams %R
- Williams Acc/Dist
- Ultimate Oscillator
- CCI
- ADX
- VHF
- CMO
- Volatility
- CTI
Please see the ShareScript reference for full details. The
ShareScript User Guide also contains a worked example showing how to create an intraday RSI column.
There are many other minor improvements in ShareScript v1.1. Some of the most asked for ones are highlighted below.
For a full list, see the new edition of ShareScript Reference Guide.
- It is now quick and easy to refresh a script after you've made changes, making development much simpler.
- New indicator chart type and colour mode options allow you to create graduated colour effects on your indicators
- Access to the data stored in ShareScope's notes columns
|