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

Re: [amibroker] Re: Reference first signal



PureBytes Links

Trading Reference Links




kk, try 
this
 
above = 
C>ma(c,10);
count = 
sum(above,10)==10;
 
Cheers,Graham<A 
href="">http://e-wire.net.au/~eb_kavan/ 


  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: kk2628 
  [mailto:kk2628@xxxxxxxxxxxxxxxx] Sent: Thursday, 12 February 2004 
  4:28 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  Need a shorter method ?
  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@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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 Sponsor


  ADVERTISEMENT 












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.