However there is no interface loading in the chart. I have checked all the common things that could affect it like using 0 layer in the code. Checking the Algorythmic Trading is on. Restarting MT5. Removing the EA and reloading it again.
Even when i try to create a test button under the Oninit function, this also does not show. Here is the snipet of the code for the OnIni() function.
/+------------------------------------------------------------------+
//| CTM Trade Manager initialization function |//+------------------------------------------------------------------+intOnInit()
{
// Test creating a simple button directly here
CButton testButton;
testButton.Create(0, "Test Button", 10, 10, 100, 30, 0);
// Print a message to the Experts tab to confirm creationPrint("Test button created");
// Original initialization
Interface.CreateInterface();
Print("Interface initialized");
// Force a chart redraw (as a last resort)ChartRedraw();
// Initialize the graphical interface
Interface.CreateInterface();
Print("Interface initialized"); // Debug print// Additional initialization if necessaryreturn(INIT_SUCCEEDED);
}
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.
Im using MQL5 to write my EA and using MT5 to test. it.
The EA is compiling without any errors in Meta editor,
The Experts window is printing:
2024.01.30 11:03:28.989 CTM_TradeManager_EA (GBPUSD,H1) Interface initialized
The Journal is printing:
2024.01.30 11:03:27.450 Experts expert CTM_TradeManager_EA (GBPUSD,H1) loaded successfully
However there is no interface loading in the chart.
I have checked all the common things that could affect it like using 0 layer in the code.
Checking the Algorythmic Trading is on.
Restarting MT5.
Removing the EA and reloading it again.
Even when i try to create a test button under the Oninit function, this also does not show. Here is the snipet of the code for the OnIni() function.