InvestorsHub Logo
Followers 0
Posts 12
Boards Moderated 0
Alias Born 04/02/2011

Re: sdestiny post# 625

Friday, 04/29/2011 2:39:21 PM

Friday, April 29, 2011 2:39:21 PM

Post# of 731
Idea-add LR100 with colors to TOS

Thanks, sdestiny for the colors for RSI.

I'm guessing adding a column for LinearREegCh100 to TOS would be something like the following - I'm guessing because I don't know how to specify upper and lower bands. I'm thinking show blue for within 10% of the lower band and red if within 10% of the upper band. I'm thinking just do this for 15 minute, but just the timeframe needs to be changed if you want something else.


def LR = round(LinearRegCh100(Close))
def LowerChan = round(LinearRegCh100(LowerChannel)))
def UpperChan = round(LinearRegCh100(UpperChannel)))

plot result =
assignBackgroundColor(if
(Close < 0.1 * (UpperChan - LowerChan) + LowerChan) then color.dark_red else if
(Close > UpperChan - 0.1 * (UpperChan - LowerChan)) then color.blue
else color.current)

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.