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

RE: [amibroker] Syntax Question



PureBytes Links

Trading Reference Links

You're correct on the AND/OR, Sam.
buy=cond1;
buy=cond2;
Would change buy to cond2.
Bob

-----Original Message-----
From: Sam Levy [mailto:slevy1220@xxxxxxxxxxxxx]
Sent: Monday, May 05, 2003 5:48 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Syntax Question


Is the following correct?:

If I want a buy signal if both of two conditions are true, I would 
code:

buy=cond1 and cond2;

If I want a buy signal if either is true, I would code:

buy=cond1 or cond2;

What is the difference between those and:

buy=cond1;
buy=cond2;

I would be grateful if someone would set me straight on this.



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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/