I am writing a multicurrency indicator. When I change the code again, it compiles well, but when I try to put an indicator on a chart, I get "invalid ex5 file". I tried to re-save it under a different name - the same thing. It turns out that the problem is in the code, but compilation is fine.
I am writing a multicurrency indicator. When I change the code again, it compiles well, but when I try to put an indicator on a chart, I get "invalid ex5 file". I tried to re-save it under a different name - the same thing. It turns out that the problem is in the code, but compilation is fine.
How can I help?
Thank you!
Does the compilation go through without any errors or warnings? Is it accurate?
tol64: Does the compilation go through without errors or warnings? Are you sure?
There are no errors, there are warnings, mostly harmless ones like unused values. But there is this indicator buffers amount is less than needed. I'll try to dig here
ns_k: There are no errors, there are warnings, mostly innocuous ones like unused values. However, there is this indicator buffers amount is less than needed. I'll try digging here.
Yes, that's exactly it. That's where the error lies:
//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+intOnInit()
{
//--- indicator buffers mappingSetIndexBuffer(0,gEURThermB,INDICATOR_DATA);
SetIndexBuffer(0,gCHFThermB,INDICATOR_DATA);
gEURRM = new CRangeManager(1,0.2,20,"EURUSD");
gCHFRM = new CRangeManager(1,0.2,20,"USDCHF");
//---return(INIT_SUCCEEDED);
}
MT4 Built 500. I set the alert to a certain level, it goes off, everything is fine. I deactivate the alert (space), it shows as suspended. Then the instrument reaches a threshold value and the alert is triggered. Is this how it should be?
ps. Yes, a side note. First I highlighted all the alerts with my mouse (6 of them) and pressed the spacebar, they all became suspended. After triggering one, I've already turned it off with spacebar only and it still triggers
On startup the terminal swears the specified symbol is not selected. I've dragged it to another MT5 via the cloud - it works, and with commented strings using tickers.
I'd try to find the reason, but I don't know where to start searching for such a stray error. Maybe I should re-install the terminal at once?
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.
When I call it up I get
2013.05.31 13:08:41 temp (AUDUSD,M5) TERMINAL_COMPANY = MetaQuotes Software Corp.
It should be different broker, or something is wrong, thanks.
terminal belongs to MetaQuotes Software Corp.
brokerAccountInfoString(ACCOUNT_SERVER)
terminal belongs to MetaQuotes Software Corp.
brokerAccountInfoString(ACCOUNT_SERVER)
Good afternoon!
I am writing a multicurrency indicator. When I change the code again, it compiles well, but when I try to put an indicator on a chart, I get "invalid ex5 file". I tried to re-save it under a different name - the same thing. It turns out that the problem is in the code, but compilation is fine.
How can I help?
Thank you!
Good afternoon!
I am writing a multicurrency indicator. When I change the code again, it compiles well, but when I try to put an indicator on a chart, I get "invalid ex5 file". I tried to re-save it under a different name - the same thing. It turns out that the problem is in the code, but compilation is fine.
How can I help?
Thank you!
Does the compilation go through without errors or warnings? Are you sure?
There are no errors, there are warnings, mostly innocuous ones like unused values. However, there is this indicator buffers amount is less than needed. I'll try digging here.
Yes, that's exactly it. That's where the error lies:
Highlighted in red. Replace with 1.Yes, that's exactly it. That's what's wrong:
Highlighted in red. Replace with 1.Спасибо всем!MT4 Built 500. I set the alert to a certain level, it goes off, everything is fine. I deactivate the alert (space), it shows as suspended. Then the instrument reaches a threshold value and the alert is triggered. Is this how it should be?
ps. Yes, a side note. First I highlighted all the alerts with my mouse (6 of them) and pressed the spacebar, they all became suspended. After triggering one, I've already turned it off with spacebar only and it still triggers
I'm going to sprinkle in some more.
On startup the terminal swears the specified symbol is not selected. I've dragged it to another MT5 via the cloud - it works, and with commented strings using tickers.
I'd try to find the reason, but I don't know where to start searching for such a stray error. Maybe I should re-install the terminal at once?