Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

charting a mathematical expression of symbols Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
busoni
Posted : Monday, November 23, 2009 12:36:02 PM
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.
Bruce_L
Posted : Monday, November 23, 2009 12:46:46 PM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.