Inter-Indicator DataSeries API (public access without reflection)
Custom indicators have no official way to read another indicator's DataSeries at runtime. The only workaround is reflection — iterating WPF visual trees and accessing private fields by name, which breaks on every ATAS update and is unsupported.
Request: expose a public IDataSeries GetDataSeries(string indicatorName, int seriesIndex) API (or similar) on ChartInfo so one indicator can read another's output by name. This is standard in NinjaTrader (Bars.Get(), SMA(Close, 14)[0]) and would eliminate an entire class of fragile workarounds for anyone building composite indicators or automated strategies.
This request was merged into another request
Comments1
Robert
Apr 14
Actually, The Add() composite pattern works for indicators you instantiate yourself, but there is no public API to access DataSeries from indicators already placed on the chart by the user. A GetIndicatorByAlias() or similar method would eliminate the need for reflection-based workarounds. Probably the better method.