PureBytes Links
Trading Reference Links
|
Tomasz,
I decided to look into this closer.
While this is true that an "indicator":
10 OR 20 OR 30
- in Metastock returns 1,
an indicator graph0=(10 OR 20 OR 30) in Amibroker returns 10.
(50 OR 20 OR 30) = 50, etc.
I have to say I am totally surprised by this outcome.
Also
aa=(10 OR 14 OR 18);
graph0=RSI(aa)>50
is not equal to
graph0=RSI( 1 ) > 50
but something else. I think RSI(10)>50, but I know much too little of
Amibroker to tell.
Thank you. Best regards
Yarroll
> Hello,
>
> It is allowed to write
> > aa=(10 OR 14 OR 18);
> > RSI(aa)>50
>
> but this will NOT work like:
> > RSI(10)>50 OR
> > RSI(14)>50 OR
> > RSI(18)>50
>
> OR is logical operator and it treats NON-zero numbers as TRUE and zero as
FALSE.
>
> Therefore
> 10 OR 14 OR 18 is simply TRUE and TRUE equals 1
>
> So:
> > aa=(10 OR 14 OR 18);
> > RSI(aa)>50
>
> is exactly the same as
>
> RSI( 1 ) > 50
>
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Yarroll" <yarroll999@xxxxxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, May 07, 2004 2:59 PM
> Subject: [amibroker] Multiple numeric variables
>
>
> > Hello List,
> >
> > Is it true that Amibroker allows the following code:
> >
> >
> > aa:=(10 OR 14 OR 18);
> > RSI(aa)>50
> >
> > Also, does anyone use a system in practice - on a daily basis, etc. -
where
> > multiple variables are coded like this. I mean, does it compute
properly,
> > doesn't hang up machine etc.
> > Logically, it seems like a considerable improvement over Metastock where
I
> > would have to code the above as
> >
> > RSI(10)>50 OR
> > RSI(14)>50 OR
> > RSI(18)>50
> >
> > ... which necessitates some more computing and strain on resources.
> >
> > Thank you. All the best
> > Yarroll
> >
> >
> >
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|