NexusFi: Find Your Edge


Home Menu

 





Plot a Linear Regression Channel on the TSI Indicator


Discussion in EasyLanguage Programming

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




 
Search this Thread

Plot a Linear Regression Channel on the TSI Indicator

  #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?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628


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 Twitter 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,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

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 Twitter 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:	229
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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts