Expert Advisors and Automated Trading - page 306

Just unpack LogViewer.jar from ZIP-archive in some folder. Description is available in Russian topic - https://www.mql5.com/ru/forum/226382. There are just a couple of screenshots in order to explain to use it. Hope it will help to somebody too.
Hi, i need to find our which day of the week was a previous candle in an EA MT5 start and finish time datetime timeC[]; ArraySetAsSeries(timeC,true); CopyTime(NULL,0,0,1000,timeC);  string t=timeC[500]; Print(EnumToString((ENUM_DAY_OF_WEEK)t));  //??????? looking for a result like Monday,tuesday,......
It turns out that optimization using remote farm network agents blocks when a DLL is available in the code. The exact message is (are): And this makes sense to me. I fully understand why Metatrades would do this. So my fix, for when I use remote agents, is to use a compiler directive. When the...
Hi, I'm trying to develop  a Walk Forward test in my EA, but i'm running in a problem. I can get the statistics of the pass inside the  OnTesterPass() via frameadd, but i cant pass an array of object to frameadd.. Then I try to get HistoryDeals, but it returns a lot of deals, but for the symbol I'm...
Hi guys, Need some little help.. Does anybody knows a smart way to detect EA runing on a MQL Virtual Server to allow desactivating Objects functions.. Thank to you all..
Hi. I have this EA mend a Family member have been working on for a while now. It works great but once in a while I get an error "order failed [Off quotes] We have been trying to fix it with no luck. Can someone please assist to sort out this small issue. I have added the EA in mq4 script if anyone...
Check this program I am trying to get the values of the Stochastic #include <Lib CisNewBar.mqh>CisNewBar current_chart; // instance of the CisNewBar class: detect new tick candlestickvoid OnTick(){if(current_chart.isNewBar() > 0){int stoch = iStochastic(_Symbol,PERIOD_M1,5,3,3,MODE_SMA...
I am opening this topic in the hope to collect useful information about the advantages of object oriented programming versus procedural programming. Also, this topic is language independent as mql4 and mql5 offer the same OOP language (except some new advanced features not yet available in mql4 at
Hi, cananyone give me a suggestion? I am preparing an EA for CFD in MT4. The EA  would mostly use limit orders. But when Imanually put limit orders with take profit I see that often there is aslippage. In my calculation it redcue gain of 20% compared to gain without slippage.  So,  in the EA,...
Hi coders, How can I quit a specific pass on optimization and go for the next one? Thank you
for(int x=PositionsTotal();x>=0;x--){      ulong ticket = PositionGetTicket(x);            if(PositionSelectByTicket(ticket)){         string positionGetInteger_Type ;        // switch syntax         switch((int)PositionGetInteger(POSITION_TYPE)) {         case 0:positionGetInteger_Type = "Buy...
  ROBOT WITH M1  (4)
Hello I have a robot in MT4 which works fine with all time frames, except M1, no outputs, no trades, why is that ??
Olá Estou tentando fazer um EA MQL4 que está rodando sem erros e até abre posições de compra ou venda mas o ST e o TK não são preenchidos Esta são as linhas  :   result=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"EA tresButton.mq4",16384, 0,Blue);...
Hi,  I am having some issues identifying the tops and lows in a indicator. Can someone give me a hand with this?
I would like to make a robot for placing order and close,  Any one can help in this regard. please contact with me.
Hi. I have indicator for binary options which work on forex charts. Unlucky on BO charts gives less ITM than forex. (65% on BO charts and 74% on forex). There are 120 trades a month. Expiry 5 minutes. Indicator works well, doesn't paint. I was playing before on GDMFX manually but they do not let me...
Hi all. I'm trying to built a 'relative price index' based on a number of major world Indexes: S&P500, DAX30, EUR50, CAC40, SWISS20, JPN225 and UK100.  My problem is that the calculated output is not reliable. Sometimes it works but often the indicator skips data and the average price is not correct...
Hi All, i am trying to convert double to string in MQL5, the NormalizeDouble is such a failure as it get numbers such as 0.07000000000000001 and 0.9399999999999999 i have created the below function, but it can only filter our cases as 0.9399999999999999, but fails with 0.07000000000000001  double...
Hi guys, i'm starting now an  Writing code to indicators, and experts so far. Coding and indicator i was able to use, different types of indicators... to search a better point to help my  decisions..and everything is normal, but (lol), and i say BUT, trying to translate this to an expert, oh gosh! I...
Hi, I am looking for a sample of MQL5 EA with an indicator calculated entirely with code located inside the EA. And that requires reading historical data. Or said in another way not from iMA, etc. Regards, Pierre
Hi guys, Do you have any ideas for reducing EA requests for MT4. Last year i got my account disabled for having too many requests. Almost all of my code is in the OnTick function, but I think I should change things. Any advises? Best Regards Stanislav
Hello Yesterday all my Market eas (downloaded from Market, free or paid) went Off with a log message that it cannot be loaded from the  Experts\Market directory. This is not the case for my own-made eas still working fine. When I update or reload any of these eas it's working again fine except for...
Hi there, I tried to write my first EA today and everything seemed to work ok apart from that I wasn't able to specify a lot size for orders greater than 0.1 on most symbols. I'm using the following code to open a buy:  trade.Buy( 0.1,NULL,Ask,Ask*0.992,Ask*1.006,NULL ); where trade is a CTrade...
hello i can not find iMAARRAY() in MQL5. what can i do ??
If someone can help me I want to do a program (convert editor) where I can write in excel language program  and have the ability to do the conversion to MQL4 / MQL5 automatically and thus have a robot ready to work in MQL4 / MQL5 doing automated transactions. Thanks 
Hi all, I am trying to write an EA that will monitor my account and then close all orders based on AccountEquity()+Target$. The idea is the EA loads and sets a variable that represents an equity target.  It also sets a variable to compare order dates to by using CheckDate = TimeCurrent().  Then on a...
Hi guys,  I use my MQL5 in Play On Mac on MacOS 10. And when I try to apply backtest my least backtest is 1HR. I Need 1min, 5min, etc...  How can I configure this ?  thanks in advance!
Hi, First post here, and sorry in advance because i will my problem is trivial... I have this code and don't understand why I get only "0" values for all the data I try to get back from my opened positions. If someone can help, thank you in advance. for(int i=PositionsTotal()-1; i>=0;...
Hello, is there outside an ea example where i can see how the checks were implemented for the validation? There are function but i dont know how to use them. Did i have to change the variables inside these functions into my variables?  only need to copy the function in my ea?? How to implent this...