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

RE: [amibroker] Re: using POSITIONSCORE and margin requirement



PureBytes Links

Trading Reference Links

Looking for some direction on how I would implement a straight-
forward looping procedure in AFL. Suppose I have several watchlists 
and each watchlist contains a different number of stock tickers. Is 
there a way to automatically (rather than manually starting the 
program for each watchlist) begin with the first watchlist, run some 
analysis on each ticker, report some backtesting results, then move 
on to the subsequent watchlists one by one and do the same analysis? 
I don't understand how to refer to the watchlists and also how to run 
the analysis on a different number of tickers for each watchlist. 

In my non-AFL mind, I'm thinking

i=1 to numwatchlists
  j=1 to numstocks in watchlist(i)
      Analyze stock j
      j=j+1
  end
  report backtest results
  i=i+1
end




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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:
    http://docs.yahoo.com/info/terms/