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

[amibroker] Re: Reverse engineering eSignal ZigZag code



PureBytes Links

Trading Reference Links




yes ofcourse...... thanks
 
regards, Ed
 
<BLOCKQUOTE dir=ltr 
>
   
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=gkavanagh@xxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, July 22, 2004 12:54 
  PM
  Subject: RE: [amibroker] consecutive down 
  days | looping
  
  
  <SPAN 
  >You could just have simple 
  statements, something like these
  <SPAN 
  > 
  <SPAN 
  >NumDownBars = barssince( c >= 
  ref(C,-1) );
  <SPAN 
  >NumUpBars = barssince( c <= 
  ref(C,-1) );
  <SPAN 
  >NumEqualBars = barssince ( 
  c!=ref(c,-1) );
  
  <SPAN 
  >Cheers,Graham<A 
  href="">http://e-wire.net.au/~eb_kavan/ 
  
  <SPAN 
  >-----Original 
  Message-----From: ed 
  [mailto:ed2000nl@xxxxxxx] <SPAN 
  >Sent: Thursday, July 22, 2004 5:34 
  PMTo: <A 
  href="">amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: [amibroker] consecutive down 
  days | looping
  <FONT face="Times New Roman" 
  size=2> 
  
  <SPAN 
  >hi,
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <SPAN 
  >below a little code to show 
  consecutive down days. I need loopings to do this. I wonder if it would be 
  possible to avoid the loopings and just use AFL array based coding to do this. 
  Any ideas?
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <SPAN 
  >rgds, Ed
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face="Courier New" 
  size=2>tt = <FONT 
  color=blue>IIf<SPAN 
  >(C < 
  <SPAN 
  >Ref<SPAN 
  >(<SPAN 
  >C,-<FONT 
  color=fuchsia>1<FONT 
  color=black>),<FONT 
  color=fuchsia>1<FONT 
  color=black>,<FONT 
  color=fuchsia>0<FONT 
  color=black>); <FONT 
  color=maroon><SPAN 
  >for<FONT 
  color=black> (i=<FONT 
  color=fuchsia>1<FONT 
  color=black>; i<<SPAN 
  >BarCount; i++) { 
     <SPAN 
  >if<FONT 
  color=black> (tt[ i ] == <FONT 
  color=fuchsia>1<FONT 
  color=black> <SPAN 
  >AND tt[ i - <FONT 
  color=fuchsia>1<FONT 
  color=black> ] >= <FONT 
  color=fuchsia>1<FONT 
  color=black>) { 
        tt[ i ] = tt[ i ] + tt[ i - 
  <SPAN 
  >1<SPAN 
  > ];    } } 
  <SPAN 
  >Plot<SPAN 
  >(tt,<SPAN 
  >""<SPAN 
  >,<SPAN 
  >colorWhite,<SPAN 
  >styleHistogram | <SPAN 
  >styleThick); 
  
  <FONT face="Times New Roman" 
  size=2><SPAN 
  ><FONT 
  face="Courier New">Check AmiBroker web page at:<FONT 
  face="Courier New"><FONT 
  face="Courier New"><A 
  href="">http://www.amibroker.com/<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Check AmiBroker web page at:<A 
  href="">http://www.amibroker.com/Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


Check AmiBroker web page at:
http://www.amibroker.com/

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.