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

RE: [amibroker] JScripts - some debugging help needed


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: RE: [amibroker] JScripts - some debugging help needed
  • From: "Herman vandenBergen" <psytek@xxxxxxxx>
  • Date: Tue, 30 Dec 2003 16:31:04 -0800
  • In-reply-to: <019501c3cf31$758df2d0$0600a8c0@xxxx>
  • Title: Message

PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>It doesn't delete ~Test2
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>even after WorkSpace refresh it is still there, have you tried it 
yourself?
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>h

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: dingo 
  [mailto:dingo@xxxxxxxxxxxx]Sent: December 31, 2003 8:03 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
  JScripts - some debugging help needed
  when 
  you say "doesn't want to work" what do you mean by that?  
  8-)
  <FONT face=Arial color=#0000ff 
  size=2> 
  <FONT face=Arial color=#0000ff 
  size=2>d
  
    
    <FONT 
    face=Tahoma size=2>-----Original Message-----From: Herman 
    vandenBergen [mailto:psytek@xxxxxxxx] Sent: Tuesday, December 30, 
    2003 6:22 PMTo: AmiBrokerSubject: [amibroker] JScripts 
    - some debugging help needed
    <SPAN 
    class=780530123-30122003>Dale,
    <SPAN 
    class=780530123-30122003> 
    i decided I'd 
    rather look stupid then waste more time. The RemoveAllQuotes() works fine 
    but my DeleteComposite() doesn't want to work, can somebody help correct the 
    code?
    <SPAN 
    class=780530123-30122003> 
    Many 
    thanks!
    <SPAN 
    class=780530123-30122003>herman
    <SPAN 
    class=780530123-30122003> 
    <FONT 
    size=2>Buy<FONT 
    color=#000000>=Sell<FONT 
    color=#000000>=Short<FONT 
    color=#000000>=Cover<FONT 
    color=#000000>=0<FONT 
    size=2>; <FONT 
    color=#ff0000>Filter<FONT 
    color=#000000>=1<FONT 
    size=2>; <FONT 
    color=#0000ff>AddToComposite(<FONT 
    color=#ff00ff>1,<FONT 
    color=#ff00ff>"~Test1",<FONT 
    color=#ff00ff>"x"<FONT 
    color=#000000>); AddToComposite<FONT 
    color=#000000>(1<FONT 
    color=#000000>,"~Test2"<FONT 
    color=#000000>,"X"<FONT 
    size=2>); <FONT 
    color=#0000ff>EnableScript(<FONT 
    color=#ff00ff>"jscript"<FONT 
    face=Arial>); <% <FONT 
    color=#ff0000>function 
    RemoveAllQuotes( Name<FONT 
    size=2> )    { 
       AB = new ActiveXObject(<FONT 
    color=#ff00ff>"Broker.Application"<FONT 
    face=Arial>);    iQty = AB.Stocks( 
    Name<FONT 
    face=Arial> ).Quotations.Count; 
       <FONT 
    color=#ff0000>for( i = iQty - 
    1; i >= 
    0<FONT 
    face=Arial>; i-- ) 
          { 
    <FONT 
    size=2><FONT 
    color=#000000>      AB.Stocks( <FONT 
    color=#0000ff>Name<FONT 
    color=#000000> ).Quotations.Remove( i ); 
          }    } 
    <FONT 
    color=#ff0000>function<FONT 
    size=2> DeleteComposite( CompName ) 
       {    AB = new 
    ActiveXObject(<FONT 
    color=#ff00ff>"Broker.Application"<FONT 
    face=Arial>);    AB.Stocks( CompName 
    ).Remove();    } %> script = <FONT 
    color=#0000ff>GetScriptObject<FONT 
    face=Arial>(); script.RemoveAllQuotes(<FONT 
    color=#ff00ff>"~Test1"<FONT 
    face=Arial>); script.DeleteComposite(<FONT 
    color=#ff00ff>"~Test2"); 
    
    <SPAN 
    class=780530123-30122003> 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 
    
    
    Yahoo! Groups Links
    
      To visit your group on the web, go to:<A 
      href="">http://groups.yahoo.com/group/amibroker/  

      To unsubscribe from this group, send an email to:<A 
      href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

      Your use of Yahoo! Groups is subject to the <A 
      href="">Yahoo! Terms of Service. 
    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 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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.