Errors, bugs, questions - page 2183

 
Nexxtor:
is the subject dead?
No.
 

Also...

put on genetic optimisation via cloud agents.

The error "No memory in OnTick function" comes up.

Does anyone know how to fix it?


 
Nexxtor:

Also...

put on genetic optimisation via cloud agents.

The error "No memory in OnTick function" pops up.

Does anyone know how to fix it?


Is there enough memory ?

RAM and HDD ?

 

I wrote to Service Desk - no answer. Please, if you have a chance, check for errors when compiling the Expert Advisor with two Trade.mqh and HashMap.mqh files included simultaneously. Are these errors present?

Terminal version and bit mode

Terminal MetaTrader 5 x64 build 1795 (MetaQuotes Software Corp.)

Terminal Otkritie Broker x64 build 1755 started (Otkritie Broker AS)

Sequence of actions

1. Create a standard Expert Advisor and add files to it:

#include<Trade/Trade.mqh>.

#include<Generic/HashMap.mqh>.

2. Compiling the resulting file

I get a result

'Entry' - invalid cast operation DealInfo.mqh 138 11

'Entry' - illegal switch expression type DealInfo.mqh 138 11

2 error(s), 0 warning(s)

 
TKAworkflow:

I wrote to Service Desk - no answer. Please, if you have a chance, check for errors when compiling the Expert Advisor with two Trade.mqh and HashMap.mqh files included simultaneously. Are these errors present?

Terminal version and bit mode

Terminal MetaTrader 5 x64 build 1795 (MetaQuotes Software Corp.)

Terminal Otkritie Broker x64 build 1755 started (Otkritie Broker AS)

Sequence of actions

1. Create a standard Expert Advisor and add files to it:

#include<Trade/Trade.mqh>.

#include<Generic/HashMap.mqh>.

2. Compiling the resulting file

I get a result

'Entry' - invalid cast operation DealInfo.mqh 138 11

'Entry' - illegal switch expression type DealInfo.mqh 138 11

2 error(s), 0 warning(s)

They know about this error and fix it. I am waiting for it myself.

 
Vladimir Pastushak:

Is there enough memory ?

RAM and HDD ?

There is still 4.5 GB of RAM and another 175 GB on the HDD.

The error only occurs when optimising via the cloud. By local agents all works without errors.

Typical EAs, like Moving Averange, on the same period, when optimizing through the cloud, work without problems.


 
Vladimir Karputov:

This error is known about and is being fixed. I'm waiting for it myself.

What's the deadline they're promising? How long have you been waiting?

 
TKAworkflow:

What are they promising in terms of timing? How long have you been waiting?

I've been waiting for a week now.
 

Compilation error

//#define struct class //(*)
template<typename T>
struct A;
void f( A<int>& ) {} //Error 124: internal error #122
template<typename T>
struct A {
public:
        void f() {}
};

And if you replace struct with class (*), it's fine. What's the difference?

 

Error during compilation

template<typename T>
class A;
void f( A<int>& a ) { a.f(); } //Error: class 'A<int>' is undefined
template<typename T>
class A {
public:
        void f() {}
};
void OnStart() {           }

Otherwise:

void OnStart() { A<int> a; }

It's fine. What difference does it make?

Reason: