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

Re: [amibroker] refresh all after exploration


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] refresh all after exploration
  • From: "Tomasz Janeczko" <amibroker@xxxxxx>
  • Date: Sat, 20 Dec 2003 15:31:20 -0800
  • In-reply-to: <GOENKICEHGEHAHMNAOCJCEKBEMAA.dmerrill@xxxxxxx>

PureBytes Links

Trading Reference Links




Andrew,
 
Status("StockNum") works only in AA window.
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Andrew 
  Perrin 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, December 20, 2003 11:55 
  PM
  Subject: Re: [amibroker] refresh all 
  after exploration
  
  Dave
  why not use 
  (Status("StockNum") == 0)  to initiate a watchlist count, something 
  like
  watchlistnum = <FONT 
  color=#ff00ff>1;
  List = <FONT 
  color=#0000ff>GetCategorySymbols( categoryWatchlist, 
  WatchlistNum);
  for<FONT 
  face=Arial> (j=0; (sTicker = <FONT 
  color=#0000ff>StrExtract (List , j)) !=""; 
  j++ )
  { Count = j;}
   
  Then save the value of count using Osaka or possibly the 
  new AB File Input/Output functions (I've not totally sorted 
  out these functions myself yet).  Then at the end of exploration code, 
  retreive Count value and then use something like
  if (Status("StockNum") == count)
      { the code 
  you want to excute at end of exploration }
   
  These are ideas, I've not tried 
  them but will later on today.
   
  <FONT 
  face=Arial>Andrew
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    Dave Merrill 
    
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Sunday, December 21, 2003 3:15 
    AM
    Subject: [amibroker] refresh all after 
    exploration
    I know the following code refreshes all watchlists 
    etc:AB = 
    CreateObject("Broker.Application");AB.RefreshAll();How can I get 
    this to run once, at the end of an exploration?Status("StockNum") == 
    0 is true for only the first stock, but unless theexploration is running 
    on a watchlist and I hard code its number into my AFLto find the number 
    of stocks in it, I don't see any way to detect when I'mon the LAST 
    stock.Can this be done?If not, Tomasz, please consider this 
    a request for some feature that wouldallow it. Status("LastIssue") would 
    do it.A more flexible thing I'd love to see is a way to get the list 
    of all stocksin the current backtest or exploration, something 
    likeStatus("IssuesInTest"), or a reserved variable, maybe IssuesInTest. 
    Thosewould be very useful in any case, for calculating averages or 
    otherquasi-composites on the stocks being tested.Dave 
    MerrillSend 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 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.