STOCKS & COMMODITIES magazine. The Traders' Magazine
Request Information
From Advertisers
Traders.com
Stocks &
Commodities

  • Subscribers' Area
  • Current Issue
  •    - Opening Position
       - Letters to S&C
       - Traders' Tips
       - Futures Liquidity
       - News & Products
       - Books
       - Websites for Traders
       - Cover Art

  • Free Articles
  • Article Abstracts
    1996-Present
  • Complete Articles
    1982-Present
  • Novice Traders' Notebook
  • Glossary
  • Subscribe
  • Renew
  • Free Trial
  • Search
  • Working
    Money
    Traders.com
    Advantage
    Traders'
    Resource
    Online Store
    Message Boards
    Article Code
    Free Newsletter
    Products
    Search
    Help
    Subscribe
    Renew
    Contact Us
    Home

    Enter search terms:


    Products
    Small Book Image for Store.Traders.comStore.Traders.com
    Purchase past articles on hundreds of topics, along with software, books, and magazine subscriptions over a secure web connection. Click Here

     
    Search Products:

    @ Online Store!
    S&C Magazine Subscriber Login
    S&C Free Trial Issue
    S&C Volume Books
    S&C Magazine
    S&C on DVD
    Software
    Articles
    FREE ARTICLES! (while they last)
    Point & Figure for Forex
    Profitunity Home Study Course
    Support & Resistance ...
    BestChoice Software
    StrataSearch 3.0
    eSignal 10 and Advanced GET ...
    The 21st-Century Technician
    Trading By Tape-Reading
    Suri Duddella Notes
    Elwave 9.0
    Bennett McDowell
    VisualTrader 4.0
    Forex Volatility Patterns
    Stock Trading Success
    Market Dynamics
    Bill And Justine Williams
    StrategyDesk
    Elwave 8
    Steve Nison's Profiting In ...
    High Growth Stock Investor
    Daytrading With TheStockBandit ...
    Buying Straddles
    NeuroShell Trader 5
    GTS Pro
    Between Price And Volume
    Direct Pro
    A Window to Our Workshop
    Adrienne Toghraie
    MultiCharts 2 (Part 2)
    MESA8
    MultiCharts 2 (Part 1)
    Traders' Resource
    Advisory Services
    Books
    Brokerage
    Consultants
    Courses & Seminars
    Data Services
    Exchanges
    Hardware
    Mutual Funds
    Online Trading Services
    Publications & Newsletters
    Software
    Trading Systems

    Information Directory
    S&C Tour
    S&C Magazine
    Resources
    Products
    Subscribe
    This Month's Issue
    Home | S&C Magazine | Working Money | Traders' Resource | Message-Boards | Store

    TRADING SYSTEMS

    The Secret Behind The Filter

    What's The Difference?

    by John F. Ehlers
    What's the difference between the median and the average? It's what drives this new adaptive smoothing filter.

    Remember back in school when your teacher asked you what the difference was between the median and the average? I remember thinking, "Yeah, what is the difference?" as in, "Who cares?" As it turns out, you should care. It is exactly that difference that drives a unique new adaptive smoothing filter that I'm going to tell you about.

    Average and median filters eliminate extraneous data in fundamentally different ways. An average folds "noise" in with the signal so that if enough points are selected, the noise is reduced by summing to its own (nearly) zero average value. On the other hand, a median filter eliminates noise by ignoring it. A big spike in the data has no impact at all on the median signal value. Median filters are used in video to eliminate impulsive, or "salt and pepper" noise on the picture. We will exploit these characteristics to create an adaptive smoothing filter.

    THE DIFFERENCE IS...

    Consider a dataset that consists of 10 ones. Both the average and the median of this dataset is 1. Next, let's move that dataset forward as we would with a moving average, dropping the last old data sample and adding a new one. Assuming the value of the new data sample is 10, then the new average will be 1.9 (nine ones and one 10, divided by 10). On the other hand, the median of the new dataset still remains unchanged at 1. A median filter ranks all the samples within the filter and selects the middle one as the filter output. So there is a difference between median and averaging filters. That percentage difference becomes less as the respective filter lengths are made shorter.

    FIGURE 1: EASYLANGUAGE CODE TO COMPUTE THE MEDIAN-AVERAGE ADAPTIVE FILTER
      ...Continued in the March issue of Technical Analysis of STOCKS & COMMODITIES


    Excerpted from an article originally published in the March 2005 issue of Technical Analysis of STOCKS & COMMODITIES magazine. All rights reserved. © Copyright 2005, Technical Analysis, Inc.



    Return to March 2005 Contents

    Technical Analysis, Inc.

    [Home | Working Money Magazine | S&C Magazine | Traders.com Advantage | Online Store]
    [Traders' Resource | Add a Product to Traders' Resource | Message Boards]
    [Subscribe/Renew | Free Trial Issue | Article Code | Search | Help Files]
    Departments: [Advertising | Editorial | Circulation | Employment | Contact Us]

    Copyright © 1996-2008 Technical Analysis, Inc. All rights reserved. Read our privacy statement.

    Technical Analysis, Inc.
    Subscribe! Free E-mail Newsletter.
    First: Last:
    E-mail: