Hello, I coded my EA (3 actually) and I ran a back test on the last few months with it with optimization enable. That way, I picked the best value for some of the parameters of my EAs. Then, just to check, I ran a back test (on the same period, the same instrument, the same method "real tick based
[Deleted]
Hi, Everything is OK with my Python environment in which I work every day, but when I want to import the MetaTrader5 library, I get an error message : ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none) ERROR: No matching distribution found for
Is it possible to place an expert adviser (EA) on the webterminal to execute trades automatically?
If it can be done, can you please show me the steps.
Thanks.
I have 2 MT5 that aren't on the same network, installed on different Windows computers. Both can trade the same account BUT I don't want them to be opened & ready to trade simultaneously. When I launch MT5 #1, I want it to close MT5 #2 (if it is opened) When I launch MT5 #2, I want it to close MT5
I've read a few articles, and still have yet to find a working solution for this, while also trying not to deviate too far from what the documentation says to do. I'm trying to create my own custom SPY symbol ( different than the default SP500m data provided by the demo server ). For ease (and THIS
My EA still orders buy/sell stop (alway have a fix stoploss) and matches orders normally. However, at certain times when the market fluctuated strongly, my broker reduced the leverage to only 1:200, causing the stop orders to be canceled when hit price because not enough money . Can I calculate
Hello dear Dev. I noticed something with my platform, and I wonder if someone has an explanation. After dropping an EA on the chart, you are asked to fill up the input parameters. Later on you can modify the value of input by following one of the two methods : 1. Re-attach the EA to the chart 2
Hi, I have the problem that when an object of the child class is created, the constructor of the parent class is called without notice. class ClassA { public : ClassA(){ Print ( "ClassA Constructor" ); }; }; class ClassB: public ClassA { public : ClassB(){ Print ( "ClasB" ); } };
[Deleted]
I need to change background color of my Panel derived from CAppDialog, but since m_background is a private member of CDialog, I can't access it and change the color with the function ColorBackground().I appritiate any help.
Hi guys, I used to experience intermitent issues with the Tester Visualization hanging on "Waiting for Update" but usually if I forced close it and retried a few times or changed the symbol it would start working again. However, now I am completely stuck. No matter what symbol I try, how many times
Hi everyone!! Can anoyone tell me how all this EA's test get the historical data since 2015, with every tick based on real ticks model? Thanks in advance
Hello: I have developed a trading strategy and would like to put into code. I don't want to learn MQL5. I am willing to trade the strategy for the code. Use it if you like it. I have almost finished the faux code and can make it available privately. All the Best Chris
I'm testing an EA. I noticed it sometimes opens positions (in strategy tester) with a volume much greater than my balance + leverage. How is that possible? I this screenshot I have 972 EUR balance and I'm using 1:30 leverage. It opened a volume of 0.97 on GBPUSD. Meaning a 97,000 GBP position. What
can i continute optimization if i did it for 2 years and i have new day .. i want to ad the results without start it frome zero
Hi all, Rookie/noob here, thinking he figured out the issue but failed again. I have been working on this for a couple days and thought i fixed it last night by resizing the arrays. As you can see below the close shows 1.10374 for the second last candle. Assuming based on the code is states that it
Hi, from time to time I observe the situation that MT5 deletes a full month of data, which affects (breaks) the EA logic. Any ideas how I can avoid this?? In the image above, you can see that data between 29.12.2023 and 1.st Feb 2024 is missing. As if there was nothing. Only the remembered trades
Hello dear Dev. I noticed something with my platform, and I wonder if someone has an explanation. After dropping an EA on the chart, you are asked to fill up the input parameters. Later on you can modify the value of input by following one of the two methods : 1. Re-attach the EA to the chart 2
The documentation is no help. From what I can tell researching it, Exchange Mode is a netting mode. Can anyone confirm or deny this for sure
Hello everyone! I'm currently facing a challenge in identifying errors in my code and I'm curious about the best ways to search for specific topics and solutions. This includes searching both on the web and within the MetaEditor. For instance, I've been advised to use Google search like
Stack # Therefore, for large local data you should better use dynamic memory - when entering a function, allocate the memory, which is required for local needs, in the system ( new , ArrayResize() ), and when exiting the function, release the memory ( delete , ArrayFree() ). Why does the
Hi is there any one who can help me to make this Ea to trade Synthetic Indices like volatility 75 step index because now this Ea trade only currency
Hi folks, the documentation for copy_ticks_range in the Python API says: "When creating the 'datetime' object, Python uses the local time zone , while MetaTrader 5 stores tick and bar open time in UTC time zone (without the shift). Therefore, 'datetime' should be created in UTC time for executing
Hi there fellow traders, I am trying to place a grid when I open my initial position. The orders in my grid are pending orders and are increased in lot size when they get closer to my stoploss. However, the initial stop loss and take profit remain the same. I think I'm on the right path however the
I just started learning code, and finally the MetaTrader Editor confirmed I had no Errors or Warnings in my code, but when I tested EA on mt5......it refused! It just said that the OnInt Failed......I dont even know whats wrong becasue the MetaTrader Editor confirmed no errors, so I cant even get
Hi, I have an EA that has a strategy which includes 2 integer input parameters I can change to do backtesting. So I did some tests varying between ranges I know are possible (one is a switch-case from 2 to 4, the other is a count of candle bars that have occurred since the start of the last
I've noticed that after copying history with CopyRates MT5 keeps copied array in memory. It's ok for cached access but when I run through lots of symbols my memory ends fast. And memory stays occupied until MT5 exits. Is there any way to forcibly release memory occupied by CopyRates cache
Hi, I have downloaded my brokers MT5 and trying to test my EA. Everytime tester resets the settings to default values and makes impossible to save the latest setted parameters . How to fix? Any suggestions will be welcome. Gr
Hi, This is driving me crazy but I have come to conclusion that you just cant use file access in the OnTester() function. But I hope I am wrong and someone can help? I am wanting to write data out as part of the Strategy Tester Optimisation. I can open and write to a file in both OnTesterInit() and
Hey folks, I hope you can help me out, because I'm at a loss here. Here's my problem: I make an EA on fxdreema (I can't code). Simple trading strategy, nothing fancy, involving some EMAs and price breaking though one of them by some minimum distance. Simple trade management with a trailing stop
hi.. i wanna make EA will Close Order 1 by 1 from frist order , this code mql4 is succses , but when i try to mql5 with same way, im always get message " failed prices for 0 [Invalid request]" this code from Mql4 .. void CloseOrderPartial2() // Close partial Buy { int orderstotal = OrdersTotal
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.