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

Re: [amibroker] Re: Programing Help



PureBytes Links

Trading Reference Links

another method could be

setup1 = flip(condition1,condition2);
buy = condition2 and ref(setup1,-1);

On Apr 3, 2005 1:09 AM, ct1942 <ct1942@xxxxxxxxx> wrote:
> 
> 
> Thanks,
> 
> That did it!
> 
> --- In amibroker@xxxxxxxxxxxxxxx, kris45mar <kris45mar@xxxx> wrote:
> > try barssince(......  ;
> >
> > two s's in barssince.
> >
> > ChrisB
> > --- ct1942 <ct1942@xxxx> wrote:
> > >
> > > When I tried this, I get a syntax error between
> > > barsince and (condition1).
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "ct1942"
> > > <ct1942@xxxx> wrote:
> > > >
> > > > Thanks
> > > >
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "hairy_mug"
> > > <WSCHWARZ@xxxx> wrote:
> > > > >
> > > > >
> > > > > buy=barsince(condition1)>0 and conition2;
> > > > >
> > > > > --- In amibroker@xxxxxxxxxxxxxxx, "ct1942"
> > > <ct1942@xxxx> wrote:
> > > > > >
> > > > > > I'm sure there is a way to program this, but I
> > > don't know it. Please
> > > > > > help me.
> 
> > > > > >
> > > > > > When condition 1 happens, I want to buy at the
> > > next occurance of
> > > > > > condition 2.
> > > > > >
> > > > > > TIA,
> > > > > >
> > > > > > Cordell
> > >
> > >
> > >
> > >
> >
> >
> >
> > __________________________________
> > Yahoo! Messenger
> > Show us what our next emoticon should look like. Join the fun.
> > http://www.advision.webevents.yahoo.com/emoticontest
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


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


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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