Expert Advisors and Automated Trading - page 64

To post a new topic, please log in or register
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...
I have tried the following code in MQL5 but getting errors. This code was I guess from MQL4. Code: int OnInit(){// if you don't want to execute on the first tick  IsBarClosed(-1,false);  return(1);  if(!IsBarClosed(0,true)) // true/false here allows to keep old bar for check again later in the code...
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 want use different iMAs and then I want read iMAs values. The results is very different values (see chart). How can I read the previous and last data? Thanks.
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,...
Good morning, I had a strange behaviorusing the CopyRates function in MQL5. I tried to load some Rates using the CopyRatesfunction for a specified Symbol (CustomSymbol). The requested data is on aPERIOD_M1 and represents two months of rates starting from the SERIES_TERMINAL_FIRSTDATE of the Symbol....
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.
I read in here: http://forum.mql4.com/56115 that someone had the same problem in build 500 and also in build 600. I have the build 600 and I'm having the same issue. My Expert Advisor is sending the orders just once but the terminal is opening the orders twice. Have anyone had the same problem...
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;...