Is there an indicator ...

Discussion in 'Technical Analysis' started by Marcell, Apr 6, 2010.

  1. Marcell


    I am looking for an indicator that shows the distance of price to a given moving average. Is there such an indicator, and what's its name? It should basically show how far the current price is from, say, the 200 exponential moving average.

  2. Moving Average - Price or
    Price- Moving Average

    You might also think of it as acceleration of the two...

    Tell me what platform you're working out of and I'll just give you the code.
  3. Cheese


    Marcel (male) and Marcelle (female) so why Marcell? I do know a Swiss lady who is a Marcelle but now signs herself as Marcell.
  4. lol
  5. You should be able to use MACD.

    By definition, MACD plots the difference between 2 exponential moving averages (default to 12 and 26). Plus adding a moving average to the plot to give you the signal line.

    What you do is set the fast MA to 1. A moving average of 1 period is the price itself. Set the slow MA to 200. And set the signal line period to 1 so that it won't show. The result plot should be the difference between price (assumed closing price) and the 200 EMA.

    Enclosed is one that is done in TradeStation.

  6. Beat me to it, Bolimomo. Very elegant solution.