Not an expert TS programmer here, but I think what you are asking is a little complicated with TS EL. Here is a similar example of drawing trendline on a subgraph:
https://www.tradestation.com/Discuss...Topic_ID=69608
|
Quote: |
 |
|
|
there are two primary issues. First, the TrendLines Automatic indicator is hard coded to use price data. These references will need to be replaced with references to your MyRSI calculations. Second, trendlines cannot be drawn on a subgraph without price data. Thus, you have to go through a somewhat tedious process of inserting a symbol into the desired subgraph, changing its color to the subgraph's background color and fixing the subgraph's scale to match |
|
|
|
|
A simple solution may be to use the Opentick NYSE feed ($1/month) of ^ADDIFFN into the free for charting Ninjatrader and plot the regression channel. Please note that the Opentick feed is not always reliable, but neither is the Adv-Decl line.

One more advantage is that you could see the candles for the Adv-Decl line, which is useful for some traders.
