Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyMCD (Function)AlchemyMCD returns the difference between a fast and slow exponential moving average based on the same Price, using either number of trailing bars or a smoothing factor percentage. AlchemyMCD (FirstBar, FstPrice, FaLength, FaFactor, SloPrice, SlLength, SlFactor) Parameters | 
  
| 
         FirstBar  | 
      
         Specifies the bar number of the first bar calculated  | 
    
| 
         FstPrice  | 
      
         Specifies which price of the asset to be used for the fast average.  | 
    
| 
         FaLength  | 
      
         Number of trailing bars to consider for the fast average. 0 uses the smoothing factor determined in FaFactor.  | 
    
| 
         FaFactor  | 
      
         Smoothing factor percentage to consider for the fast average. 0 uses number of trailing bars determined in FaLength.  | 
    
| 
         SloPrice  | 
      
         Specifies which price of the asset to be used for the slow average.  | 
    
| 
         SlLength  | 
      
         Number of trailing bars to consider for the slow average. 0 uses the smoothing factor determined in SlFactor.  | 
    
| 
         SlFactor  | 
      
         Smoothing factor percentage to consider for the slow average. 0 uses number of trailing bars determined in SlLength.  | 
    
ReturnsA numeric value containing MCD for the current bar. UsageDuring rising markets, the fast period moving average will rise faster than the slow period moving average resulting in a rising differential line or a larger value. The idea is that with a smaller number of bars used in its calculation, the fast period moving average will more quickly indicate the trend of the most recent data.  |