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

Re: [amibroker] Re: EMPTY field



PureBytes Links

Trading Reference Links

Yes that is true, you can also use istrue

But if your system requires the use of 200 ema then you are limited to
stocks with more than 200 bars.


On Wed, 16 Feb 2005 16:34:13 -0000, prog200 <prog200@xxxxxxxxx> wrote:
> 
> 
> Graham,
> 
> I found IsEmpty works pretty good when a moving average does not
> exist but the code looks for it.
> 
> thanks
> 
> marty
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > do you mean id MA200 does not exist use the MA50 only?
> > perhaps something like this
> >
> > buy = iif( barindex()<200,  c > MA(C,50), c > MA(C,50) and C > MA
> (C,200) );
> >
> >
> >
> > On Sat, 12 Feb 2005 04:06:34 -0000, prog200 <prog200@xxxx> wrote:
> > >
> > >
> > > How do you handle EMPTY fields for exmaple
> > >
> > > on BEL the 200MA does not start until May 2002, but still like to
> add
> > > it to a buy rule before the 200ma started.
> > >
> > > buy = c > MA(C,50) and C > MA(C,200) or ???;
> > >
> > > where ??? is code to add a rule to buy if no 200ma does not exist.
> > >
> > > 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/
> 
> 
> 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/