The following properties are available to be used in a script:
current portfolio (portfolio, r/o) : The current portfolio
current stock (stock) : The name of the current stock on display
next stock (stock, r/o) : Next stock in the list
previous stock (stock, r/o) : Previous stock in the list
period (daily/weekly/monthly/quarterly/yearly) : The display period
scale (standard/semilog) : The display scale
mode (droites/fibos) : The display mode
indic1 (indicator) : Indicator 1 type (one of the indicators)
indic2 (indicator) : Indicator 2 type (one of the indicators)
info panel (yes/no) : Display or not the info panel
bollinger (yes/no) : Display or not Bollinger bands
average1 (yes/no) : Display or not Average 1
average2 (yes/no) : Display or not Average 2
my chart (chart, r/o) : Main chart
The following methods are available to be used in a script:
Set current portfolio to text : Name of the portfolio
Set current stock to text : Name or Code of a stock
The following methods are available for “my chart”, to be used in expressions like “my chart travel past” or “increase density of my chart”:
travel future chart : Use expression like: myChart travel future
travel past chart : Use expression like: myChart travel past
travel newest chart : Use expression like: myChart travel newest
travel oldest chart : Use expression like: myChart travel oldest
increase density chart : Use expression like: myChart increase density
decrease density chart : Use expression like: myChart decrease density
print chart : Use expression like: myChart print or print myChart
update chart : Use expression like: myChart update or update myChart
go chart : Use expression like: myChart go to date xxxx
The following properties are available for “stock”, to be used in expressions like “get code of current stock”:
name (text, r/o) : Name of the stock
code (text, r/o) : Code of the stock
first date (date, r/o) : Date of the first quote for the stock
last date (date, r/o) : Date of the last quote for the stock
Set current portfolio to text : Name of the portfolio
Set current stock to text : Name or Code of a stock
Also, it is possible to use expression like “get name of every stock” to get a full list of the names or the stocks available, or “get code of every stock” to get the same list with stock codes. Those list can be used to get specific stocks through expressions like “first stock”, “stock 4” or to let the user select a name or a code from a list.
Finally, the list of available types can be retrieved using an expression like “get every indicator”.