Forum

Incorporating a freeware indicator

I have a freeware indicator that paints really useful support and resistance levels on a chart that I want to incorporate into an EA. The problem is that I don't have the source code so I can't use iCustom because I don't know which buffers it uses to paint the lines. I did try to interrogate the

ChartXYToTimePrice returning incorrect time

Hello everyone, I am having issues with the function ChartXYToTimePrice. It is returning the correct price, but it always returns the incorrect time. I have written a script that creates a little red dot at the side of the chart that you move onto the chart and click a button. Once you click a

iCustom is making me sad

Hi guys, I'm having issues with the iCustom command. Basically it's working sometimes and not others, which I find a little bizarre. Here is my code. bool Scan_Super_Trend() { ArrayResize (Value1, 7 , 7 ); ArrayResize (Value2, 7 , 7 ); ArrayResize (SuperTrend, 7 , 7 ); ArrayResize

Help using iCustom

Hi everyone, I'm trying to use the iCustom command to take values from an indicator that I do not have access to the source code for. The indicator has a lot of settings, some of which are not numerical. I know that you have to pass the indicator settings to the indicator in iCustom, but I'm

Order Placement Issues

So I'm currently running 7 different MT4 terminals, on different accounts, with the same code, only with different parameters to try and optimise my strategy. I accidentally loaded the same parameters into 2 of those terminals, but couldn't be bothered to go and change it. I just assumed that I'd

GetClassName and GetTitle

Is anybody familiar with the GetClassName and GetTitle functions in C++ and whether or not they have equivalents in mql4

Keystrokes within an EA

Hi everyone, I am trying to get my EA to send the key command "ALT-R" (Tile chart windows) periodically. I'm using the following code. #include <WinUser32.mqh> #import "User32.dll" void Tile_Windows() { keybd_event( 12 , 0 , 0 , 0 ); // ALT down keybd_event( 52 , 0 , 0 , 0 ); // R down

Security of Indicators from Unknown Sources

Hi, So I'm using indicators from an unknown source in my expert advisors, and I wanted to know if there was any chance that they could be running any malicious code that could harm my computer? Or does MT4 have safeguards in place to prevent this kind of thing? Probably being paranoid, but it seems

Trade/Range Identification

So I can see what the market is doing by looking at it and I know whether to favour buy or sell signals in terms of entering a trade. Trouble is that my EA code doesn't have eyes and so I need it to be able to figure that out in a different way. What indicators and/or techniques do people use to

Strategy Tester

Hi guys and girls, So I've heard that the strategy tester in MT4 is a little bit wholly inaccurate. Does anyone have any tips on how to make it less so? For instance commands to avoid and what commands to use instead. I've been doing forward testing using multiple accounts and different parameters