| 
 PureBytes Links 
Trading Reference Links 
 | 
 Not sure what the S&P 500 Histogram is.  Histogram 
of what?  
Hello all,
  I have some experience with writing AFL scripts 
to perform  backtesting. I was wondering how I would go about programming 
this  scenario.
  On a weekly basis, check the SP-500 histogram. A buy 
signal is  present so long it is positive, and a short signal if it is 
negative. For a buy signal, go long the strongest ETF from a list of ETFs in 
a watchlist. As long as the buy signal is present, each week select the 
 strongest ETF from the list. If a short signal is present, each week 
 select the weakest ETF from the list. Use this as a backtest. I was 
 thinking of using the ADX or RSI as the ETF selection criteria.
  if( 
S&P histogram > 0 ) {   each week select the strongest 
ETF } else {   each week short the weakest ETF }
  Any 
ideas?
  Many thanks, Paul
 
 
  
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
 |