![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Yes, that's its purpose, that's why I have included it in the original code.
I might have misunderstood you but I thought that your previous post was implying that it was not the correct way to do it because it leaves a vertical line on the chart when you remove the indicator.
If there is no other way around, then fine.
Thanks anyway
Is it possible to put a specific date from which I want indicator to run?
Like fro VWAP, I want it for current trading day only.
In version 2 there was option to add dates but its missing in 6.0+ version. Am I missing something?
Is it possible to get Market Statistics Indicator to show Vwap for each day separately like shown below? Thanks!![](https://c.mql5.com/forextsd/forum/154/000576.png)
The Market_Statistics_v3.mq4 indicator is great but has some minor bugs and a huge performance issue.
It allocates a huge array that covers the range up to the current bar, even if the EndDate is in the past. This array gets resized with every new bar. This is a waste of memory and CPU.
More importantly it uses Point function to set the histogram bins. This is wrong on index future cfds that tick in higher increments. The correct way to find the tick size is MarketInfo with MODE_TICKSIZE. If this indicator is used on such offline chart files the usage of 'Point' locks up the Metatrader because files are per default opened with 5 decimal places and terminal dies painting hundreds of thousands of rectangles. The only way to change an offline chart is to edit the digits parameter in the .chr file. For offline data with higher ticksize than digits I added an indicator parameter in this version to set this. So make sure to set ticksize to 0.25 for ES or NQ and 0.5 for DAX offline data.
I did not look into the other variants.
The Market_Statistics_v3.mq4 indicator is great but has some minor bugs and a huge performance issue.
It allocates a huge array that covers the range up to the current bar, even if the EndDate is in the past. This array gets resized with every new bar. This is a waste of memory and CPU.
More importantly it uses Point function to set the histogram bins. This is wrong on index future cfds that tick in higher increments. The correct way to find the tick size is MarketInfo with MODE_TICKSIZE. If this indicator is used on such offline chart files the usage of 'Point' locks up the Metatrader because files are per default opened with 5 decimal places and terminal dies painting hundreds of thousands of rectangles. The only way to change an offline chart is to edit the digits parameter in the .chr file. For offline data with higher ticksize than digits I added an indicator parameter in this version to set this. So make sure to set ticksize to 0.25 for ES or NQ and 0.5 for DAX offline data.
I did not look into the other variants.How do you find point from tick size?
How do you find point from tick size?
Not sure I understand your question correctly, but I would say it is not necessary to derive Point, as it always returns a value. To my findings MarketInfo(NULL ,MODE_TICKSIZE) returns the same as Point on instruments that show no special 'Tick size' value in their specifications. The Value is 10^-Digits. Point even returns on offline charts but MarketInfo(NULL ,MODE_TICKSIZE) is undefined and returns 0 and is not settable in the .chr file.
Not sure I understand your question correctly, but I would say it is not necessary to derive Point, as it always returns a value. To my findings MarketInfo(NULL ,MODE_TICKSIZE) returns the same as Point on instruments that show no special 'Tick size' value in their specifications. The Value is 10^-Digits. Point even returns on offline charts but MarketInfo(NULL ,MODE_TICKSIZE) is undefined and returns 0 and is not settable in the .chr file.
I see
Thanks![](https://c.mql5.com/forextsd/smiles/smile.png)
Does anyone created the market statistics indicator in mql5? Thanks in advance!!
MarketProfile - indicator for MetaTrader 5
Trade Statistics Panel - indicator for MetaTrader 5Forum on trading, automated trading systems and testing trading strategies
How to use market statistics histogram
Sergey Golubev, 2018.12.06 16:58
The article - The Price Histogram (Market Profile) and its implementation in MQL5".
and look at this page (for video and more) - Indicators: MarketProfile