| 
 PureBytes Links 
Trading Reference Links 
 | 
Title: Message
 Thanks 
for the quick response Terry! That works great. 
Scott 
  
  Try this: 
    
  if( CurrentTime > 10.00 AND CurrentTime < 10.30 )  TimeFactor 
  = 1.92 ; else {     if ( CurrentTime > 10.3 AND 
  CurrentTime < 11.0 )     TimeFactor = 1.84 
  ;     else     
  {         if ( CurrentTime > 11.0 AND 
  CurrentTime < 11.3 )         
  TimeFactor = 1.77 ;         
  else         
  {             if ( 
  CurrentTime > 11.3 AND CurrentTime < 12.0 
  )             
  TimeFactor = 1.69 
  ;             
  else             
  {                 
  if ( CurrentTime > 12.0 AND CurrentTime < 12.3 
  )                 
  TimeFactor = 1.62 
  ;                 
  else                 
  {                     
  if ( CurrentTime > 12.3 AND CurrentTime < 13.0 
  )                     
  TimeFactor = 1.53 
  ;                     
  else                     
  {                         
  if ( CurrentTime > 13.0 AND CurrentTime < 13.3 
  )                         
  TimeFactor = 1.46 
  ;                         
  else                         
  {                             
  if ( CurrentTime > 13.3 AND CurrentTime < 14.0 
  )                             
  TimeFactor = 1.39 
  ;                             
  else                             
  {                                 
  if ( CurrentTime > 14.0 AND CurrentTime < 14.3 
  )                                 
  TimeFactor = 1.31 
  ;                                 
  else                                 
  {                                     
  if ( CurrentTime > 14.3 AND CurrentTime < 15.0 
  )                                     
  TimeFactor = 1.23 
  ;                                     
  else                                     
  {                                         
  if ( CurrentTime > 15.0 AND CurrentTime < 15.3 
  )                                         
  TimeFactor = 1.15 
  ;                                         
  else                                         
  {                                             
  if ( CurrentTime > 15.3 AND CurrentTime < 16.0 
  )                                             
  TimeFactor = 1.08 
  ;                                             
  else                                             
  TimeFactor = 1 ; }}}}}}}}}}}; 
    
    
  -- 
  Terry 
  
    
    
    I 
    am trying to create an exploration for estimating a symbols volume based on 
    the current volume. I cant figure out how to properly nest my if-else 
    statements in AFL. 
    It 
    keeps erroring out at the second "else". 
    Help! 
    Thanks, Scott  
  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
 
 
  
  
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 
  |