Thank you Anthony! My chart id is 1 and after replacing GETCHARTID() with the 
actual chart id (=1), I still get a 0. I am still playing around with the 
evaluation version of AB so may some of these dont run on the eval version. I 
will try it out when I purchase it (hopefully soon).

Best regards,
-VJ

Anthony Faragasso <[EMAIL PROTECTED]> wrote:                                    
 
VJ,
  
 if you are using GETCHARTID() in the AA window it  will return a 0...
  
 you need to insert the chart ID where your  Study(su) is located into the 
formula....you can find the chart id by going to  Parameters > axes and grid 
...it is at the bottom of the list...so you  formula should look like this....
  
 example only:
 Sell = Cross( Study(  "SU" , 1529), Close );
  
 Anthony
  
    ----- Original Message ----- 
   From:    nasdaq trader 
   To: [EMAIL PROTECTED] 
   Sent: Sunday, April 08, 2007 12:44    PM
   Subject: Re: [amibroker] AFL error
   

      Thank you Anthony!! Thank did not give any error, but I am still trying 
to    get it to work (I am very new to AB, so this might be the reason    ).

Best regards,
-VJ

Anthony Faragasso <[EMAIL PROTECTED]> wrote:   
          
     Not tested...but      try this.
      
     Sell = Cross(      Study( "SU" , GetChartID()), Close );
      
     Anthony
     

            -----        Original Message ----- 
       From:        dingo  
       To:        [EMAIL PROTECTED]        
       Sent:        Saturday, April 07, 2007 7:07 PM
       Subject:        RE: [amibroker] AFL error
       

              
       You asked "What is the        correct format for using this?" 

       and that is what is in the help file. It takes 2 arguments not three.
        
       d
       

                         
---------------------------------
         From: [EMAIL PROTECTED]          [mailto:[EMAIL PROTECTED] On Behalf 
Of nasdaq          trader
Sent: Saturday, April 07, 2007 7:04 PM
To: [EMAIL PROTECTED]
Subject:          RE: [amibroker] AFL error


         
There was no reference to Cross with a studyId in the help          file. I am 
specifically trying to learn to use Cross with a study          Id.

Best regards
-VJ

dingo          <[EMAIL PROTECTED]> wrote:                                
           why not look up Cross in the help            file?
            
           d

                                     
---------------------------------
             From: [EMAIL PROTECTED]              [mailto:[EMAIL PROTECTED] On 
Behalf Of              nasdaq trader
Sent: Saturday, April 07, 2007 6:43              PM
To: [EMAIL PROTECTED]
Subject:              [amibroker] AFL error


             
             I get an error when I run the following, this line is t aken       
       directly from the online reference (reproduced below). The error I       
       get is "too many arguments"

Sell = Cross( Study(              "SU" ), Close, GetChartID() );

What is the correct              format for using this?

Best regards,
-VJ

             ========================================

             

             Write the formula that checks trend line break 
             In this example we will detect if the closing price drops BELOW    
          support trend line. This is actually very simple:
                            sell = cross( study( "SU" ), close, GetChartID()    
            );
             Note that study() function accepts two arguments: the first is     
         StudyID two letter code that corresponds to one given in properites    
          dialog; the second argument is chart ID - it should be taken either   
           via GetChartID() function (then it refers to current indicator) or   
           read from Parameter dialog, Axes &              Grid: Miscellaneous: 
Chart ID
             
             
---------------------------------
             We won't tell. Get more on shows              you hate to love
(and love to hate): Yahoo!              TV's Guilty Pleasures list.            


         
         
---------------------------------
         The fish are biting.
Get          more visitors on your site using Yahoo!          Search Marketing. 
       

     


      

---------------------------------
   Need Mail bonding?
Go to the Yahoo!    Mail Q&A for great    tips from Yahoo! Answers users.   

 
     
                       

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Reply via email to