FXCM Forex Trading

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.

Moderator: admin

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 6:33 pm

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

Postby Apprentice » Wed May 07, 2014 2:51 am

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

Ratio[period] = DIFF1-DIFF2;
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16975
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Difference

Postby gnarlyarbitrage » Thu Mar 12, 2015 6:17 pm

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

Postby Apprentice » Mon Mar 16, 2015 2:56 am

Please explain.
Something like RSI Candle?
viewtopic.php?f=17&t=1927&hilit=RSI+Candle
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16975
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Difference

Postby gnarlyarbitrage » Tue Mar 17, 2015 2:23 am

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

Postby Apprentice » Tue Mar 17, 2015 4:50 am

MA Difference Candle.lua added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16975
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Difference

Postby Coondawg71 » Tue Mar 17, 2015 7:16 am

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

sjc
User avatar
Coondawg71
FXCodeBase: Graduate
 
Posts: 325
Joined: Sat Jan 15, 2011 11:45 am

Re: MA Difference

Postby gnarlyarbitrage » Tue Mar 17, 2015 11:53 am

Thanks for both.
gnarlyarbitrage
 
Posts: 50
Joined: Thu Jun 20, 2013 1:33 pm

Re: MA Difference

Postby gnarlyarbitrage » Tue Mar 17, 2015 12:11 pm

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

Postby Coondawg71 » Tue Mar 17, 2015 1:12 pm

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
User avatar
Coondawg71
FXCodeBase: Graduate
 
Posts: 325
Joined: Sat Jan 15, 2011 11:45 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 10 guests