Manfred
 Veteran
  Posts: 210
Joined: 4/2/2006
Location: South Africa
User Profile |
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 - 208 downloads)
Attached file : LRSDchannel_Omnitrader_Example2.png (102KB - 193 downloads)
Attached file : LinRegSDChannel.txt (1KB - 205 downloads)
|