Traders Laboratory - View Single Post - 'Linear Regression Line' indicator in Tradestation
View Single Post
  #2 (permalink)  
Old 11-30-2007, 01:01 PM
3monkeys 3monkeys is offline
3monkeys has no status.

 
Join Date: Jun 2007
Posts: 11
Thanks: 1
Thanked 6 Times in 2 Posts
Re: 'Linear Regression Line' indicator in Tradestation

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.

Reply With Quote