Expert Advisors and Automated Trading - page 22

I'm not sure if MQL know their Socket TLS functions aren't suitable for Websocket , i've been spending all time of my every last 5 days searching this forum, that forum and all forum on how to make WSS Websocket work all to no avail. Should one just go to WinAPI for every little function
Good evening I have a person who would like to buy an MQL5 indicator in the marketplace. In fact I don't know what will happen to the client. He gets an ex5? He needs to do an icustom() on this bought/rented indicator I would like to know where the ex5 will be installed in the metrader directories
Good Day, I'm trying to create an EA that checks the number of open trades per currency pair then sends an email if the number of open trades is greater than or equal to set number. With the help of ChatGPT I've made some progress but the code sends 100s or 1000s of emails when th condition is meet
Hi there! I'm working on an EA that uses pending orders and I need them to expire x bars after they are created but my broker/symbol doesn´t support GTC or Time Specified Expiration. this is the workaround I´ve created: When conditions are met, it creates a pending order and stores the Expiration
I need run a certain modules of an EA to be run with only one symbol, let say "EURUSD" and block others ( GBPUSD ) to do the same. For ex, if my robot is used in one symbol (EURUSD), and if it is runnig some module of closing all orders, I need to block other symbols to do the same. That means, for
I'm trying to write the code that would count the times something happens. It doesn't matter what. You don't need any existing code. I'm just learning and trying to understand scope and the order that things are processed. It's all still pretty new. I just want to write, for example: if(a == b) { do
Hi there, Can someone tell me if there is any limitation in MT5 which prevents creating a seconds chart with more than one day of historical data? I hired a coder to create an EA for me which reads tick data and creates an offline chart which gets updated every tick , and you can create custom
Hi all. My goal: to establish exposure limits in order to diversify my entries across pairs on a multi symbol FX EA. For this I plan on having an array of volumes, which I then "operate a calculation on" to get values into an array of USD exposure values. Where I am: I have an array with the asset
Hello Community Members, I was trying to publish my EA. It says test on EURUSD,H1 strategy tester report not found How can this be solved. If it'a bug on mql then how can this be reported. Thanks
Hi. I have this issue with one EA I rented : MQL5 Market failed download product '....' [403]. This error is supposed to be a connexion problem. I tried to close and restart several times. There are 7 activations left and renting is active till 2024.07.27 . On the same MT5 terminal, I am able to
Hello, I am testing a simple Expert Advisor on the EURUSD pair. In this strategy, I am sending a sell order with take profit. The TP is hit and the position is closed. I don't understand how the profit is computed. From the Tester History (See image attaached), I see that the short position is
Hi, I am writing because I encountered a problem regarding the optimisation. I've done already a few successful optimisation with this EA but after a while no matter in what mode or on what symbol I'm optimising the agents not working simultaneously and the optimisation starts slowing and almost
I need to add some information into the end of CSV or TXT file, but every time I open the file with FileOpen and write the text there, it erases all information and write a new text.. But I need to add the new information into the end of the file, while keeping the previous text as well. Kind of
Hey all! I have doubts about the best way to handle working with the trade history. I'm aware a single position can result in multiple deals when closing it. For example, if I'm looking for coding a martingale system based on closed trades, what would be the best approach to handle reading the trade
Hello, I am looking for an EA that can Place Buy Stop and Sell Stop Orders on a previous Candle Stick High or Low based on a specific Closing Criteria. Please let me know. Thank You
Hi, I'm running a code on XAUUSD, and I get this error. I don't know why it tries to modify a position with the same SL/TP level already assigned. Could someone help me to solve this? Thanks I know that is an error to use NormalizeDouble on prices, but I get the same error also with funcion like
I'm wondering if it's possible to have two EAs with the same magic number running on two different charts but on the same symbol. I'd like to know if this would make both EAs watch the same trades. The idea is to make the 2nd advisor employ extra money management features while I don't have access
Hello everyone. 1. Dynamically allocated arrays, objects and instances of classes may hold important data. 2. Reloading the system or bot for any reason causes interruption and loss of those data. How do you fix this issue? Do you just use the static allocation methods and avoid using Objects in
Good morning, I know that there have been many other discussions on the MQL5 Economic Calendar, but I would like to highlight this fact that I cannot understand. Let me start by saying that I am using IC Markets as a Broker, I know for a fact that the ICM candle times are GMT +2 in standard time
Hi everyone, I'm once again in the optimization rabbit hole and I figured you know what, why not post my own process on the forum and let everyone tear it apart lol, who know's maybe i can learn something from it! -Don't hold back i promise i can take it lol! (also i realize i can't describe all the
How to install Set Files provided by the author on EA for specific charts?
Hi I'm looking for proper expert which not only support regular features of trade management experts but also support stop-limit orders visually . I'm glad to introduce me best of them...thanks
int Consecutive( int Count) { //--- int BB = 0 ; for ( int i = 1 ; i <= Count; i++) { if ( iClose ( _Symbol , PERIOD_H1 , i) - iOpen ( _Symbol , PERIOD_H1 , i) > 0 ) { BB++; } else { BB--; } } //--- return (BB); } Besides using
[Deleted]
  EA demo  (2)
I am looking for good EA. I see that I can download demo. Can I use it on real account? How long
i have a setup,which i trade manually, but now i want to make an expert advisor about it. but i do not have an knowledge about it, how can i do it please guide
Hey guys, So, I have made a very simple EA, which does exceptionally well in backtesting (on some forex pairs. Not all, ofcourse - makes sense). In backtest, it makes approximately 1 trade per day - give or take. Although more forwardtesting needs to be done, it seems to do equally well when trading
2019.07.17 19:42:43.087 Tester expert file C:\Users\Kim\AppData\Roaming\MetaQuotes\Terminal\8AF80ED069D409E139BD115B8B49A8D3\MQL5\Indicators\SqKeltnerChannel.ex5 open error [2] I have seen a error message While running Strategy Tester.  Ea has not error.  Compilation...
Hi to all, my experts they all worked but since yesterday I can not drag any expert on the chart and I get the message that it is not possible to load the expert. Do you have any advice? thank you
Hi, Been struggle with StringFind for some hours now and Googled with no luck so... Problem is that the string variable I use (_EventSearch) for search in StringFind does not work? It works if the StringFind have an EXACT match (ex: "Nonfarm Payrolls") but not a subset ("Nonfarm") as described in
Hi everyone. During coding of my 1st EA, I always found a solution for every issue that appeared and everything surprisingly works well, so far.... till yesterday. I intend to code another of the functions - specifically: Re-entering a trade, if that trade ends on BE or in loss, but only if the