PureBytes Links
Trading Reference Links
|
Hi,
The test for equality is "==".
Buy=Totallongpts == 3 AND MTII<=1.60;
Steve
----- Original Message -----
From: <slevy1220@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, February 18, 2003 8:21 AM
Subject: [amibroker] and, or and = operators in buy and sell statements
> Perhaps someone can help me properly use operators in buy and sell
> statements. The following is taken from code I am writing. The
> intent is to generate a buy signal if both the conditions stated are
> true. The intent of the next statement is to generate a sell signal
> if either of the stated conditions are true.
>
> Buy=Totallongpts=3 AND MTII<=1.60;
> Sell=Totallongpts<=1 OR MTII>1.60;
>
> I would be grateful if someone would correct my syntax. Many thanks.
>
>
>
>
> 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/
>
>
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/
|