Registered User Joined: 9/22/2009 Posts: 4
|
instead of charting an individual symbol, i would like to chart a simple mathematical relationship between symbols, for example SPY-DIA or 4*MSFT-IBM. Is there a simple way to do this and utilize my existing layouts? Thanks very much.
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you add a Price for Symbol Indicator for each of the Symbols you wish to use in your mathematical expressions, you can Drag and Drop the Price for Symbol Indicators onto each other and select Create Indicator for symbol expressions or Drag and Drop the Price for Symbol Indicators into the RealCode Editor to use as variables for more complicated expressions.
For example, you could Drag and Drop a Price for Symbol Indicator for SPY onto a Price for Symbol Indicator for DJ-30 and select Create Indicator | Difference to create the first expression. You could Drag and Drop Price for Symbol Indicators for MSFT and IBM into the Code tab of the RealCode Editor to create something similar to the first two lines of the following RealCode Indicator (I had to change the variable names from PfS to MSFT and IBM so the RealCode could differentiate between the Price for Symbol Indicators):
'# MSFT = indicator.PriceforSymbol.MSFT
'# IBM = indicator.PriceforSymbol.IBM
Plot = 4 * MSFT.Value - IBM.Value
-Bruce Personal Criteria Formulas TC2000 Support Articles
|