TC2000.com• Download software • Tutorial videos • Subscription & data-feed pricing • Class schedule

TC2000Brokerage.com• New account application • Trading resources • Margin rates • Stock & option commissions

Worden Discussion Forum » Customer Training & Support » PCFs, EasyScan and Custom Indicators » Linear regression channel calculations

Bruce do these formulas work in TC2000, i keep getting syntax error

if you wrote the last formulas above Linear, Upper, and Lower as 20,20 that would get the last /600 down under 500 bars and that would work on TC2000 v12 v16.

If so would you post here Thanks

Yes, these formulas should all work in TC2000. I do not know why you would be getting a syntax error.

Are you using Internet Explorer or Edge when copying formulas from the forums into TC2000? If so, try copying and pasting the formula into Notepad and then copying and pasting the formula from Notepad into TC2000 instead of copying and pasting directly from the forums into TC2000.

Another option would be to use Chrome instead as it doesn't seem to be adding extra formatting like IE and Edge.

Note that these formulas are designed to get the values of the linear regression channels in TC2000 v7. You could use them in Custom PCF Indicators to try and replicate the Moving Linear Regression Channels from TC2000 v7 in TC2000 v12 or v16, but you would be able to use them to add channels to a Linear Regression Line indicator in v12 or v16.

The / 600 at the end of the formula does not mean it is using 600 bars of data. It is just a denominator designed to get the formula to return the correct value.Those formulas should actually only be using 30 bars of data.