Forum

Removing and Indicator programmatically

Hi Anyone know if it is possible to remove an indicator programmatically from a chart. https://www.mql5.com/en/forum/115967 shows how to attach and indicator, script or ea void StartCustomIndicator ( int hWnd , string IndicatorName , bool AutomaticallyAcceptDefaults = false ) { int MessageNumber =

Debugging a DLL

Just updated my MT4 version to build 229 and now I am not able to attach a debugger. "Debugger detected" them the terminal closes. So I thought I would give MT5 a go and I see the same problem. Looks like Themida Debug Guard. This poses an impossible situation for library developers like myself. How

Data Folder Location (TERMINAL_DATA_PATH)

I want to be able to write and installer that places indicators, EA's, scripts in the right location. The obvious problem is automatically finding the correct folder in the users profile. Most users won't know which is the correct folder and its not very intuitive. Ideally I would like the user to

Debugging a DLL

Just updated my MT4 version to build 229 and now I am not able to attach a debugger. "Debugger detected" them the terminal closes. So I thought I would give MT5 a go and I see the same problem. Looks like Themida Debug Guard. This poses an impossible situation for library developers like myself

Compiling mql5 externally

Is there a way to compile mql5 outside of the metaeditor. In mt4 there was metalang.exe how can we do the same in mt5

Deinit Reason Code reporting wrong code (Bug)

The below code has been created pretty much from the help file. It is clear there are some issues, attach the indicator and change timeframe, the reason code reported is "REASON_REMOVE" where it should be " REASON_CHARTCHANGE " //+------------------------------------------------------------------+

MT5 OnDeinit bug

it appears that the reason parameter is not always correct in metatrader 5 for indicators. When changing the timeframe or symbol the value passed to OnDeinit = REASON_REMOVE. Shouldn't this be REASON_CHARTCHANGE ? If I am incorrect how do you determine if the indicator is just being reloaded due to

Championship Question

Is it permisable in the EA to reference different timeframes and trade different currency pairs. So the ea is placed on one chart 5M GBPUSD but it also references data in the 15 minute timeframe placing order for say GBPUSD, USDCHF, USDJPY