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.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Linear Regression Channel - Example Code
Posted : 1/11/2010 11:40 AM
Post #14842 - In reply to #14839

The indicator was initially designed for EOD use, but it does work OK for RT as well.

It was provided primarily as an "educational" offering, to show how to accomplish a number of different tasks in the code, such as working with dates, calculating Linear regressions, and drawing line-extensions.

The code could be modified to include spec of hours / mins / secs as "begin" times for RT, in addition to the YMD. It could also be modified to eliminate the specific date/time for the beginning of the segment, and just have a "BgnBarsAgo" input.

You can adjust the starting point using the current indicator by specifying a nonzero BarLength and EndBarsAgo INSTEAD OF using the date format ... just set any of the three date inputs to zero to deactivate it. By adjusting those first two inputs, you can put the bar just about anywhere you want.

If you'd like to have it work some other way, then why not try fiddling with the code yourself? That's why I posted it ... so that others could learn how to fish :~))

Deleting message 14842 : RE: Linear Regression Channel - Example Code


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