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

RE: [amibroker] can you put script into a procedure



PureBytes Links

Trading Reference Links




It 
would be helpful if you would post the error that you're 
getting...
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>d

  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Andrew 
  [mailto:ae_perrin@xxxxxxxxxxxxxxx] Sent: Thursday, September 11, 
  2003 6:04 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] can you put script into a procedureCan 
  someone point out whether you can put the following Script (adds ticker to 
  watchlist) into a procedure. My effort follows but I continually get an 
  error.Ticker = "OSH";WLNumber = 
  20;EnableScript("jscript");<%AB = 
  AFL.CreateObject("Broker.Application");AB.Stocks( AFL("Ticker" ) 
  ).WatchListBits |= 1 << AFL( "WLNumber" );%>My Procedure 
  effort:procedure WLTickerAdd(sTicker,WL){Ticker = sTicker; //? 
  is this requiredWLNumber = WL; //? this 
  alsoEnableScript("jscript");<%AB = 
  AFL.CreateObject("Broker.Application");AB.Stocks( AFL("Ticker" ) 
  ).WatchListBits |= 1 << AFL( "WLNumber" 
  );%>}WLTickerAdd("OSH",20);Buy = 1;And while 
  we're on the subject, has anyone got a script that will clear a watchlist. 
  I found this by TJ -"You can erase watch lists by assigning zero to both 
  WatchListBits and WatchListBits2 in ALL stocks."- Can anyone 
  elaborate?ThanksAndrewSend 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.