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

Re: [amibroker] more on AlertIf . . .



PureBytes Links

Trading Reference Links

Hi Graham,

I tried this, which I think is what you meant, but I am not positive.
But when I checked it with the editor, I got a syntax error at the
end, 'expecting ')' or ',' ...

P.S. They found the problem, and we will open for a 1 hour 40 minute
day at 1:20 PM Tokyo time.

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);




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