Forum

EA print allowed URLs?

Is there a way the EA can print allowed URLs

CalendarValueHistory() freezing thread for 50 sec

Execution of this line of code is freezing the thread for exactly 50 seconds. if ( CalendarValueHistory (mqlcalendar_value, iTime ( "EURUSD" , PERIOD_D1 ,1),iTime("EURUSD",PERIOD_D1,0), NULL , NULL )) Thereafter, the program continues without error but also without returning calendar values. I have

ERR_CALENDAR_TIMEOUT (Error 5401) for CalendarValueHistory

I have been running this code for a long time without any problems. ResetLastError(); CalendarValueHistory(mqlcalendar_value,iTime("EURUSD",PERIOD_D1,0),iTime("EURUSD",PERIOD_D1,0)+PeriodSeconds(PERIOD_D1)-60,"",""); Print(GetLastError()); However, running from a different computer with a different

High Network Traffic with MT5 Build 2007

I'm observing constant high network traffic (approx. 60 kB/s) in the background with MT5 Build 2007. It starts about 60 s after login with no charts open and stays like that during the whole session. Removing all symbols from Market Watch makes no difference. I can't remember this behaviour occuring

Using two DRAW_COLOR_ARROW plots in the same indicator

Using #property indicator_type1 DRAW_COLOR_ARROW the arrow symbol (https://www.mql5.com/en/docs/constants/objectconstants/wingdings) is specified via PlotIndexSetInteger ( 0 , PLOT_ARROW ,arrow_code); //arrow_code != 159 However, this works only with a single plot. Adding a second DRAW_COLOR_ARROW

Reinitialize local STATIC variable upon ChartSetSymbolPeriod()

A static variable retains it's value even after Symbol or Period change of the chart. Is there a way to reinitialize local static variables upon Symbol or Period change? Or is there only the possibility to declare the variable on the global scope and reinitialize it in OnInit()? void TestStatic()

Moving stop level error

Hi, my EA moves stop levels. However, once the stop level is very close to POSITION_PRICE_OPEN , any further attempt to move the stop level results in ERROR 4756 Trade request sending failed. I assume the problem has something to do with either SYMBOL_TRADE_STOPS_LEVEL or SYMBOL_TRADE_FREEZE_LEVEL

OBJ_BUTTON above Trade Level

When it happens that an OBJ_BUTTON (OBJPROP_ZORDER == 100) is above a trade level, pressing the button will not trigger CHARTEVENT_OBJECT_CLICK in case one presses exactly at the position where the trade level is located. Is there a workaround to make the OnChartEvent handler also respond to

Max Number Indicator Handles (iCustom)?

Is there a maximum number of indicator handles (iCustom) allowed for a single indicator

MT5 Build 1525 problems

1. The 64 bit version does not run on Ubuntu/Wine. See also https://appdb.winehq.org/objectManager.php?sClass=version&iId=19984&iTestingId=96774 2. OBJ_CHART inherits date and price scale from the parental chart and can't be modified using ObjectSetInteger (chart_ID,name, OBJPROP_DATE_SCALE