TradingSolutions Home  |  Products  |  Services  |  Downloads  |  Resources  |  Support  |  Order NeuroDimension Home  
'
   Products
     TradingSolutions
     Trader68
     Add-Ons
     Bundles
     Financial Books
     Other Products
   Services
     System Development
     Custom Software
   Downloads
     Free Evaluation Copy
     Product Updates
     Free Systems
   Resources
     Sample Performance
     Video Tour
     Data Sources
     TradingSolutions FAQ
     Online Brokers
   Viewpoints
     Customer Interviews
     Customer Quotes
     News and Reviews
   Support
     How to Get Help
     Licensed User Center
     Contact NeuroDimension
   Order

   ND Corporate Website
   NeuroSolutions.com
   Trader68.com

TradingSolutions Function Library

  Difference from Moving Average (Time Series) [Diff_TSMA]  
Return to Complete List of Functions
The Difference from Moving Average (Time Series) function calculates the difference between a value and its time series moving average.

Parameters
------------------
Data          The data to analyze. This is typically a field in a data series or a calculated value.
Period        The number of bars of data to include in the average, including the current value.
                  For example, a period of 3 includes the current value and the two previous values.

Function Value
------------------------
The time series moving average is calculated by fitting a linear regression line over the values for the given period, and then determining the current value for that line. A linear regression line is a straight line which is as close to all of the given values as possible.

The time series moving average at the beginning of a data series is not defined until there are enough values to fill the given period.

Note that a time series moving average differs greatly from other types of moving averages in that the current value follows the recent trend of the data, not an actual average of the data. Because of this, the value of this function can be greater or less than all of the values being used if the trend of the data is generally increasing or decreasing.

The difference from the moving average is the moving average subtracted from the current value.

Usage
-----------
Moving averages are useful for smoothing noisy raw data, such as daily prices. Price data can vary greatly from day-to-day, obscuring whether the price is going up or down over time. By looking at the moving average of the price, a more general picture of the underlying trends can be seen.

Since moving averages can be used to see trends, they can also be used to see whether data is bucking the trend. This makes the difference from the moving average useful for highlighting where the data is breaking away from the trend.

TradingSolutions Home  |  Products  |  Downloads  |  Resources  |  Support  |  Order

Contact NeuroDimension | Privacy Policy
Webmasters, join our affiliate program. Interested in selling our software? Become a reseller!
Web Site Design and Implementation Copyright © 2010 NeuroDimension, Inc.
Risks of Forex Trading.