PureBytes Links
Trading Reference Links
|
Hi,
The Cross function returns True (or 1) on the bar that Array1 CROSSES above Array2. After it has crossed above Array2 it will return False (or 0).
Where as this formula "MA(C,30) > MA(C,50)" will produce a true signal every day that the MA30 is greater than MA50.
Here is the reference:
http://www.amibroker.com/guide/afl/afl_view.php?name=CROSS
Regards,
William Peters
www.amitools.com
-----Original Message-----
From: emg_gang [mailto:joeemmett@xxxxxxxxxxx]
Sent: Saturday November 29, 2003 10:52 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Cross or > ??
Is it proper to use the "Cross" statement in a BUY statement or the >
symbol. I have been using these interchangeable, but it appears I
should not!
Buy = Cross(MA(C,30),MA(C,50));
Buy = MA(C,30) > MA(C,50);
I was doing some optimization for MA and found a difference in
returns between using the "Cross" or the '>'!
I would have thought they would be the same since they both buy when
the 30 day is greater than the 50 day!
Could someone tell me which one is correct and if you have time WHY!
Thanks, Joe
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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/
|