PureBytes Links
Trading Reference Links
|
Put it under the Buy = Exrem() statement
--- In amibroker@xxxxxxxxxxxxxxx, "prog200" <prog200@xxxx> wrote:
>
> No that does not work still. It starts to recount again when the Buy
> occurs.
>
> Any other ideas?
>
> Marty
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "prog200" <prog200@xxxx> wrote:
> >
> > I'm having trouble keeping the value of bars since of the last
green
> > arrow occured. When I use the code below it gives me the
barsince,
> > but will start to recount when CCI(9) becomes a buy again. Is
there a
> > way to find the barsince of the Green Arrow?
> >
> > I'm trying to sell at certain times in the future and do not want
to
> > use the N-Bar stop in the Back Tester.
> >
> > Buy = CCI(9) > 0;
> >
> > paidt = BarsSince( Buy == 1 );
> >
> > printf("barssince = %g\n", BarsSince( Buy1 == 1 ));
> >
> > Sell = paidt > 14;
> >
> > Buy = ExRem(Buy,Sell);
> > Sell = ExRem(Sell,Buy);
> >
> > Thanks
> >
> > Marty
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/
|