Expert Advisors and Automated Trading - page 7

I just realized it after retesting the results with a single test. I rechecked some random passes, they all did not work as optimized results. I rechecked the parameters, and it's the same. I have no idea why it happened like that. My EA doesn't use iCustom or external resources. Since it's not
I had buy an EA in market Autopip Gold EA which works very well on my local machine using, when I migrate to VPS, although I can see that the migration was done successfully, no trade has been placed
Hi all, I tried to find an answer to my problem but couldn't find any. Here is the issue: I launched a free indicator ("GT Indicator"). Now, I would like to launch a Utility which accesses the Indicator. I tried to add the Indicator as a resource: #resource "\\Indicators\\Market\\GT Indicator.ex5"
Hi, I observe the optimizer in MT5 getting slower and slower over time. At first, it shows to need 20 hours for 10000 runs. After 2000 runs it shows 600hrs . Quite often, when all agents are done, the optimizer waits and waits before it starts the next iteration. Is there anything I can check in
I have issue where I am getting the error [Position Doesn't Exist] Below is my function that closes trades. Note: I am using this ea to close trades on many symbols. I have not added check for Symbols, because I want the ea to manage all trades; that were opened by other eas and on other charts
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart () { datetime tBegin = iTime ( _Symbol , PERIOD_D1 , 0 );
Hi All I want to use trail my buy stop and sell stop orders but I encounter invalid price error when using the code below. input double TakeProfit= 5 ; input double StopLoss= 2 ; input double PendingStopTrail= 2 ; int MagicNumber; double Filter= 0 ; int Direction= 0 ; int StopLevel=( int )
I have a relatively simple EA that I'm optimizing and when I run tick data the tester freezes at 99.8% complete and produces no error messages but will just sit there for hours until I stop the optimization. The peculiar behavior is that my agents can process 1 test just fine, but if it has to do
  Slow execution with MQL5 VPS  (11   1 2)
Hi, I started using the MQL5 VPS and it works but very slowly. My first few trades were executed with 25-35 seconds delay. On my PC it works within a second and have also used on a different VPS that worked very fast. Any suggestions would be appreciated. EH 0 08:57:02.167 Terminal MetaTrader 5 x64
Hello, I am trying to build a very simple EA that monitors all open positions and then closes a position if that one reaches 10 pips drawdown .. I am familiar with MQL5 and have written many codes with it, though I am not a professional programmer .. the EA is simply not closing positions at 10
Hi experts :) I'm rather new to MT5, so I have limited knowhow. I'm running an EA, which placed orders incl. TP and SL (all good). However, during marked closure - or that very volatile hour - my broker has high spreads (e.g. 29 pips on EURGBP ), which sometimes triggers my SL "unwantedly". Meaning
Hello. I have a problem with my mt5 platform (pc, windows). When I choose EA Robot I see this: "You need to read and accept the TOS to use this EA". What should I do
Hi all.... I'm working on an EA and it's getting an weird behavior. I created a variable where I can change the timeframe for the chart. Everything worked OK until I added a Panel based on the CAppDialog. - if I change the timeframe using that configuration variable, the EA Exits. - If i change the
I have a bug in my strategy but I can't find it. it's a bug that's been there for days but it's very rare. when I start an optimization, it causes the optimization to freezes and the test stops at a point like 501/10496. in this context, because my inputs are distributed in a complex way for each
Hi, I have an issue... I have no idea on how to overcome this. One EA on a MT5 client have been running for months with good results. Now for some reason it has.Not taken a single trade since July started. Nothing have changed in the settings, just stopped trading. So I setup a completely new and
Maybe a stupid question but what is ACCOUNT_MARGIN supposed to be as opposed to ACCOUNT_MARGIN_FREE? If I print this: AccountInfoDouble ( ACCOUNT_MARGIN ); I get 0.0 returned back from the broker. If I print this: AccountInfoDouble ( ACCOUNT_MARGIN_FREE ); I retrieve my current free margin
Hi, i made an expert, and i desired to play a sound every time the expert buy. So, i added this line, but it does't work: PlaySound ( "buy_alert" ); Note that i hear a sound if i place it inside of the OnDeinit function. But i don"t hear any sound when i place it inside the function that create a
Hello, I am starting to learn MQL5 and right at the beginning I have a problem that I can't solve. The console shows an error that my function has no body, even though everything is in the second file. Help
Hello. I am running the optimizer on my laptop and I have agents linked to my PC. I just bought a new motherboard and cpu with 12 cores. When I start optimization, Windows on my pc starts to hang even when I only use 6 agents. The cpu is around 2%-5%, the ram is ok and it's running on a disk that
Hi everyone I would like some feedback on my code or how I can make it more efficient as it uses several conditionals and loops. I wanted to create a multicurrency news filter for when 30 minutes before and after the current time there is an important news event. For each news event I need its
Hello. Is that possible to do this considering the FileOpen function works with specific directories only
In my EA, I use the following line of code to register its Magic Number: m_trade.SetExpertMagicNumber(Magic); The function has no return value, so is there a generic method to check whether a Magic Number is already in use? I'm looking to block an EA from loading if the Magic Number already exists
Does anyone know how to force MT5 terminal to NOT delete optimization cache files older than 30days? I want to be able to load older cache files into the terminal for analysis of forward results and I cannot find how to stop this deletion of cache files. The only option I'm aware of that the
Hello all, I have coded some EAs before, but I need a little help with this. I've attached MQL5 code to this. What I want to do is to run code every time a new range bar is completed that calls delta, and OHLC data for the range bars from the code. I assume this check would be placed within the
Hello there! I'm currently running dozens of EAs in a real account . They're working just fine, but I notice some EAs perform better historically when they go long or short. I don't want to set them to work only for long or for short positions. The reason is that if I do that, they will go only one
Greets, This has been working for a while now, but today I noticed it's not working as expected. Not sure what's changed (maybe nothing has changed and this has never worked). I basically want to trigger some code when a deal is in profit/loss. It works when the deal is in loss (ie, hits the SL)
Hello All My modify TP/SL code below won't modify sell positions instead I get modify errors. With Buy positions everything modifies as normal, please assist me as to why sell positions will not modify. #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\PositionInfo.mqh>
Hello, I want find minium SL of Positions sell. I have code: But return a value is SL of Last Position. Help me. double SLSell(string type, int magicNumber) { double MinSLSell = 0; for(int i= PositionsTotal() - 1; i >= 0 ; i--) { if(PositionSelectByTicket(PositionGetTicket(i))) { string _symbol =