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

Re: [amibroker] Simple formula question



PureBytes Links

Trading Reference Links


Hello,
 
Since cross function is only true on the day of the crossover, you can do something like this
 
Buy = cover = cross(graph8,graph9) AND graph9 < ma(c,150);
 
Really what you care about is where is graph9 on the day of the cross as technically it is possible to have graph8 cross above both graph9 and ma(C,150) on the same day.
 
Hope this helps,
Gary
 
jmbruegge <jmbruegge@xxxxxxxxx> wrote:
I am trying to write a simple formula for the following and have some of it written but am stuck near the end - "Buy only if the 15 day MA crosses above the 35 day MA and the crossover occurs below the 150 day moving average" here is what I have - "Buy=cover=cross(graph8,graph9)________"graph 8 and 9 are the 15 and 35 day MA. How can I write out the end "and the crossover occurs below the 150 day MA" ?Any help appreciated ??cheers - jmb 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 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
Do you Yahoo!?
Free Pop-Up Blocker - Get it now






Yahoo! Groups Sponsor












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