| 
 Louis try this instead ... 
  
In LineArray() instead if y11 use LastValue(y11). 
Can not use arrays here 
  ----- Original Message -----  
  
  
  Sent: Tuesday, September 16, 2008 4:00 
  PM 
  Subject: Re: [amibroker] What is 
  wrong? 
  
  
  yes ... replace the first and 3rd parameters in 
  LineArray with numbers ... then replace one at a time with formula ... should 
  isolate problem this way. 
    
  The numbrers should be valid numbers visible on 
  the screen (something close to lastvalue(Barindex()) 
  
    ----- Original Message -----  
    
    
    Sent: Tuesday, September 16, 2008 3:38 
    PM 
    Subject: Re: [amibroker] What is 
    wrong? 
    
  
    It says Argument 4 has incorrect type (the function expects 
    different argument here). Do you think it has something to do with 
    the barindex line?  I am still unsure about the purpose of that 
    barindex... Thanks, Louis
     2008/9/16 Ara Kaloustian  <ara1@xxxxxxxxxx>
    
      
      
      
      
      
      what is the error message? 
        
      It is always helpful to give as much info as 
      possible 
        
      
        
        ----- 
        Original Message -----  
        
         
        
        
        
        Sent: 
        Tuesday, September 16, 2008 2:56 PM 
        Subject: 
        Re: [amibroker] What is wrong? 
        
  
        Hi, Sorry, You can replace "periods" by 50 if you 
        wish.   I just forgot to include that. barhh1 = 
        HHVBars( High,  50 ) ; bi1 = BarIndex() 
        ;y11 =  LinearReg( C, barhh ) ; y01 =  
        LinRegIntercept( C, barhh ) ; sl1 = LineArray( bi1-barhh1+0, y01, 
        bi1, y11, 0, True );   Still, it is not working, even if 
        barhh1 is defined... Louis
         2008/9/16 Ara Kaloustian  <ara1@xxxxxxxxxx>
        
          
          
          
          
          
          y11 and y01 use "barhh" which is not 
          defined. 
            
          You have defined "barhh1" 
          
          
          
            
            
          
            ----- 
            Original Message -----  
            
            
            Sent: 
            Tuesday, September 16, 2008 2:46 PM 
            Subject: 
            [amibroker] What is wrong? 
            
  
            Hi,
  What is wrong in the following 
            formula?
  barhh1 = HHVBars( High, Periods ) ; bi1 = BarIndex() 
            ; y11 =  LinearReg( C, barhh ) ; y01 =  
            LinRegIntercept( C, barhh ) ; sl1 = LineArray( bi1-barhh1+0, y01, 
            bi1, y11, 0, True );  
            
 
  Thanks,
  Louis
  p.s. There was 
            "Selectedvalue" in the first four lines but I don't want to plot it 
            on the chart based on where I am on that chart, but simply set the 
            variable so I can use the stuff later.
                     
__._,_.___
  
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: 
http://www.amibroker.com/devlog/ 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
  
     
    
 
      
   
__,_._,___
 |