Is there a method or an example of using an indicator, (such as DPO) on an external symbol (Such as SPX) ? Or...what would the code look like?
Thanks,
Jim K.
Size:
Color:
An indicator accepting a DataSeries or a Bars object (that is,
any indicator) can be applied to an external symbol. The idea is to pass the "handle" of the DataSeries/Bars object (DataSeries in case of DPO) to the indicator. There are numerous examples if you search the forum:
Technical Indicators on External Symbol's PaneExternal Symbol with IndicatorFor example, you defined DPO of the current Bars symbol (let's say Google) being charted as:
CODE:
Please log in to see this code.
And the DPO of Microsoft would be:
CODE:
Please log in to see this code.
Background:
* WealthScript Programming Guide: 1) Indicators > Indicators of Secondary Symbols; and 2) DataSeries > Accessing Secondary Symbols
Size:
Color:
Eugene:
Thanks for the info. It's just what I needed!
Jim K.
Size:
Color:
Glad to have helped.
Size:
Color: