What is the problem with this code ?

 
class COrderType
   {
      private:
         double m_Ax; 
         double m_Ar; 
      
      public: 
      COrderType(double AR,double AX):m_Ax(AX),m_Ar(AR)
          {
            AX=iRSI(Symbol(),PERIOD_CURRENT,......);
            AR=iRSI(Symbol(),PERIOD_CURRENT,...);
          };  
      ~COrderType();    
          
      int getType(double Ax,double Ar);
            
      
   };

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int COrderType::getType(double Ax,double Ar)
   {     bool Buy;
         int dif;
         Ax=m_Ax;
         Ar=m_Ar;
                
         dif=Ax-Ar;
         if(dif>0)
                  {  
                     Buy=true;
                  }
                  
                if(dif<0)
                  {
                     Buy=false;
                  }    
                     
     return typ;    
   }

int rsi()
{  bool typ;
   double AR,AX;
   CMarketType rsi.getType(AR,AX);
             
   return typ;
}

 

Forum on trading, automated trading systems and testing trading strategies


Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.