Forum

need help for a code

Hello everyone, I am calling you because, as you can see, my current code will close a position when it takes 130 pips, I am trying to change it to close the position when it makes a profit of 1 euro (1 euro for example), the take profit will be set automatically so that a profit of 1 euro is

help to code

Good evening to all, I appeal to you because I have a problem with my code, indeed normally it must perform an order every 100 min: buy if the market is up or sell if it is down. The problem is that my code only executes sales, but it does not make purchases. I can’t figure out why he won’t buy

Help to code

Hello, after several hours of searching on google, Youtube and on the forum I finally found a way to export the mt5 data to Excel thanks to a small MFC application (DDE server), the problem is that the code allows to have only the name of a company that serves the account , the server time the

mt5 to excel

Good morning everyone, I saw that it is possible to export mt5 data (purchase order, sale, profit, loss...) to excel. I’ve tried all the solutions and I can’t. Does anyone know if it is possible to run excel file with live data? (I have been looking for a solution for several weeks but I can’t find

coding problem

Hello everyone, I am calling you because I have an error in my code, can you help me solve it please. "' symbolIsAlreadyTrade' - function declarations are allowed on global, namespace or class scope only (ligne 5)". Thank you. #include <Trade\Trade.mqh> CTrade trade ; void OnTick (){ bool

help to code

383 / 5000 Résultats de traduction Could someone help me, i cannot code. This code is instructed to: sell when the market is falling and buy when the market is rising, close a position when it has made a profit of 10 euros. To know if the market is up, it means that the last candle is higher than