Forum

What is the best performance of my backtest?

Hello, I did a lot of research to understand what was the meaning of the different key indicators in the reports. So I understood the calculation methods well but I still do not know if I should choose the result with the best profit factor? or Profit? and how to be sure of the resulting data? Is

Trailling StopLoss

Hello everyone, I hope you are doing well this morning. You have helped me a lot before, I really appreciate this community :) So! I have a little problem with my Trailing Stop Loss extern int TraillingStart = 15 ; extern int TraillingStep = 2 ; extern int StopLoss = 100 ; extern int TakeProfit =

Money management MQL4

Hello every one! I am coding a robot to which I would like to add the classic money management however I am encountering an OrderSend error 131 problem that I cannot resolve even though I am sure that my error is super stupid! The code : double Lots; { if ( OrdersTotal () != 0 )

Bad formulation

Good morning all I have a problem with my code, I have checked my code and everything seems to be good .. but my code is not working as I want it to .. and I think maybe it is the code line at the bottom .. I think that's it: if (candle_Low1 <candle_Low2) my code : void OnTick () { if

OrderSend or bad condition ?

Hello every one ! I've a probleme with my code.. like we can see on the screnn.. (I failed to put the screnn in the chat) http://image.noelshack.com/fichiers/2021/07/6/1613847387-capture-d-ecran-2021-02-20-19-51-28.png My code : if ( OrdersTotal ()== 0 ) ; if (bougie_H1>bougie_H2){

Error 130 on OrderModify

Hi, I'm Thomas a passionate beginner coder.. I have searched on a lot of topics but I did not find how to solve my problem .. maybe someone can enlighten me .. Here is my code : extern int TakeProfit = 800; extern int StopLoss = 45; extern double LotSize = 0.01; extern int MagicNumber = 1234; double

Function to know the current price of my order

Hello, I'm looking for a function on MLQ4 that could tell me how much my order is compared to that position taken example: I open at 1.000 The market rises to 1,150 Does it excite an code for say ( for example OrderPriceActuel = 1.150) Thanks you :) Thomas

Trailling StopLoss

Hello, I would like to have a line of code to have a Trailling Stoploss on my robot. Explanation: I open my position at 0 My StopLoss is -40 and my TakeProfit is 100 .. If my position is 60 then I would like my StopLoss to be 40 (- 20 Pips) And if my price increases by 20 Pips then my StopLoss will

Trailling Take Profit

Hello, I would like to add a Trailling Take Profit for my trading robot. Quite simply, I open a position at $ 100 The StopLoss is at -20 $ If my position is at $ 180 (+80) then my TakeProfit will be at $ 200 and my StopLoss will be at $ 150 Regarding the StopLoss I have already managed to find a