## MA Difference

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

### Re: MA Difference

Isn't it the same as showing the value of PRICE/MA1?

[PRICE TO MA2(slower MA)] - [MA1 TO MA2] = [PORICE TO MA1], Am I right?

Apprentice wrote:
Price MA Ratio.lua

If you use the difference in place of the ratio, you'll get this.
Price MA Ratio.png
wccmcd

Posts: 7
Joined: Tue May 06, 2014 1:28 am

### Re: MA Difference

This is the formula.
DIFF1 = (source[period] - Two.DATA[period]);
DIFF2 = (One.DATA[period]-Two.DATA[period]);

Ratio[period] = DIFF1-DIFF2;

Apprentice
FXCodeBase: Confirmed User

Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: MA Difference

Could you make the ma1/ma2 difference into a candlestick?

Thank you.
gnarlyarbitrage

Posts: 50
Joined: Thu Jun 20, 2013 1:33 pm

### Re: MA Difference

Something like RSI Candle?
viewtopic.php?f=17&t=1927&hilit=RSI+Candle

Apprentice
FXCodeBase: Confirmed User

Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: MA Difference

Yes. I want to be able to see wicks, instead of just the line.
gnarlyarbitrage

Posts: 50
Joined: Thu Jun 20, 2013 1:33 pm

### Re: MA Difference

Apprentice
FXCodeBase: Confirmed User

Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: MA Difference

Neat indicator. Simple and very effective ! Thanks for sharing this concept.

sjc

Coondawg71

Posts: 324
Joined: Sat Jan 15, 2011 11:45 am

### Re: MA Difference

Thanks for both.
gnarlyarbitrage

Posts: 50
Joined: Thu Jun 20, 2013 1:33 pm

### Re: MA Difference

Something a little weird: when I switch the method to ma1/ma2 and vice versa, I don't get same kind of candlesticks when I do the price/ma method. I'm guessing it's because you included the negative range for the ma's. I was looking for a range of positive-only range as the original indicator has. (0-100000000)

Thanks again.
gnarlyarbitrage

Posts: 50
Joined: Thu Jun 20, 2013 1:33 pm

### Re: MA Difference

Can we please add horizontal thresholds for this indicator. Users may need customization options for these levels. I use 15 minute time frame often and +- 0.0100 and +-0.0200 levels work well. Please add a "0" line as well.

Thanks!

sjc

Coondawg71