I would like to have a trend line drawn using the last buy/sell signal
as the starting point.  I have not been able to figure out how to do
that and would like some suggestions.  Here is what I tried, which has
not gotten an error message, but it has not produced anything either.
 I know the rest of the code works to draw a line and the only thing
I'm manipulating is the daysbackb variable.  Can this work without a
lot of complex coding?
.
.
.
Daysbackb = LastValue(LowestSinceBars( Buy, C)); 
shift = Param("Look back period",0,0,50000,1); 
xb = Cum(1);
lastxb = LastValue( xb ) - shift; 
ab = LastValue( Ref(LinRegIntercept( p, Daysbackb), -shift) ); 
bb = LastValue( Ref(LinRegSlope( p, Daysbackb ), -shift) ); 
yb = Ab + bb * ( xb - (Lastxb - DaysBackb +1 ) ); 
.
.
.

Thanks for any help.

Chuck




Please note that this group is for discussion between users only.

To get 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:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to