Forum

Can I get the properties from code?

Steps: 1. Define the property like this: #property version "1.00" 2. How can I get version from code? Like Print("Current version: "+property.version)

How to check if an account login from client terminal become Invalid Account?

Steps: 1. Login an account from an MT client terminal successfully; 2. Run an EA; 3. Change master password; 4. Invalid account come. But how to check invalid account from an EA? The AccountNumber() is still correct, the IsConnected() is still true. Thank you

Can we call a script from an EA?

Can we call a script from an EA? Thanks

OnTick() and OnTimer() event handler stop working when MT4 terminal minimized.... ?

It seems that OnTick() and OnTimer() event handler used to work before, but recently I found they stop working when I minimize MT4 terminal, and they will come back to work when I un-minimize MT4 terminal. Does anyone found this issue? Test of OnTick() 0 14 : 48 : 33.850 EA GBPJPY,H1

Does anybody use kernel32::FormatMessage?

Ref: https://docs.microsoft.com/en-us/windows/desktop/api/WinBase/nf-winbase-formatmessage Below code is the syntax: DWORD FormatMessage( DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPTSTR lpBuffer, DWORD nSize, va_list *Arguments ); In my MQL4 code, I

Cannot load dll on windows server?

Hi, I wrote a DLL and it works fine on my desktops(Windows 8.1/10). But when I put it on a widows server where I have some MT4 running, there will be an "2019.03.18 11:50:01.646 Cannot load

X_Size of CChartObjectLabel will be zero(0) after Description, is there any solutiuons?

m_LabelInfo is object of CChartObjectLabel m_LabelInfo.Color(clrRed); m_LabelInfo.FontSize(28); m_LabelInfo.Description("Information"); Print(m_LabelInfo.X_Size()); // The value is 0, why? m_LabelInfo.X_Size() will be set to zero(0) after calling Description(). I even tried to call

It seems that the official CButton class in Controls\Button.mqh doesn't adapt BASE CORNER?

The CButton class is derived from CWndObj, and CWndObj is derived from CWnd. All the classes don't have an interface to set BASE CORNER. If you set BASE CORNER by ObjectSetInteger OBJPROP_CORNER, then the coordinates is weird. This will make event handler to response false due to position miss. Does

Bug report: SymbolInfoInteger(Symbol,SYMBOL_TRADE_MODE) returns SYMBOL_TRADE_MODE_DISABLED while symbol description "Trade" is "Full access"

MetaTrader 5 Version: 5.00 build 1881 09 Jul 2018 Server: GenesisMarketsLP-Demo Symbol description "Trade" is "Full access" But SymbolInfoInteger(Symbol,SYMBOL_TRADE_MODE) returns SYMBOL_TRADE_MODE_DISABLED

Can I modify position comment?

The position comment is set by OrderSend as a parameter. When the order dealt and there's a corresponding position, can I modify the position comment? Thank you very much