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

[amibroker] and, or and = operators in buy and sell statements



PureBytes Links

Trading Reference Links

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/