Title: Re: [amibroker] Help Please
Here is some very old code that you may be able to modify. You just have to add a pos and negative offset to the lines so that they touch the Highs and Lows for each segment. I have this code somewhere but can't put my finger on it.
good luck,
herman
per = Param( "Period", 50, 3, 200, 1 );
a = LinRegIntercept( Close, per );
b = LinRegSlope( Close, per );
Graph0 = C;
result = Null;
for ( i = BarCount - 1; i >= per; i = i - per )
{
CurrA = a[ i ];
CurrB = b[ i ];
result[ i ] = Null;
for ( k = 1; k < per; k++ )
{
result[ k + i - per ] = CurrA + k * CurrB;
}
}
Plot( result, "LR", colorBlue, styleThick );
Plot( C, "Price", colorRed );
Tuesday, November 25, 2008, 7:51:35 PM, you wrote:
> Hello,
> What is the best way to accomplish this study? The url shows what I
> want to achieve. It is picture 1 or picture 4 with the parallel lines
> that looks like a channel. Thank you for any help you can provide.
> Kindest regards,
> Tim
> http://www.ensignsoftware.com/images/58-2.gif
> ------------------------------------
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> *********************
> TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
> *********************
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> For other support material please check also:
> http://www.amibroker.com/support.html
> *********************************
> Yahoo! Groups Links
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email | Traditional
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
__._,_.___
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
__,_._,___
|