K K / Publications
Forum
MQL4 EA keeping state?
Hi, I have encountered a very odd behavior of an EA in MQL4. So the EA is attached to a given chart and a UI pops us which allows the user to interact with the UI(press buttons, view stats, etc). Once the UI is closed the EA is removed using ExpertRemove() function which then triggers DeInit and the
Add a label to current candle - not shown correctly in mt4
Hi, I would like draw a text label where the current candle is. I got the label but it starts at the previous candle not at the current one This is what I am using at the moment ObjectCreate (0, label, OBJ_TEXT , 0 , TimeCurrent (), price); ObjectSetInteger (0, label, OBJPROP_COLOR , color);
webrequest doesn't contain post data in mql4
Hi, I am struggling to find out what might be wrong with my webrequest and the reason why there is no post data. string cookie= NULL , headers; char post[], result[]; string url = "url_to_a_server" ; StringToCharArray ( "some_info" , post); Print ( "post: "
class import from c# dll in mql4
Hi, I would like to call functions of a class that come from c# dll in my mql4 program. I have a c# UI and the dll passes data from the UI to metatrader and vice versa. I read some articles from 2007 and 2013 that this is not possible and that I need a c++ wrapper. Since a lot of time has passed
How to reboot EA once a new chart is opened?
Hi, I have an EA that displays information about the pair that it is attached to and I would like the EA to reboot when I open a new chart so that it shows information for the new pair. How can I achieve this? Thanks in advance
EA showing data for the symbol it is attached to instead of showing data for the symbol that is in focus
Hi, I have read a lot of information on the website but I couldn't really find an answer to my question. I have a EA which opens a user interface once it is attached to a given chart(say GBPJPY). What I want to achieve is basically when I open a different chart GBPUSD I want the EA to detect this