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 Alexander.Gettinger » Tue Aug 13, 2013 9:26 am

MQL4 version of this indicator: viewtopic.php?f=38&t=59067
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2893
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 5:00 am

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.
wccmcd
 
Posts: 7
Joined: Tue May 06, 2014 1:28 am

Re: MA Difference

Postby Apprentice » Tue May 06, 2014 5:46 am

ratio.png

Before we proceed further.
It this what you envisioned.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17357
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 6:09 am

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.
Attachments
DIFF_OF_LWMA.png
wccmcd
 
Posts: 7
Joined: Tue May 06, 2014 1:28 am

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 6:21 am

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.
wccmcd
 
Posts: 7
Joined: Tue May 06, 2014 1:28 am

Re: MA Difference

Postby Apprentice » Tue May 06, 2014 6:32 am

Please Re-Download.
I found a minor bug.
Waiting for your input.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17357
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 6:42 am

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.
wccmcd
 
Posts: 7
Joined: Tue May 06, 2014 1:28 am

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 6:51 am

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.
Attachments
111.png
wccmcd
 
Posts: 7
Joined: Tue May 06, 2014 1:28 am

Re: MA Difference

Postby Apprentice » Tue May 06, 2014 7:12 am

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 112 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17357
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Difference

Postby wccmcd » Tue May 06, 2014 7:22 am

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.
wccmcd
 
Posts: 7
Joined: Tue May 06, 2014 1:28 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests