Forum

Memory Exception

Hello. I'm having a problem with my EA. I have the following message repeating: 2022.07.06 13:11:46.206 MemoryException 1228800 bytes not available, 0 heapmin result 2022.07.06 13:11:46.206 MemoryException 1228800 bytes not available, 0 heapmin result 2022.07.06 13:11:46.207 MemoryException 1228800

Multi core problem on genetic optimization

Hi, I have a problem using the genetic optimization. Once a start a first test everything is fine: But when I start a new test after this one, random cores stay "ready" and do not work (sometimes 4 or more) and then, the test get stuck: I have to disable all core and enable it again or simply

Close button for dashboard.

Hello, I am creating a simple dashboard using ExtDialog with mql5 but the close button is not responding. #include <Controls\Dialog.mqh> #include <Controls\Label.mqh> CAppDialog ExtDialog; CLabel lblLotSize; int m_chart_id= 0 ; int m_subwin= 0 ; int

iMACD returning 0 on every on main & signal line

Hi! For some reasons, iMACD is returning 0 on GBPUSD, it's working on other pairs. Any idea why? double array1[]; double array2[]; int indicator = iMACD(_Symbol, MACD_timeframe, MACD_fast_ema_period, MACD_slow_ema_period, MACD_signal_period, MACD_applied_price); ArraySetAsSeries(array1, true);

Problem translating timeframes from mql5 to mql4

Hi, I have a problem to translate MQL indicators from MQL5 to MQL4. ( https://docs.mql4.com/constants/chartconstants/enum_timeframes ) For the example, I will use iMFI ( https://docs.mql4.com/indicators/imfi ) With a simple print, I can see that MQL5 timeframes are not loaded (M2, M20, H2) but MQL4

Calculate TP for ECN account

Hi guys. I have a problem to calculate a TP and SL for an ECN account. Let me explain. I'm developing an EA that needs a specific TP and SL. I have tested it on a standard account (with no commission but big spread) and I want to adapt it to an ECN account and keep the very specific distance

EA Description too long

Hi, I try to write a description for my EA but i got this error and I dont understand why. The counter says it is below 3600 and when I save it delete everything and say it is too long. Any idea

Handling 3 & 4 digits

Hi, I didn't find any good doc about how to handle 3 & 4 digits for my EAs. My code looks like this: double buySL = Ask - SL * _Point; double buyTP = Ask + TP * _Point; int openBuy(double buySL = 0, double buyTP = 0) { return OrderSend(_Symbol,OP_BUY