Portfolio Analyzer: Portfolio online
Operating a portfolio online
For operating a portfolio of instruments in the real-time as well as for exporting portfolio results into TradeStation it is necessary to select Start Online from the Action menu, or to click the following pictogram: after the portfolio being formed.
At this point the background of the upper part of the main window will become green, and portfolio data will be calculated online.

For switching off portfolio parameters’ calculation select Stop Online from the Action menu, or click the following pictogram: .
For using the results of portfolio trading in TradeStation online, namely, for calculation of the size of a position, TS.Portfolio.Get.Onl function is used.
An example of using TS.Portfolio.Get.Onl function in TS.Portfolio.Online indicator is illustrated below:

While calling TS.Portfolio.Get.Onl function it is necessary to indicate parameter’s value (from 1 till 6). Depending on that the function will return necessary portfolio
value:
TS.Portfolio.Get.Onl(1) - Portfolio Online Equity
TS.Portfolio.Get.Onl(2) - Portfolio Online Net Profit
TS.Portfolio.Get.Onl(3) - Portfolio Online Open Profit
TS.Portfolio.Get.Onl(4) - Portfolio Online Risk
TS.Portfolio.Get.Onl(5) - Portfolio Online Assured Profit
TS.Portfolio.Get.Onl(6) - Portfolio Online Volatility
Thus, for operating a portfolio in TradeStation in the real-time it is necessary:
- To set TS.Portfolio.Set è TS.Portfolio.Get.Onl
functions’ call in EasyLanguage codes corresponding signals;
- To open corresponding TradeStation Charts and to apply necessary strategies in which functions’ call is addressed for operating a portfolio;
- To launch Real Time Portfolio Analyzer and to create a corresponding portfolio;
- To select Start Online command;
Attention! Online data export into TradeStation is carried out in Start Online regime only.
|