Forum

BMP File location for tester in MT5?

Hi, I am creating BMP image objects on the chart in MT5 and they work fine on live charts. But when I test my indicator in strategy tester I get File not found 5019 error. So where should I copy my images to work in tester? I have tried all the tester locations but they do not work. any help please

Getting chart symbol and chart period

Is there any way to get the chart symbol and chart period by using chart ID without using ChartSymbol() and ChartPeriod()

How can I get windows handle of currently active(focused) chart?

Let suppose that 2 terminals are running in my system and each terminal has few opened charts . My question is that if there is any way to get the window handle of the chart which is currently active using any mql function or system DLL

How to create a Folder in System Drive and a File inside the Folder?

#import "kernel32.dll" int CreateFileW( string , uint , int , int , int , int , int ); int GetFileSize( int , int ); int ReadFile( int , uchar &[], int , int &[], int ); int CloseHandle( int ); #import How can I create a folder( e,g "AAAA") inside System Drive(Windows Drive)? How to create a

How to remove an Indicator automatically from an EA?

As we can attach an indicator to the chart using iCustom function from EA, my question is how can we remove that same indicator from the chart using code inside the EA? Or any way to reload the indicator on the chart from the EA code

Problem with Strings in DLL's

Following code works fine in old builds but not in 600+ builds. In new builds it only passes and get back first letter of the strings. Any one here to tell how to fix this for new builds?? #import "GlobalVariable.dll" int GV_SetNamedString( string StrName, string StrValue); string