NexusFi: Find Your Edge


Home Menu

 





Standard Deviation Channel indicator" or "Linear Regression indicator"


Discussion in TradeStation

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




 
Search this Thread
  #1 (permalink)
Huana
Tallinn
 
Posts: 2 since Sep 2016
Thanks Given: 0
Thanks Received: 1

Hello Traders!



Maybe someone can help me out? I am searching "Standard Deviation Channel indicator" or "Linear Regression indicator" but have not found "right" one.

The indicator what I search is In TOS and it is called "StandardDevChannel"

I have searched those indicators and found some but the calculation it's not like in TOS. In TOS you can use it one day basis(charting:Today only), it basically draws a channel even it has one bar for calculations and when the time goes on the new calculation goes in. But indicators what I have found calculates based on historical bases. They can't calculate from market open and one day bases. I would like to see one big channel based on 9:30am to 4:00pm market range.

Hopefully you understand my explanation, English is not my native language.


Unfortunately I can not open account in TOS because I am not US resident. That's why I use tradestation.

Please help if you can.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
Huana
Tallinn
 
Posts: 2 since Sep 2016
Thanks Given: 0
Thanks Received: 1

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.


Reply With Quote
Thanked by:




Last Updated on November 13, 2018


© 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