Page 2 of 4

Re: MA Difference

PostPosted: Tue Aug 13, 2013 9:26 am
by Alexander.Gettinger
MQL4 version of this indicator: viewtopic.php?f=38&t=59067

Re: MA Difference

PostPosted: Tue May 06, 2014 5:00 am
by wccmcd
Apprentice and Alexander.Gettinger,

This indicator is a super. I also noticed that the ratio between MA2/PRICE and MA1/MA2 is very important. When the value of MA2/PRICE (the difference value of the slower MA and price) is beyond 2*(MA1/MA2), it is something worth a notice. Can you make a indicator to show the ratio of this?

DIFF1 = ABS(PRICE - M2);
DIFF2 = ABS(M1-M2);
RATIO = DIFF1/DIFF2

It will be awesome to have this as a signaling indicator, especially when price is approaching the turning point.

I am using MT4 so if you decide to write it, please make a MT4 version as well. Thank you.

Re: MA Difference

PostPosted: Tue May 06, 2014 5:46 am
by Apprentice
ratio.png

Before we proceed further.
It this what you envisioned.

Re: MA Difference

PostPosted: Tue May 06, 2014 6:09 am
by wccmcd
hum... the computer results is different from what I eyeballed on chart. But anyway, computer should be the right one, and those super high peaks made the indicator unreadable.

What I found is something like in the attached picture: when price go beyond level 200 (2*diff), it could be a good point for entry/exist.

Re: MA Difference

PostPosted: Tue May 06, 2014 6:21 am
by wccmcd
Apprentice,

I know what happened. when the two MA corss, the value of DIFF2 will be zero or very small, that results in a very huge ratio value.

Re: MA Difference

PostPosted: Tue May 06, 2014 6:32 am
by Apprentice
Please Re-Download.
I found a minor bug.
Waiting for your input.

Re: MA Difference

PostPosted: Tue May 06, 2014 6:42 am
by wccmcd
Apprentice,

Sorry I only use MT4. But from your picture I noticed the "zero problem" and realized it can't be a readable indicator anyway. It will only work on some specific time, such as when DIFF2 is big enough, otherwise the result of ratio will be chaos.

Re: MA Difference

PostPosted: Tue May 06, 2014 6:51 am
by wccmcd
for now, I will use your indicator as it is. I will look for the peak manually, when price is approaching the turning point. This way the DIFF won't be to small or zero.

Re: MA Difference

PostPosted: Tue May 06, 2014 7:12 am
by Apprentice
Price MA Ratio.png

If you use the difference in place of the ratio, you'll get this.
Price MA Ratio.lua
(4.08 KiB) Downloaded 815 times

Re: MA Difference

PostPosted: Tue May 06, 2014 7:22 am
by wccmcd
Doesn't look right. You know before price fall, it tends to jump up, (sometimes even make a new high),then heads down. when it jumps up, it's normally a good time to exit long. That's what I am trying to figure out through the indicator.