OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


This message cannot be deleted. It is the first message of the thread.
Administrators or moderators may choose to delete the entire thread


 
Manfred

Veteran
100100
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

[Edited by Manfred on 1/10/2019 6:37 AM]

Attached file : LRSDchannel_Omnitrader_Example1.png (123KB - 220 downloads)
Attached file : LRSDchannel_Omnitrader_Example2.png (102KB - 204 downloads)
Attached file : LinRegSDChannel.txt (1KB - 222 downloads)

Deleting message 30234 : Linear Regression (Standard Deviation) channel ind


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.