Forum

How to open a position without opening a position?

Hello friends, This question is both for MQL5/4. I want to open a position based on recent positions data(All data including Open/Close Price, Open/Close Time, Profit<Swap+ Commission+ gross profit>, Slippage, Lot Size) while the positions would have dynamic sl/tps. The simple solution is to open

Has anybody got a functioning EA using ChatGPT?

Hello guys, No matter mql4 or mql5. Any success

Is there any way to collect market close time so we can close positions before market closes?

Is there any way to collect market close time so we can close positions before market closes? No matter general or specifically for each instrument, to prevent market gaps' affections. It is MQL5 question, however if you have any solution for MQL4 too, it would be double appreciated

Which hardware specifications are important for faster back testing?

Hello friends, Let's say I have an EA, the code is already optimized for back test speed and I do not want to change the code, 1. Which hardware specifications are important for back test speed? 2. My EA is coded in mql4, it is trading all 28 major and cross currency pairs at the same time. Of

How could it be even possible?

Hello friends, I am not sure how could it be even possible. Any technical people have any idea? These are my GVs, look at the time of the GVs. 1970, 2031, 2025, etc

I need to store my GVs more than 4 weeks. Possible?

Hello there, Hope you are all well. I noticed my GVs disappeared after 4 weeks. So is there any way to extend the GVs to exist more than 4 weeks? If no, what would be the simplest alternative(s)? I'm not a coder originally, so please explain a little more <3 Your advice is greatly appreciated

About calculating the profit

Hello friends, As you can see in the picture, I collected 600 points for Buy position in EURUSD currency pair, but it gives me 5.43 rather than 6$. My code for exiting is: if ( OrderSelect (( int )BuyOrder[x],SELECT_BY_TICKET)== true ) if (OrderProfit()>=OrderLots()*TakeProfit) if

Why this code shows a wrong result?

Hello pals, Hope you are happy today. I wanted to calculate and comment Maximal Drawdown and Relative DD for each tick. But the commented Maximal DD and Relative DD results are different from what is presented in backtest report. It would be greatly appreciated to point me where my mistake is. P.S

How to get % for double types

Hello friends, Hope you are having a nice day. I want to get the leftover from dividing a double value to another double value: for example: a=b%c while b=8.5, c=3.0 then a=2.5; But it looks that % function only accept integers and no doubles. What is the solution? Thank you in advance

My MT4 account history does not work properly

Hello friends, Hope you are happy today. I wanted my Demo account full trade history. I've chosen All History in terminal but although it shows the start(deposit) and end(current), it does not show some of my trades. They have been disappeared from my history! The proof is my account deposit was 10K