Forum

Getting Contract Specification Session Start / End times using MQL

Hi, Is it possible to get Contract Specification Session Start / End times ( as shown in the enclosed screenshot ) using MQL. Regards Vivek

OBJ_RECTANGLE properties OBJPROP_FILL and OBJPROP_TOOLTIP

Hi, For an object of type OBJ_RECTANGLE , am unable to set the fill and tool tip property ObjectSetInteger( chartID, objName, OBJPROP_FILL, false ); ObjectSetString( chartID, objName, OBJPROP_TOOLTIP, callOut ); Regards Vivek

Keeping login active in the broker's server

All, As per thread http://www.forexfactory.com/showthread.php?p=5662238#post5662238 , the broker's MT4 server keeps terminal login active for 30 seconds only, after the last 'activity' from the terminal. Therefore, if you send a order after a period of inactivity, a fresh login is done which causes

Enabling SendMail() in MT5

I have setup Email correctly in MT5 through Tools->Options->Email and ticked the checkbox Enable. Test button in this window works fine. However from my EA/Indicator when I use SendMail() function , emails are not sent and GetLastError() returns error - 4014 - "System function is not allowed to

64/32 bit DLL's for MT5 terminal

Do we need to create separate 64 and 32 bit DLL's for 64 and 32 bit versions of MT5? Have gone through the article https://www.mql5.com/en/articles/18 but found no mention of requirement of a 64 bit DLL. Trying to run a 32 bit compiled DLL with a 64 bit MT5 terminal gives the following error

Hot Key Programming

Hi, Am trying to program a Cntrl+J hotkey in MQL5. The following code does not work, as masking is not supported. Windows function GetAsyncKeyState() also does not work as apparently, MT5 is removing the event. Any suggestions / workaround? Regards PR void OnChartEvent(const int id, //

Indicator getting corrupted

All, I have developed an indicator which runs fine for the first 16 hrs or so, after which it gets corrupted and starts to draw lines all over the chart. I am also checking the value of IndicatorCounted() and its value does not become negative when I get the corrupted lines. I do not want to

iCustom - prevent indicator from init()'ing at every call

I am using iCustom along with 'indicator input parameters' to call a indicator. When the indicator input has variables (containing constants), the indicator is init()'ing at every call to iCustom. Any workaround / suggestions to prevent indicator from init()ing, each time iCustom is called with

Custom Indicator Development Question

All, I am developing a Custom Indicator and had the following queries. I use two buffers to draw the line indicators. a) Possibility / Workarounds available to draw a line indicator on a single bar, ie the start point and the end point of the indicator line will be on the same bar b) Any MQL4