Standard Deviation Channel indicator or Linear Regression indicator

post your indicators here

Moderator: moderators

Huana
rank: <50 posts
rank: <50 posts
Posts: 3
Joined: Mon Nov 12, 2018 9:41 pm
Reputation: 0
Gender: None specified

Standard Deviation Channel indicator or Linear Regression indicator

Postby Huana » Mon Nov 12, 2018 10:29 pm

Hello Traders

I am searching Standard Devation Channel indicator or Linear Regression indicator for tradestation but have not found the right one.

I have searched those and found some but the calculation if different. Most of them can't calculate from opening and by one day basis. The right calculation is in TOS and it is called "StandardDevChannel" Basically I would like to see one big channel from 9:30am to 4:00pm market range. The indicator draws a channel even it has one bar for calculations and when time goes on the new calculation goes in.

Is it complicated to modify TOS indicator for Tradestation?

Hopefully you understand my explanation. :roll:

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

Huana
rank: <50 posts
rank: <50 posts
Posts: 3
Joined: Mon Nov 12, 2018 9:41 pm
Reputation: 0
Gender: None specified

Re: Standard Deviation Channel indicator or Linear Regression indicator

Postby Huana » Tue Nov 13, 2018 11:27 am

TOS standardDevChannel code:

input price = close;
input deviations = 2.0;
input fullRange = Yes;
input length = 21;

def regression;
def stdDeviation;
if (fullRange) {
regression = InertiaAll(price);
stdDeviation = stdevAll(price);
} else {
regression = InertiaAll(price, length);
stdDeviation = stdevAll(price, length);
}

plot UpperLine = regression + deviations * stdDeviation;
plot MiddleLine = regression;
plot LowerLine = regression - deviations * stdDeviation;

UpperLine.SetDefaultColor(GetColor(8));
MiddleLine.SetDefaultColor(GetColor(8));
LowerLine.SetDefaultColor(GetColor(8));

Can someone modify it to Tradestation? But I don't see the "code" what make's it calculate from first bar? Length seems to be 21 in default, but if you put timeframe "today only" then it starts calculating from first bar. :roll:

jpmbull
rank: <50 posts
rank: <50 posts
Posts: 3
Joined: Sat Aug 13, 2011 4:37 pm
Reputation: 0
Gender: Male

Re: Standard Deviation Channel indicator or Linear Regression indicator

Postby jpmbull » Thu Nov 15, 2018 2:24 am

Something like this?Daily chart
Attachments
ESZ18 11-14-18.jpg
ESZ18 11-14-18.jpg (77.43 KiB) Viewed 4664 times

Zorak
rank: 50+ posts
rank: 50+ posts
Posts: 57
Joined: Sat Jun 26, 2021 6:53 pm
Reputation: 10
Gender: None specified

Re: Standard Deviation Channel indicator or Linear Regression indicator

Postby Zorak » Sun Jun 27, 2021 5:04 pm

In this site there is the Linear Regression Channel (and 3 other free indicators):

https://keystonestrategytrading.com/fre ... on-channel

but the .Eld files are for Tradestation 10 and I have Tradestation 8.2 (see image), if someone who has
who has Tradestation 10 can insert here the formulas of the indicators in text format, thank you very much

Image

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “Tradestation indicators”