Page 1 of 1

Peak Indicator Mod

PostPosted: Mon Jul 06, 2020 2:32 pm
by logicgate
Hi there dear friend Apprentice.

I found this indicator here called "Peak", It seems to do a good job identifying buy/selling peaks and reversals. I took a look at the code but could not understand if it uses volume or not in the calculation.

I will attach it here, I and I was hoping that you could take a look at the code to see if it uses volume or not in the calculation.

In the case it only uses price, I was wondering if you could modify it to use volume + price.

Best regards

Re: Peak Indicator Mod

PostPosted: Tue Jul 07, 2020 8:14 am
by Apprentice
OHLC is used without volume.
How volume will be incorporated?
Something like On balance volume?

Re: Peak Indicator Mod

PostPosted: Tue Jul 07, 2020 8:29 pm
by logicgate
Apprentice wrote:OHLC is used without volume.
How volume will be incorporated?
Something like On balance volume?


Hello my friend. Actually I have no idea, perhaps use the same principle of the volume weighted moving average, doesn´it combine price + volume? I leave to you to use your wizardry.

There is something peculiar about his peak indicator, it does a very good job of pinpointing buying and selling peaks, don´t know how.

I believe that integrating volume will give even more precise signals, but I could be wrong.

Check the screenshots attached.

Re: Peak Indicator Mod

PostPosted: Wed Jul 08, 2020 4:12 am
by Apprentice
Your request is added to the development list.
Development reference 1651.

Re: Peak Indicator Mod

PostPosted: Wed Jul 08, 2020 5:54 am
by Apprentice
viewtopic.php?f=38&t=70144
This makes really strange results.

Re: Peak Indicator Mod

PostPosted: Wed Jul 08, 2020 7:31 am
by logicgate
Apprentice wrote:http://fxcodebase.com/code/viewtopic.php?f=38&t=70144
This makes really strange results.


Thanks buddy, do you wanna test another version using the "on balance volume" principle to see how it compares?

Re: Peak Indicator Mod

PostPosted: Wed Jul 08, 2020 8:17 am
by logicgate
Yeah I just tested here:

-MA type in options does not make any difference in the results
-It does not matter the value you put on the Price MA, does not change the results
-The value of the Volume MA at minimum (1) will plot the same thing as the original Peak
-The more you increase the value of Volume MA the peaks starts getting out of sync


So yeah, volume weighted MA is not the best solution here.

Perhaps the "on balance volume" principle can give better results (or not :lol: )

Re: Peak Indicator Mod

PostPosted: Fri Jul 10, 2020 5:53 pm
by logicgate
Are you gonna do it?

Re: Peak Indicator Mod

PostPosted: Sat Jul 11, 2020 4:16 pm
by Apprentice
Your request is added to the development list.
Development reference 1685.

Re: Peak Indicator Mod

PostPosted: Thu Aug 06, 2020 6:01 am
by Apprentice
Peak OBV.mq4
(9.04 KiB) Downloaded 298 times

Volume Weighted Moving Average OBV.mq4
(3.64 KiB) Downloaded 278 times

OBV_Mod: viewtopic.php?f=38&t=60488