Portfolio


Portfolio
The Portfolio in Tradesignal is a basket of securities that are traded by one or more trading systems. You can use the Portfolio to do the following:
  • Trade several securities in a trading system.
  • Use trading systems for a list of securities
  • Trade an account of several securities by defined rules for money and risk management
  • Trade with trading systems automatically via a broker
Like the Watchlist, the Portfolio is updated automatically. The data is displayed in realtime. The cells with the latest changed values are displayed with colored background.

The important difference from Scanner and Watchlist is that the Portfolio handles the included instruments as a whole. This results in the following:
  • In indicators and strategies, you can access data of other instruments in the Portfolio. (This is not possible in a Watchlist.)
  • Indicators and strategies are each applied to all instruments in the Portfolio. For example, indicator 1 is applied to all instruments, then indicator 2 etc. This allows you using scripts to filter the instruments for the next steps. This is also the reason why a Portfolio cannot be displayed in a chart. (In comparison, in the Scanner, Watchlist and Chart, the indicators/strategies are applied to each instrument, i.e. indicator 1 and 2 to instrument A, then both to instrument B etc.)
  • The Money Management in the Portfolio refers to the complete Portfolio. (In Scanner and Watchlist, the Money Management applies to the single instruments.)
For the idea of using scripts as filters in the Portfolio analysis, two strategies are available in Tradesignal: "Portfolio Top Dogs Picker" and "Portfolio Top Dogs Trader". First, apply the picker to pick the ten best instruments of the last year and invest into them in equal shares, then use the trader to trade these ten instruments.

The document type Portfolio has the following design parameters:
  • The maximum history length (in this case of the equity chart) is 500000.
  • The maximum number of instruments is 101.
  • The maximum number of indicators/strategies is 32.
  • Indicators and strategies are processed vertically, i.e. each is applied to all instruments before the next indicator/strategy is applied (see above).

Portfolio Setup

You can open a Portfolio with symbols in various ways.

With the Wizard

When choosing one of the following methods, the wizard will open:
  • Click on the Portfolio button in the Insert tab of the toolbar.
  • In the file menu, select New (key shortcut Ctrl+Shift+N) to open the Create Item Wizard. Select Portfolio.
  • Open the context menu of a symbol list in the toolbox and choose the entry Open in Portfolio. (If selecting this for a single symbol, it opens without a wizard.)
The Create Item wizard opens, in which you can select indicators and strategies in two more steps. Click on Done to close the wizard and save the settings.

Adding One or More Symbols Manually

You can also add single symbols or open a new Portfolio without using the wizard.
  • Open the context menu of a symbol or symbol list in the toolbox and choose the entry Insert Symbol to add it to the active Portfolio.
  • In the command line, enter a symbol shortcut, e.g. "DD NYS" and select Add Symbol to add it to a Portfolio, or New Portfolio for a new one.
  • Via the symbol search. For this, click on the search button and select Insert the symbol into the selected workspace item to add it to the Portfolio, or Create a new Portfolio for a new one.
  • You can also add symbols to a Portfolio via drag&drop from the toolbox or other documents.
The History Length (candles/bars) that is regularly taken into account is 2. When you add an indicator, the length may be increased if necessary for the indicator calculation. E.g., the Chande Momentum Oscillator sets the length to 16. If you go below this necessary length, indicators may not give results anymore. In this case, increase the length again.

When you select a symbol list (e.g. the Nasdaq), please ensure that the index itself is not included in the Portfolio. It makes no sense to include an index in a list of symbols when searching for optimal trading parameters.

Portfolio Properties

In the properties manager, you can edit the portfolio Properties. Important parameters are:

History Length - Enter the length of the history here (max. 500000).

Min. Referenced Bars - Enter the minimum number of bars that should be used for calculating the values of indicators and strategies.

In the Indications area, you can enter the colors for changing values in the table.

Update Indications – Set the background color for table cells with values changed since the last update, e.g. gray. Up Move and Down Move – Set the colors for increasing/decreasing values, e.g. green for up, red for down.

In the areas Equity Colors and Equity Chart Appearance, you can change the settings for the equity chart.

Saving, Restoring and Resetting Default Settings

In the appearance area, you can find two important buttons.
  • Disk button (Save as Default) - Click here to save your current settings as the new default settings.
  • Restore button (Restore Default Settings, circled arrow) - Click here to reset all settings to the default settings.
Not all settings can be saved like this.
  • The standard period and other user interface settings are entered in the Tradesignal Options.
  • In the Portfolio, the order may be subject to changes depending on e.g. changing prices. In the advanced Tradesignal Options, parameter Keep rows sorted in Portfolio and Watchlist (Secs.), you can set the time in seconds after which your original sorting order will be applied to the rows again. You can also can enter default values for the history length in Portfolio Default History Length, for daily, intraday and tick lists.
To restore the original default settings of your Tradesignal installation, click on the Restore Default Settings button in the Tradesignal Options.

Deleting Symbols from a Portfolio

You can delete symbols from a portfolio.
  1. Select the symbols. You have the following options:
    • Press Ctrl+A to select all.
    • Press Ctrl and click on single instruments to select them.
    • Press Shift and click on two instruments to select the instruments between them..
  2. Press the Del key to delete the selected instruments.

Portfolio Buttons in the Toolbar


Portfolio buttons in the toolbar
Period - Here you can set the period that is to be used in the Portfolio (this corresponds to the period settings for a chart). The symbols in the Portfolio are always called up with the default period at first.

Columns - Open the menu for the column settings of the Portfolio.

Set Group - Here you can group the parameters for better overview. Select a number of rows in the table and click on the button. You can now enter a name for the group. A button appears on top of the table that allows you to open/close the group views like a folder tree in Windows Explorer.

Columns in the Portfolio

The table shows different columns depending on the indicators and strategies you are using. The number of columns added for each indicator or strategy depends on the number of output data.
  • For each indicator, all columns with a non-static output are displayed. For example, for the "Bollinger Band" indicator there are three columns, for the "Elder Ray" indicator two columns (and two invisible columns with static values).
  • For strategies, the two columns "Position" and "Position Size" are displayed over all strategies. The parameters of the single strategies are usually set to invisible in the Equilla code ("visuals" are "inactive"). If they were displayed, they might also interfere with the statistics, which is usually not desired. When at least one strategy is available, you can add columns for statistical output like "Total Net Profit".

Sorting the Columns

You can sort the columns in the Portfolio by clicking on the column header. A little triangle appears, pointing up or down depending on the sorting direction. To change the direction, click on the column header again.

Alternatively, right-click into the column and select the sort direction in the context menu.

Column Grouping

This function in the Columns button menu leads to a new row in the table top. If groups are already defined, a button appears for them.

You can start a group by dragging a table row in this new row at the table top, or by selecting a row and clicking on Set Group under Home > Table > Columns on the toolbar.

Add/Remove Columns

With this function in the Columns button menu you can set columns in the table to visible or invisible.

In the list, all available columns are sorted by categories. Standard columns like price or symbol information are available, as well as a large numbers of statistical values for trading systems. If an indicator offers additional information, it appears as an entry here too.

Select the entries for all columns you want to display, or click on Show All for selecting all entries.

Manage Strategies and Indicators

With this function in the Columns button menu you can
  • set the processing order of the indicators and strategies by selecting an entry and clicking on Sort Ascending or Sort Descending. Remember that indicators/strategies are processed vertically, i.e. each is applied to all instruments before the next indicator/strategy is applied.
  • delete indicators and strategies by selecting an entry and clicking on Remove.

Format Options

In the Portfolio, the following Format buttons are available in the toolbar.

Styles - Here you can set the display options of the table, e.g. gray background with orange and yellow text. You can find more information in the chapter Styles.

Sessions - Here you can set the trading times. You can find more information in the chapter Sessions, Holidays and Properties.

Price Editor - Here you can manually edit prices of symbols. You can find more information in the chapter Price Editor.

Analyze the Portfolio

You can apply indicators and strategies to the Portfolio. In addition, the Portfolio contents can be combined with other functions.

Optimize a Strategy in a Portfolio

You can start the Optimizer directly from within the Portfolio. This way, you can optimize the strategies for all symbols of the Portfolio.

Click on the button Optimize in the group Strategies of the toolbar to start the Optimizer. You have the choice between several methods, and you can choose the parameters that should be used for optimizing. The Optimizer then runs through all chosen parameters for the symbols included in the Portfolio.

You can find more information in the chapter Optimizer.

Activate the Order Routing for a Portfolio


Starting the Order Routing in the Portfolio
You can use Automatic Order Routing for a Portfolio. The following conditions have to be met:
  • The Order Routing has to be set up correctly. See the chapter Automatic Order Routing.
  • The Option Strategy Automation Option has to be set. For this, click on the small plug symbol in the lower right corner of the equity subchart to open the menu, and select your broker.
Afterwards, the Order Routing can be started via the entry Start Automatic Order Routing in the Order Routing tab in the toolbar.

Use the Position Manager with the Portfolio

As soon as you have assigned strategies to a Portfolio, you can also open the Position Manager for it. If not defined otherwise, the Position Manager uses the position information of the current workspace, in this case the symbols in the Portfolio. To avoid losing the overview, it is useful to use the filter function for searching information for specific symbols.

You can find more information in the chapter Position Manager.

Use the Performance Report with a Portfolio

You can generate a Performance Report for a Portfolio. The resulting report will include performance information for the complete Portfolio as well as for each symbol.

You can find more information in the chapter Performance Report.

Money Management

The global Money Management settings can also be used for the Portfolio. Note that in the Portfolio, the Money Management is applied to all instruments as a whole. You can enter the initial capital and values for Stop Loss and Trailing Stop. It is also reasonable to use some of the Position Sizing strategies offered by the software. This allows you to distribute the available capital onto the symbols in the Portfolio as positions of the same size.

You can find more information in the chapter Money Management.

Change the History Length of the Portfolio

You can set the history length of the Portfolios in the properties of the Portfolio, setting History Length. Keep in mind that for long histories and large portfolios, a considerable computational effort results, which may impair your computer's free resources. Therefore, it is recommended that backtests and the real trades should be performed in separate workspaces with different history lengths.

Sort the columns

You can sort the Portfolio columns by clicking on the respective column header. A small triangle appears (pointing up or down, depending on the sorting direction). To change the direction, click on the column header again. Alternative you can use the sorting from the context menu. Click with the right mouse button inside of the column and choose the sort direction.

Open a Chart from with the Portfolio and Page Through Charts

To view the chart for a symbol from within the Portfolio, open the context menu of the table row and select Open for the entry Chart. The chart is opened with the selected symbol, its period and all included indicators and strategies. The Chart will also be linked automatically to the Portfolio via symbol linking. Please note that in contrast to Scanner and Watchlist, the history length of the portfolio will not be used.

If you want to go through the whole list of symbols in a Portfolio to see each chart, use the small, green arrow buttons to the right of the Command Line. As soon as you open one chart of a Portfolio entry, you can page through the full list of symbols this way.

Using the Results with Drag&Drop

Use Symbols in another Table

You can reuse symbols from a Portfolio in a Watchlist, a Scanner or another Portfolio.

If you want to start with a new table, open one by clicking the button Portfolio (or Scanner or Watchlist) in the Insert tab of the toolbar and closing the wizard with Done. An empty table is opened. Alternatively, you can use existing tables.

In the Portfolio, click into a table cell of the symbol you want to reuse. A little plus sign and a rectangle appear under the mouse cursor. Now drag the cursor into the other table. The symbol is copied into the table.

In a similar way, you can drag symbols from a Scanner or Watchlist into a Portfolio.

Saving Symbols in a Portfolio as Symbol List

From within the Portfolio, you can save interesting symbols as a new symbol list.
  1. To save the symbols as a new list, click on the entry New Symbol List in the Related Tasks area of the symbol manager in the toolbox. Choose the option User-Defined Symbol List and name the list but keep it empty.
  2. In the Portfolio, click into a table cell of the symbol you want to reuse. (By pressing Shift or Ctrl while clicking with the mouse, you can select more than one row.) A small plus sign and a rectangle appear below the cursor.
  3. Since a first click opens the properties tab, click again on the button Symbol Lists in the toolbox to open the symbol manager.
  4. Drag the selected symbols to the new symbol list. The symbols are added to the list.

Exporting Portfolio Data

The table contents of the Portfolio can be copied to other programs. For more information, see the chapter Publishing.