| 
 have you tried  
 ASS = 
Cross(CCI(14),Linup);  
  
because when there is a cross its value will be 1 
or true.      
  ----- Original Message -----  
  
  
  Sent: Wednesday, October 12, 2005 6:01 
  PM 
  Subject: [amibroker] Makes NO Sense???? 
  Bug? or ??? 
  
  This function Plots the arrow fine, so in theory the TLBUP 
  should  equal 1 based on a cross of the study line. However when i try and 
   pass that value out I do not get a 1... its empty. 
  function 
  trendCheckup(StudyID) {       global 
  ASS;         global 
  TLBUp;       Linup = 
  Study(StudyID,GetChartID());       TLBUP = 
  Cross(CCI(14),Linup);       PlotShapes( 
  IIf ((TLBUP),shapeUpArrow,shapeNone),colorDarkGreen,0,Graph0,Offset=20);       
  ASS = IIf(Cross(CCI(14),Linup),1,0);      
         return 
  TLBUP;        }
  if i assign 'ass' a 
  number it gets passed out fine... ie 'ass'=5
  function 
  trendCheckup(StudyID) {       global 
  ASS;         global 
  TLBUp;       Linup = 
  Study(StudyID,GetChartID());       TLBUP = 
  Cross(CCI(14),Linup);       PlotShapes( 
  IIf ((TLBUP),shapeUpArrow,shapeNone),colorDarkGreen,0,Graph0,Offset=20);       
  //ASS = IIf(Cross(CCI(14),Linup),1,0);      
           
  ass=5       return 
  ass;        }
  However if i assign 'ass' 
  the cross code im back to getting nadda  again
  function 
  trendCheckup(StudyID) {       global 
  ASS;         global 
  TLBUp;       Linup = 
  Study(StudyID,GetChartID());       TLBUP = 
  Cross(CCI(14),Linup);       PlotShapes( 
  IIf ((TLBUP),shapeUpArrow,shapeNone),colorDarkGreen,0,Graph0,Offset=20);       
  ASS = IIf(Cross(CCI(14),Linup),1,0);      
         return 
  TLBUP;        }
  What 
  gives?
 
 
 
  
  
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
 
 
    
  |