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

Re: [amibroker] more on AlertIf . . .



PureBytes Links

Trading Reference Links

you still need to include the buy and sell statements, the code you
showed did not have them, just a list of conditions.
Buy = condition1 or condition2 or condition3 etc

On 11/1/05, Yuki Taga <yukitaga@xxxxxxxxxxxxx> wrote:
> Hi Graham,
>
> Tuesday, November 1, 2005, 1:25:06 PM, you wrote:
>
> G> Yuki, I missed a bracket
> G> Cond1 = Sum( Cross(C, 9999) AND Name()=="8604-TSE",
> G> BarsSince(DateNum() != Ref(DateNum(),-1)  )   +1 )==1;
>
> I found that just a bit ago.  But it won't scan.  Says missing buy
> sell arguments.
>
> We opened at 1:30, another 10 minutes after the announced opening.
> But we are (finally) open.
>
> Yuki
>
> >>
> >> Cond1 = Sum( Cross(C, 9999) AND Name()=="8604-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond2 = Sum( Cross(C, 9999) AND Name()=="8848-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond3 = Sum( Cross(C, 9999) AND Name()=="9984-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond4 = Sum( Cross(C, 9999) AND Name()=="9766-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond5 = Sum( Cross(C, 9999) AND Name()=="7731-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond6 = Sum( Cross(C, 9999) AND Name()=="6460-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond7 = Sum( Cross(C, 9999) AND Name()=="5016-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> Cond8 = Sum( Cross(C, 9999) AND Name()=="8263-TSE",
> >> BarsSince(DateNum() != Ref(DateNum(),-1)+1 )==1;
> >>
> >> AlertIf( Cond1 OR
> >> Cond2 OR
> >> Cond3 OR
> >> Cond4 OR
> >> Cond5 OR
> >> Cond6 OR
> >> Cond7 OR
> >> Cond8, "SOUND C:\\Windows\\Media\\Space SysStart.wav", "Audio alert", 1);
> >>
> >>
> >>
> >>
> >>
> >> 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
>
>
>
>
>
> 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
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/