OmniTrader Professional Forum - OmniLanguage Discussion
Linear Regression (Standard Deviation) channel ind

^ Top
Manfred

Posts: 210

Joined: 4/2/2006
Location: South Africa

User Profile
 
Subject : Linear Regression (Standard Deviation) channel ind
Posted : 1/10/2019 6:31 AM
Post #30234

Hi all,

I was experimenting with LR channel approaches recently. I just noticed Jim Dean created a beautifully elegant LR channel solution in the forum earlier which uses Trendline approaches. The below is different logic being a lot closer to a Bollinger band concept based on Standard deviation. The code is also very basic so is easier to adapt by anyone less experienced.

The approaches are not comparable and I make no claims about my code effectiveness. I adapted the original code I worked from to suit what I was looking for as a trend filter. Adapt it as you see fit for your own purposes.

The basic indicator concept is an # period smoothed inner Linear Regression curve of H and C prices, with an outer channel plotted including the Std deviation of that period. I then incorporated some channel colour logic to suit what I wanted.

Have fun,

Cheers
Attached file : LRSDchannel_Omnitrader_Example1.png (123KB - 224 downloads)
Attached file : LRSDchannel_Omnitrader_Example2.png (102KB - 206 downloads)
Attached file : LinRegSDChannel.txt (1KB - 227 downloads)



https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=7652&posts=1