[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: EQUITY LINE() function can sumeone paste it as I lost it



PureBytes Links

Trading Reference Links

In "built-in" indicators in IB editor window


eq = Foreign("~~~EQUITY", "C");
cash = Foreign("~~~EQUITY", "L");
dr = eq - Highest(eq);
bslh = HighestBars(eq);
GraphZOrder=1;
Plot(eq, "Portfolio Equity", colorLightBlue, styleLine|styleThick );
Plot(cash, "Cash", colorGreen, styleLine );
Plot(eq-cash, "Open", colorRed, styleLine );
Plot(dr, "Drawdown", colorDarkRed, styleArea );
Plot(bslh, "#bars since last high", colorDarkYellow, styleLine |
styleOwnScale, 0, 10 * LastValue( Highest( bslh ) )  );
islastbar = Status("lastbarintest");
isfirstbar = Status("firstbarintest");
bar = BarIndex();
firstbar = LastValue( ValueWhen( isfirstbar, bar ) );
lastbar = LastValue( ValueWhen( islastbar, bar ) );
al = LastValue( ValueWhen( islastbar, LinRegSlope( eq, Lastbar - firstbar ) ) );
bl = LastValue( ValueWhen( islastbar, LinRegIntercept( eq, Lastbar -
firstbar ) ) );
Lr = al * ( BarIndex() - firstbar ) + bl;
Lr = IIf( bar >= firstbar AND bar <= lastbar , Lr, Null );
Plot( Lr , "Linear Reg", colorRed, styleThick );


On Fri, 19 Nov 2004 01:12:23 -0000, das300@xxxxxxxxxx <das300@xxxxxxxxxx> wrote:
> 
> 
> yea dude its blanck !!! hehe
> 
> what cose is in it , thats what I want , so i can put it back
> 
> :-)
> 
> --- In amibroker@xxxxxxxxxxxxxxx, kaveman perth <kavemanperth@xxxx>
> wrote:
> 
> 
> > have you tried the charts section within workspace
> >
> >
> > On Thu, 18 Nov 2004 14:07:27 -0000, das300@xxxx <das300@xxxx> wrote:
> > >
> > >
> > > CAN anyone suggest where to find this I cant see it in AB site..:-
> )
> > > thanks
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, das300@xxxx wrote:
> > > >
> > > > I have sum how lost the original EQUITY LINE() in AB can sumone
> cut
> > > > and past theirs thankx
> > > > or email me
> > > > das300@xxxx
> > >
> > >
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > >
> > > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/