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

Re: [amibroker] Re: Barsince for last buy arrow



PureBytes Links

Trading Reference Links

Buy =  CCI(9) > 0; gives a buy signal everytime the CCI is >0
to get a single occurence use Cross
Buy =  Cross( CCI(9), 0 );


On Mon, 31 Jan 2005 03:38:48 -0000, prog200 <prog200@xxxxxxxxx> 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
> 
> 
> 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 --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/