Discussion of article "The Price Histogram (Market Profile) and its implementation in MQL5" - page 10

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Remove the "Delete()" command and it will work.
Hey guys, i really liked this indicator, i've been learning about market profile for a while and this is the best a found.
I just made a change in the method of calculating the profile, i used the volume tick instead verifying just if the price past in the point. I did this because if you see, trades and the different times haave different pounds, you can see it in the volume histogram. So we can't junt count if price is there add one.
Do you agree?
The change I made showed differences between in the two mettods
Hi Dmitry,
first of all: Thank you for your great article and work !
Though its long time ago you published it, it works fine.
What I have here for you and the community is an update, so that histogram uses the tickvolume, because using only price action in time areas, where the volume is nearly zero, does not help much.
Replace the corresponding code in the file ClassPriceHistogram.mqh
I admit its a quick hack and I have not tested every piece of code, but so far it works well.
Here a sample with the SP500 Index:
Dear Dmitry
I hope, you`re well.
Would it be possible that you implement buffers for the lines?
For each POC, maybe a Vwap and Median?
Thank you very much in advance
with
void CPriceHistogram::Delete()
Works fine now in AMP Futures' MT5 Version 5.00 Build 3661.
@Oleksandr, this "indicator" is technically an Expert. Indicator buffers are not available in Experts. Buffers can be effectively recreated using arrays in Experts but only real indicator buffers can be called by iCustom so for that purpose, a new custom indicator would have to be coded from scratch. Unfortunately, both options are beyond my level of coding ability. Good luck to you in finding better help.
THNAKS