NexusFi: Find Your Edge


Home Menu

 





Plot a Linear Regression Channel on the TSI Indicator


Discussion in EasyLanguage Programming

Updated
    1. trending_up 4,163 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
TornadoES
Madrid, Spain
 
Posts: 7 since Feb 2016
Thanks Given: 7
Thanks Received: 1

Hi everyone,

I am trying to code a Linear Regression Channel on a TSI Indicator in Tradestation. I have an indicator that plot this LRC on the price series but as it uses the "TL_New" reserved word I can not get it working on the TSI Indicator.

I have attached a screenshot were it is shown how the LRC looks in the price series.

Anyone knows how I can get it working or just some advice?

Thanks in advance.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642


TornadoES,

unfortunately this is not exactly supported with legacy EasyLanguage in Tradestation. However you might be able to walk around this by using one of the two methods described in this thread in the official TS forum.

Another approach would be to use OOEL for your trendlines. All approaches will require some more programming or have limitations/downsides (like the first method described in the link), though.

Regards,

ABCTG


TornadoES View Post
Hi everyone,

I am trying to code a Linear Regression Channel on a TSI Indicator in Tradestation. I have an indicator that plot this LRC on the price series but as it uses the "TL_New" reserved word I can not get it working on the TSI Indicator.

I have attached a screenshot were it is shown how the LRC looks in the price series.

Anyone knows how I can get it working or just some advice?

Thanks in advance.

Attachment 218772


Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
TornadoES
Madrid, Spain
 
Posts: 7 since Feb 2016
Thanks Given: 7
Thanks Received: 1

Thanks for your help ABCTG.

It is possible to use OOEL for the trendlines if I use range bars?


Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

TornadoES,

you are welcome. The underlying chart settings shouldn't matter. With OOEL you can draw trendlines accurately by tying them to either bars or datetime values, which is required to make them accurate on range bars, too.

Regards,

ABCTG


TornadoES View Post
Thanks for your help ABCTG.

It is possible to use OOEL for the trendlines if I use range bars?


Follow me on X Reply With Quote
Thanked by:
  #6 (permalink)
TornadoES
Madrid, Spain
 
Posts: 7 since Feb 2016
Thanks Given: 7
Thanks Received: 1

Here is the link to the TS forum where it seems that the Tradestation employees managed to code the LRC in the TSI indicator.

https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=147299&Reply_ID=812849

I have also attached a screenshot and the code just in case someone need to use this LRC and do not have access to the TS forum.


Attached Thumbnails
Click image for larger version

Name:	LRC-TSI.png
Views:	322
Size:	388.0 KB
ID:	218826  
Attached Files
Elite Membership required to download: LRC-TSI.docx
Reply With Quote
Thanked by:




Last Updated on October 12, 2016


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts