In any single chart, you can add tickers to compare performance between two or more assets. To do so, right click on the chart, select "Edit Formula" then you can either type the formula directly or have the wizard tool write it for you. To do this, click on the "Add Indicator" button, select the "External Symbol" tab, type a ticker symbol, enable "Compare with current symbol" then click on "OK". The above steps would plot a new OHLC graph on the top of the existing one. In the previous screen, you also have the ability to plot a line instead of an OHLC chart by clicking on the "What to Show?" field and selecting "Close". Do the above steps again to add another symbol to the chart and thus compare multiples securities at once. If you do not want to compare the performance of these securities but rather display each graph using a different scale, click on the "Chart" icon at the bottom of the chart (near the "S" button) and select "Set Linear Scale". Finally, if you want that the different securities use the same scale (Not very useful in comparing assets however), right click on the chart and select "Edit Formula". In the new form toolbar, there is a left and a right button. These will show you the different formulas used by the chart. NB: A chart can have one or multiple formulas. Different formulas is used simply to differentiate between the different indicators displayed on that chart. You can combine all formulas in a single one, that does not change the display. Now, note that the function that will display the OHLC chart of the external symbol is "PlotCandleStick1". The last parameter of the function will allow you to specify style settings. All you have to do here is replace "StyleOwnScale" with "StyleSymbolNone". NB: Once you put the cursor at the last parameter (or any other parameter position), use CONTROL+SPACE to display the list of available values for that parameter. This function could be very useful when writing QS language formulas. If you want to learn more about QS language, please check the following blog post: QuantShare Programming Language Tutorial
|