Forum

Question about FILE_SHARE_READ / FILE_SHARE_WRITE (FileOpen)

Hi, I am just programming an EA and I have been reading the documentation I found: https://docs.mql4.com/files/fileopen As far I know (I am not an experienced programmer), FILE_SHARE_WRITE (or share read) must be used when a file is accessed from multiple programs, right? My EA automatically exports

How to read the second line of a text file?

I have just created an EA that can read the first line of a text file, to obtain a value. Now, I want to use 2 values: the first one in the first line and the second one in the second line. My question is how I should modify the source code to read only the second line of the text file? The actual

Actual number of visible candles and prices

I'm coding a program and I want to know how can I program in MQL4 an instruction that reads how many number of visible candles are actually in the active chart. Also, I want to know is if possible to know also how many numbers of prices are visible at the moment and them values. With prices I mean

Writing my own forex client - Information needed to connect to server

I'm writting my own forex client in visual basic 6.0 I'm looking for documentation about connecting to a forex server and get information. As you know I've to know the commands, ports, ip addresses, etc... to connect to a forex server and get information about ticks, etc... A guy of this forum said

Connection to forex server - Technical information

I'm writting a code in visual basic to make a more precise EA. I want to connect the vb program to the forex server for login and receive information of the current currency pair . I want to know where can I find information since I'm coding the winsock control and I've to send commands to the

MQL4 and iCustom with large number of bars

I wrote an EA and I use iCustom function to get information from an external indicator. The problem arises when I've to get information of the las 30 bars or more. So, I write: double rm00 = iCustom (.....) double rm01 = iCustom (.....) (...) double rm030 = iCustom (....) if the indicator has more

Newbie question: Automatic trading MT4 and MT5

I'm starting in using MT and I know that MT5 is able to make automatic trading. This means that you code a program that can open and close buy/sell operations for you respected to some parameters that you've previously coded in the program. Now I've the same question for MT4. A friend has clarified