Forum

iTime not returning the current bar open time

iTime ( _Symbol , _Period , 0 ); Should return the current bar open time , but I have an issue where it sometimes returns the previous bar time. I didn't think it was possible. Maybe if I RefreshRates() ? Edit: Nope. Still happenning

OnChartEvent randomly not received by one chart

Hi, I want to broadcast a message to all the open charts. The code is already written and there was no issue, but then I noticed that sometimes one chart's OnChartEvent is not getting triggered. It's always the same. Because I am still developping, only two charts have the OnChartEvent function so

I understand the curse of NZD now

Bar open times are changing retroactively 2023.07.20 22:00 is now 2023.07.20 22:01 2023.07.20 22:15 is now 2023.07.20 22:16 and so on until 2023.07.20 23:46

Recurring "Array out of range" error seemingly occurring at random

This one I don't get. I cannot reproduce the error if I want. I just wait and it will happen eventually. The offending code is ArrayResize (file_buffer, Bars ); FileSeek (handle, 0 , SEEK_SET ); int size= 0 ; while (! FileIsEnding (handle)) { uint bytesread= FileReadStruct

Deleting indicator from all windows

Hi, I've tried to delete an indicator from an EA, but it's taking me too long. How can I find all the chart IDs that have this indicator? I began with WindowFind( "Indicator name" ) but it returns -1

I can't refresh my custom indicator automatically

Hello again, I hope your are doing well. For a little context, my indicator uses data that is pulled from the web at candle open and written to a file. The problem is sometimes the line is not being updated accurately and I need to either manually switch timeframe and revert to the previous

How to hide indicator window programmatically

I tried this but it doesn't work. ChartSetInteger ( 0 , CHART_WINDOW_IS_VISIBLE , ChartWindowFind (), 0 );

"Event handling function not found". You could lose your code if you don't have a backup!

Warning to anyone. If you encounter the error "event handling function not found", it could be because your hard drive is full. Even after freeing 10GB of space, I was still getting the same error when trying to compile my indicator. So I restarted MetaEditor and now the source file is completely