PureBytes Links
Trading Reference Links
|
Yuki, I missed a bracket
Cond1 = Sum( Cross(C, 9999) AND Name()=="8604-TSE",
BarsSince(DateNum() != Ref(DateNum(),-1) ) +1 )==1;
On 11/1/05, Yuki Taga <yukitaga@xxxxxxxxxxxxx> wrote:
> 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);
>
>
>
>
>
> 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
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/
|