Forum

MT4 logged out on VPS for unknown reason and saved passwords are gone

This is the second time this happened to me in a few days, It never happened before. We have two VPSs, both from the same company. We have two real MT4 accounts , both were running on both VPSs (one VPS runs the EA). I also have one MT5 demo account on one of them. On september 15th for the first

Array of class object doesn't show hints after placing the second dot

When I have a class/struct which has an object of another class/struct in it, then after writing the name of the objetc and placing the first dot, meta editor shows me the members/methods that I can choose. But when I place the second dot it still shows me members of the inner struct but only if the

Question about MT4 debugger

Hello All I'm trying to track the creation process of my GUI to review all the process step by step. As the code is already almost huge and does many nested works I need to use the debugger to find the issue and fix it. Off course the functions related to the UI's creation are called in OnInit

Unknown charachters apears while coding

Hello everyone While coding a part of a variable name suddenly turned to a string of unknown charatcter(s). Long time ago I had this issue so many times and I didn't figure out why, but now it happened again. Any idea why it happenes

Questions and Answers about Panel and Dialogs (Standard Library- MQL4)

Hello I'm using the .mqh files placed in MQL4\Include. I mostly use the controls and canvas for the graphical parts of my EAs. It is very helpful but sometimes I'm having a hard time to find an answer for my questions. I did lots of search and trial and error but still some of my problems are not

How to distinguish between mouse wheel move up/down directions?

Hello I can check if the mouse wheel is moved when the cursor is in my interface area, but I didn't find a way to get the wheel moving direction. Sorry I'm not sure if what I said was clear in English or not. I mean I want to know if the user spins the wheel upside or downside. Both of them gives

How to know if the asset is Fx, CFD, Futures?

Hi I need to recognize if the symbol belongs to fx, CFD or Futures. Should I used this? MarketInfo( _Symbol , MODE_PROFITCALCMODE) Is profit calc mode the correct way to figure it out? Please note that I want to do it programmatically. Any help would be appreciated. Added later: Let me explain more

How to change the ListView BackGround color?

Hello. I'm using the mql4 standard library and using CListView created a list. Can somebody please tell me how can I change the listview background? To avoid misunderstandings, I mean, it's white by default and I want to change its color totally. I don't mean to change the border color or the

the font is not fit on the button in some computers

Hello When I make a panel, I try to choose the best font size and the size of the buttons or labels etc to make it appear as I wanted, But when I send the EA/Indicator to another people sometimes they send me back a screen shot which shows that the texts are not fitted in their places. I don't know

How to recognize ctrl+ Mouse left Click ?

Hi I'm trying to recognize the ctrl+mouse left click. When I press ctrl the ID is CHARTEVENT_KEYDOWN and the sparam is 29 if I hold the ctrl down the ID remains the same but the sparam is 16413, which I think this is what I need to use. I also know that the mouse left click id is CHARTEVEN_CLICK