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

[amibroker] Re: Another off topic



PureBytes Links

Trading Reference Links


Howdy Eric,
 
If we think through the logic of what you are trying to accomplish we will end up with something like this:
 
MyBuy = IntermediateTermBuy or SwingBuy;
MySell = IntermediateTermSell and ((Not SwingBuy) or SwingSell);
 
I just craft one piece at a time like a jigsaw puzzle.  It's actually kinda fun if you're a computer dork like me.
 
Hope this helps,
Garyericleake <eleake@xxxxxxx> wrote:
I'm trying to construct a scenario to test two signals together, but not sure how to approach it in Amibroker. I have two signals, one that is a very short term swing trade and another intermediate term. I would like to test both in the same portfolio, at the same time, but am having difficulty with what I assume would be an IIf statement.The rules would be something like this:If Intermediate term buy =buy, ignore everything else.If Intermediate term sell AND no swing buy =sell.If Intermediate term sell AND swing Buy =buy.If Intermediate term sell and swing sell =sell.I have made several attempts at this, but failed miserably. I won't embarass my self by giving examples!Any help would be much appreciated.-Eric.Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 
		Do you Yahoo!?Win a $20,000 Career Makeover at Yahoo! HotJobs 


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 the Yahoo! Terms of Service.