Forum

CChartObjectFiboTimes - Get Bar Time Based On Each Level?

Hi, I'm using CChartObjectFiboTimes and assigning custom percentage levels. I would like to draw some boxes between the levels (as a coloured background) but don't know the bar times of each of the vertical levels drawn by CChartObjectFiboTimes as these are calculated at runtime. I appreciate that

Indicator Problem After Windows 11 Wakes Up

Hi, I have ported an indicator that I wrote over from MT4 to MT5. There was very little that needed changing, just a few MT4 functions that weren't available in MT5 need replacing with their MT5 counterparts. After a period of inactivity, my Windows 11 PC goes to sleep. When I reactivate the PC and

Get Value Of New York's GMT value using MQL4?

Hi, Is it possible to get the current GMT value of New York using MQL4? I am based in UK and right now, NY is GMT-4. However, depending on the time of year, it is GMT-5. Obviously, I know this but, does MQL4 provide some kind of capability to interrogate and access the current GMT values for other

Simulating Index Buffers In An EA.

Hi, I am developing an indicator that I have adjusted to run as an EA. The reason for this is that I find that an EA works much more reliably in the debugger than an indicator. The screenshot below is the result when running in the indicator - I am imposing a histogram over the bodies of the candles

"Expression could not be evaluated" using debug.tpl

Hi there, I am trying to write an indicator to work on Fibs on a chart. To debug this, I created debug.tpl and when I run the indicator in the Debugger, the correct template loads. The debug.tpl has as Fib and some MAs. When I step through the code that assigns some values to variables, the values

Invalid pointer access using copy constructor?

Hi there, Some very simple code below to illustrate a problem I'm having. I have a very simple class with a copy constructor. The sample below creates a new object and then tries to make a copy of that object via the copy constructor whereupon I get the invalid pointer access error/message. What am

Are Chart Indicator Layouts/Configuration Stored In Cache Files?

Hi, I have a set of charts that had evolved over time with different indicator settings. However, the template files I had originally created for these charts have not been updated recently and do not reflect the latest chart configurations in the terminal, of which there have been many. I loaded my

ZigZag issues on MT5

Hi, Whilst considering a shift from MT4 to MT5, there have been a few issues with the standard MT5 ZigZag code. The images below show a ZZ set at 12,5,3. Notice how the white ZZ highs and lows in no way match the underlying price bars. When the chart is refreshed, they reset OK. By refreshed, I mean

Number of values in custom stochastic indicator buffers not rendered correctly on chart

Hi all, I have developed a stochastic indicator that has an UpdateBuffer function that receives parameters that allows it to update the Signal and Main buffers with appropriate values. On GU/M5, rates_total is set to 100,731 of which the first 731 records correspond to null datetime values. The

Indicator Licence(s) Obsoleted By Lated Windows 10 Updates

Hi, A number of my "paid for" indicators have stopped working because of the latest Windows 10 Update(s) (see attached). If I re-install them, I'll lose a licence count. Is this correct? How can I avoid this? I tried to post a message to the service desk but, it said that if the topic wasn't found