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

Re: [amibroker] Re: Improper code behavior



PureBytes Links

Trading Reference Links




<FONT face=Arial 
color=#0000ff size=2>EXCELLENT piece of code H!
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>You need to start emptying out your tool box and posting 
one per day...??!!  8-)
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>d

  
  
  From: Herman van den Bergen 
  [mailto:psytek@xxxxxxxx] Sent: Friday, May 07, 2004 8:17 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
  Re: debugging in AB
  
  
  Hi 
  paul,
  Write a few Debuggin<SPAN 
  class=093545711-07052004>g functions to give you exactly what you 
  need and copy them to an include 
  file, you can make it as simple <SPAN 
  class=093545711-07052004>or complicated as you like<SPAN 
  class=093545711-07052004>. Below an example (verify it!), the "#" 
  is a personal filter to block DBV 
  output from other programs. <FONT 
  color=#008000>
  
  function<FONT 
  color=#000000 size=2> DB( nameOfArray, ABarray, NumLastBarsToDisplay 
  )<SPAN 
  class=093545711-07052004>    {<SPAN 
  class=093545711-07052004>    if(NumLastBarsToDisplay 
  >(BarCount-1)) NumLastBarsToDisplay =BarCount-1<FONT 
  color=#000000 size=2>;<SPAN 
  class=093545711-07052004>    if(NumLastBarsToDisplay 
  <0) NumLastBarsToDisplay =0<FONT color=#000000 
  size=2>;    
  for(b=BarCount-1-NumLastBarsToDisplay ; b<BarCount-1; 
  b=b+10<FONT color=#000000 
  size=2>)<FONT 
  size=2>    {<SPAN 
  class=093545711-07052004>        
  S="#, "+NameOfArray+", ["+NumToStr(b,1.0,False)+"], 
  "<FONT color=#000000 
  size=2>;<FONT 
  size=2><SPAN 
  class=093545711-07052004>        
  for(n=0;n<10;n++) S=S+NumToStr(ABarray[b+n],1.2,False)+", 
  ";<SPAN 
  class=093545711-07052004>        
  _TRACE( S 
  );<SPAN 
  class=093545711-07052004>    
  }}
  Now call the function whenever you 
  want debugging output: 
  
  DB( "Close", Close, 
  100 ); 
  and you get a 
  ready for export output like this:<SPAN 
  class=093545711-07052004>
  [3080] #, Close, [1266], 34.03, 34.42, 35.34, 
  35.22, 35.79, 35.91, 35.84, 36.16, 37.10, 37.45, [3080] #, Close, [1276], 
  36.98, 36.94, 36.94, 37.17, 36.63, 36.81, 36.15, 36.09, 36.53, 35.68, 
  [3080] #, Close, [1286], 35.99, 36.92, 37.21, 36.94, 36.87, 36.20, 35.64, 
  34.77, 35.10, 35.25, <SPAN 
  class=093545711-07052004>
  Good 
  luck,Herman
  <SPAN 
  class=093545711-07052004> <FONT face=Tahoma 
  size=2>-----Original Message-----From: rekorbima 
  [mailto:amibroker@xxxxxxxxxxxxx]Sent: Thursday, May 06, 2004 11:03 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
  debugging in AB
  --- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen" 
    <psytek@xxxx> wrote:> Paul, before you go into a lot of 
    trouble try DebugView... it goes along way> as it will display 
    entire arrays (but no subscripts)Herman:Would you be kind 
    enough to post code showing how to display an array in DebugView, 
    please? The way I'm imagining is so brutally tedious, and difficult to 
    look at, that I must have the wrong idea.Thanks for your help with 
    this.   -PaulSend 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@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.