Forum

Help!, Command, or commands to detect operation closing automatically.

Hello! Sorry for my English. I've been looking at the MQL4 .doc and I haven't found any command or command lines to be able to get/detect when a trade is closed. Would someone be so kind and help me. My idea is to incorporate this line/command lines as a void or similar and when an

How to add the profit in the take profit line and the loss in the stop loss line of an open trade.

Hello everyone! I am making a panel of buttons to open operations, so far I have no problem; My need for help is that I would like each order that I open to add the loss value for the Stop loss line and the same in the take profit , this next to its operation number, see drawing

Create a rectangle with 2 clicks

Hello everyone! I am trying to make an indicator that allows me to draw a rectangle with two clicks and later with this rectangle perform other functions with buttons; My problem is that when I use the CHARTEVENT_CLICK it only does the CHARTEVENT_CLICK thing and cancels the rest. In this code I have

analysis tool

Hello everyone! Sorry for my English. I need help, I am making a tool to draw specific areas, in principle the tool works fine but there are two functions that when executed block the MT4 and I have to close it, these two functions are the ones that perform the "RESET" button and the button “DEL”

Buffer Query

Hello everyone! I have a question, can someone tell me? My question is about buffers and arrays and it is: Can Buffers be used in Expert Advisors or just Arrays. Thank you very much Manuel

Errors Expert Advisor

Hello everyone! I need help, I have made an Expert Advisor, and in my opinion it should not have problems but when I go through Backtesting, it gives me some errors that I am not aware of and that I cannot find in Metacuotes to solve it either. Could someone help me

Data entry button

Hello everyone! I need help, I have made a panel of buttons from which a button must be used to enter data, that is, a button where you can put a value and that when you press it or when you press another button it takes the data from it, I have made this function in "fxdreema" but the

Problem with opening code of operations.

Hello everyone! I need help, in the attached code I use it to calculate the necessary lotage, the problem is that the resulting value comes out with a very long number and I have not been able to cut it to only 4 characters, that is "0.07", I have tried it with a balance of €2048 and the

Trade line as in tester.

Hi everyone! One question, is there any command or function to be able to get a line from the starting point to the closing point of a trade like the ones generated by the mql4 strategy tester ? I would really appreciate it, because I want to create an indicator that generates a

How to get the maximum and minimum price from a vertical line,

Hello everyone! For an indicator that I am doing, I need the mql4 comman or code to obtain the maximum and minimum price from a vertical line, I know how to do it from the window but not from a vertical line, can someone help me. attached code so far