Forum

How to use CHashMap with custom struct?

I would like to use CHashMap to store key/value pair where key will be string and value will be a struct variable. Trying with below code, but its not compiling. // Include additional header #include <Generic/HashMap.mqh> // User defined struct struct MyStruct { string symbol; double

"TradeBase: not enough memory for trade" error from EA

I have an EA to perform trade (open/close) which handles thousands of orders. Recently found an error as mentioned in the subject. Now I would like to know in what condition or from what kind of API call may raise this error. Why I am asking so is because there are several MQL4 API calls available