Mr David Frederick Roberts #: Thank you Fernando, I suspected it was something stupid I was doing but I just couldn't see it! As I said I'm far more familiar with MT4 (around 8 years) and I hadn't spotted there were two "£Every Tick" options in MT5. I just started her up, saw it was set to "Every Tick" and assumed that if it had real ticks it would use them. It had to be something simple and I thank you again for spotting it.
Maybe there is a new version of EqualVolumeBars somewhere? I found 2 problems when using this EA:
1. When compiling EqualVolumeBars, 1 warning appears (easily fixed in Symbol.mqh by replacing time with _time for example):
declaration of 'time' hides global variable Symbol.mqh 28 47
2. Bars disappear. As I understand it, it happens when a new day has come in the terminal. For example, the date in TimeCurrent() is 2023.06.03 (BTCUSD ticks on weekends), and the last range bar was opened on 2023. 06.02. All bars for 2023.06.02 will disappear.
You can reproduce this problem in just a few steps:
Commute line 360 in EqualVolumeBars (so that the chart does not update itself):
//ChartSetSymbolPeriod(id,symbolName,PERIOD_M1);
Add EqualVolumeBars to the EURAUD chart with the following parameters:
Get a chart like this:
Right click on the chart and click Refresh. Result:
Maybe there is a new version of EqualVolumeBars somewhere? I found 2 problems while using this Expert Advisor:
1. When compiling EqualVolumeBars 1 warning appears (easily fixed in Symbol.mqh by replacing time with _time for example):
2. Bars disappear. As I understood, it happens when a new day has come in the terminal. For example, the date in TimeCurrent() is 2023.06.03 (BTCUSD ticks on weekends), and the last range bar was opened on 2023. 06.02. All bars for 2023.06.02 will disappear.
You can reproduce this problem in just a few steps:
Commute line 360 in EqualVolumeBars (so that the chart does not update itself):
Add EqualVolumeBars to the EURAUD chart with the following parameters:
Get a chart like this:
Right click on the chart and click Refresh. Result:
There is no new version.
There are bugs in the implementation of custom characters in the terminal, which I wrote about somewhere, but they are not really fixed.
In this case, you can look at the code - the existing symbol is refilled completely when starting the Expert Advisor, so if something is left extra or on the contrary, the beginning of the day disappears - this is how the MQL5 API works.
Since the source code is open, you can suggest a fix to cure the problem.
Just remove 0 inside the curly braces. Please follow MQL5 syntax changes in the news announces. This one is a bit old - I can't remember exact reference now.
Regarding RenkoTicks.mq5, I experienced a points to pips conversion issue with 3 digit pricing. I previously experienced the same thing with some utilities in MT4, so I implemented the same fix:
Here is a small but important improvement in the custom signal based on 2 MA crossing. The underlying indicator objects maintain internal buffers with indicator's data (not only MA case, but in general), hence calling m_maFast.Main(ind) or m_maSlow.Main(ind) leads to reading somewhat outdated (cached) data from the objects, not from indicators themselves, if your trading system trades by ticks (!). Now it's replaced with the following calls to GetData which is basically is a wrapper for direct CopyBuffer:
The updated header file is attached. It should be placed in /MQL5/Include/Expert/Signal/MySignals/. Without this the signals have been built by completed bars.
It's turned out to be even worse. Some times timeseries are not re-calculated yet when new tick is fired, hence bar index should be adjusted dynamically for trade signal analysis. For example (rough approach):
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Maybe there is a new version of EqualVolumeBars somewhere? I found 2 problems when using this EA:
1. When compiling EqualVolumeBars, 1 warning appears (easily fixed in Symbol.mqh by replacing time with _time for example):
2. Bars disappear. As I understand it, it happens when a new day has come in the terminal. For example, the date in TimeCurrent() is 2023.06.03 (BTCUSD ticks on weekends), and the last range bar was opened on 2023. 06.02. All bars for 2023.06.02 will disappear.
You can reproduce this problem in just a few steps:
//ChartSetSymbolPeriod(id,symbolName,PERIOD_M1);Get a chart like this:
Maybe there is a new version of EqualVolumeBars somewhere? I found 2 problems while using this Expert Advisor:
1. When compiling EqualVolumeBars 1 warning appears (easily fixed in Symbol.mqh by replacing time with _time for example):
2. Bars disappear. As I understood, it happens when a new day has come in the terminal. For example, the date in TimeCurrent() is 2023.06.03 (BTCUSD ticks on weekends), and the last range bar was opened on 2023. 06.02. All bars for 2023.06.02 will disappear.
You can reproduce this problem in just a few steps:
Get a chart like this:
There is no new version.
There are bugs in the implementation of custom characters in the terminal, which I wrote about somewhere, but they are not really fixed.
In this case, you can look at the code - the existing symbol is refilled completely when starting the Expert Advisor, so if something is left extra or on the contrary, the beginning of the day disappears - this is how the MQL5 API works.
Since the source code is open, you can suggest a fix to cure the problem.
Hi Stanislav Korotky
Thanks for all you did on various ways and types regarding "Custom Symbols" topic
Secondly sorry for writing in english,since i do not know russian - :)
1 issue raised within "RenkoTicks" code (kind of error)
Can you kindly manage time,removing this error
regards
Can you kindly manage time,removing this error
Just remove 0 inside the curly braces. Please follow MQL5 syntax changes in the news announces. This one is a bit old - I can't remember exact reference now.
This one is a bit old,,,
Once again, it took me 3 years to find this work of art. If this is "old", old has just met... slow. Ha. Thank you.
Regarding RenkoTicks.mq5, I experienced a points to pips conversion issue with 3 digit pricing. I previously experienced the same thing with some utilities in MT4, so I implemented the same fix:
Here is a small but important improvement in the custom signal based on 2 MA crossing. The underlying indicator objects maintain internal buffers with indicator's data (not only MA case, but in general), hence calling m_maFast.Main(ind) or m_maSlow.Main(ind) leads to reading somewhat outdated (cached) data from the objects, not from indicators themselves, if your trading system trades by ticks (!). Now it's replaced with the following calls to GetData which is basically is a wrapper for direct CopyBuffer:
The updated header file is attached. It should be placed in /MQL5/Include/Expert/Signal/MySignals/. Without this the signals have been built by completed bars.
It's turned out to be even worse. Some times timeseries are not re-calculated yet when new tick is fired, hence bar index should be adjusted dynamically for trade signal analysis. For example (rough approach):
This is critical for EAs trading on bar opening, and for symbols with sparse ticks.
And how to make an online chart with average price using the formula (bid+ask)/2?