PureBytes Links
Trading Reference Links
|
Hi,
I want to make sure all the previous 20
bars close are above a 10-day MA, currently I am using a lengthy method to
code AFL and I appreciate if someone can share with me the shorter way to
code.
Lengthy way
10ma=ma(10,C);
aboveMA = ref(C,-1)>10ma and ref(C,-2)>10ma
and ref(C,-3)>10ma................
Thanks
KK
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.
|