Help, how to get MA5 upward MA75

To add comments, please log in or register
zeeyeetee
71
zeeyeetee  
     double ma5_0 = 0, ma5_1 = 0;
     double ma75 = 0;

     
     ma5_0 = iMA(Symbol(),0,5,0,MODE_SMA,PRICE_CLOSE,0);
     ma5_1 = iMA(Symbol(),0,5,0,MODE_SMA,PRICE_CLOSE,1);
    
     
     ma75 = iMA(Symbol(),0,75,0,MODE_SMA,PRICE_CLOSE,0);
     
      

     if(ma5_0 > ma75 && ma5_1 < ma75 ) 
     {
       
       Alert("upward");
       
     }

but I don't get any "upward"

pls help
To add comments, please log in or register