Page 3 of 4

Re: MA Difference

PostPosted: Tue May 06, 2014 6:33 pm
by wccmcd
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

Re: MA Difference

PostPosted: Wed May 07, 2014 2:51 am
by Apprentice
This is the formula.
DIFF1 = (source[period] - Two.DATA[period]);
DIFF2 = (One.DATA[period]-Two.DATA[period]);

Ratio[period] = DIFF1-DIFF2;

Re: MA Difference

PostPosted: Thu Mar 12, 2015 6:17 pm
by gnarlyarbitrage
Could you make the ma1/ma2 difference into a candlestick?

Thank you.

Re: MA Difference

PostPosted: Mon Mar 16, 2015 2:56 am
by Apprentice
Please explain.
Something like RSI Candle?
viewtopic.php?f=17&t=1927&hilit=RSI+Candle

Re: MA Difference

PostPosted: Tue Mar 17, 2015 2:23 am
by gnarlyarbitrage
Yes. I want to be able to see wicks, instead of just the line.

Re: MA Difference

PostPosted: Tue Mar 17, 2015 4:50 am
by Apprentice
MA Difference Candle.lua added.

Re: MA Difference

PostPosted: Tue Mar 17, 2015 7:16 am
by Coondawg71
Neat indicator. Simple and very effective ! Thanks for sharing this concept.

sjc

Re: MA Difference

PostPosted: Tue Mar 17, 2015 11:53 am
by gnarlyarbitrage
Thanks for both.

Re: MA Difference

PostPosted: Tue Mar 17, 2015 12:11 pm
by gnarlyarbitrage
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.

Re: MA Difference

PostPosted: Tue Mar 17, 2015 1:12 pm
by Coondawg71
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