Expert Advisors and Automated Trading - page 15

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
void maxloss(){ int total = PositionsTotal (); int orderType = ( int ) PositionGetInteger ( POSITION_TYPE ) ; double equity = AccountInfoDouble ( ACCOUNT_EQUITY ); double Lossdifference = balance - equity; NormalizeDouble (Lossdifference, _Digits ); if (equity > equitymax){equitymax = equity;}
Please can someone tell me about these results? Why is the sharpe ratio so high
Am a python programmer i programmed a triangular arbitrage bots for cryptocurrency. Now a good deal drove me to forex trading i want to build a triangular arbitrage bot. i tried to understand how to do triangular arbitrage manually on MT5 before building the EA bot for it but i understand None. i
what do you think about this: I'm doing it for other days .... but think I've hit hard with this one... I'm now testing with other symbols and random days (its all from a random day). This result is for 1 h time frame for 1 day
Good Morning to all members, I have coded a Cross Moving Average EA. And I want to activate a trailing stop when trade is in profit the trailing stop must be set at a certain level after open price for buy or below open price for sell.the problem is that the trailing stop does not activate when the
Hi, I'm trying to run a optimization of an EA on my VPS , but for some reason it's only running 1 core while I have 24 cores available. I tried another EA and it does the same so it has nothing to do with the EA. Even when I have only a couple of tasks it doesn't load. Anyone know what the problem
I'm having a problem using the MetaTrader 5 API to retrieve trading transactions from history_deals_get . Although the API works fine for most transactions, there seems to be a constant delay in the availability of newer transactions. For example, transactions made a few minutes ago are not
Hi Please help me out to debug problem/error in my code. I am getting different values for Highest and Lowest prices, though the data set is for the same period. The CurrOpen, PrevOpen and PrevClose are calculated correctly on each NewH01 bar, but Highest/Lowest prices are changed. Relevant section
hi guys how can substitute OrderType() in mql5 ? thanks