Expert Advisors and Automated Trading - page 85

To post a new topic, please log in or register
I want to put an expiry on pending orders, which is fairly straight forward using OrderSend. However if the pending order gets triggered and turns into an open order I don't want it to have an expiry. Is this the default behavior or does the order need modifying once it has become an open order?
All; I have a robot that I ran optimizations on, and that I started trading on a live account. It worked for a couple of days, and then stopped working... Didn't make any changes to... Now, it won't trade at all. Has anyone else experienced something similar with their robots? 5 - digit broker Tom
Hi,  I need to deb an MQL5 EA using tick data that I would create on purpose, so to understand a strange behaviour i have noticed during real testing. If I use backtesting or real testing I may not find extreme situations that make the bug happen again. I know in 2012 it was not possible to backtest...
Hello MT5 programmers. I've been putting together a multi-symbol EA and am sharing the part of the expert that may be of some interest to some of you. Please note that I am no programmer and have only started using MT5 in the last 2 weeks, so the code is by no means elegant nor probably very...
Question 1: I hired freelance coder and he made me EA I closed job and everything was fine. Now I spotted an error, so is it responsibility of that coder to fix the error that I spotted after close of job ?  Question 2: I hired same freelancer again to modify same EA for adding new functions. But...
Hi everyone, I was wondering if someone could tell me if this sounds doable, and please excuse me if the answer is obvious, I am a noob when it comes to this stuff.  I was wondering if it would be possible to bounce a signal from an indicator onto remote accounts, connected with some sort of...
Hi All, I have a problem with my EA that I'm testing ( 15 minutes timeframe ) Sometimes it hit TP from my OrderSend() that already specified "Take profit" value.  it shouldn't hit those TP, if price does not exists, I found the issue only TP but not SL. Please suggest. Thank you very much
Hi, I whant to abort the backtest on a certain condition. E.g. when reached an amount of tests. Has anybody an idea how to realize in MQL5?  Thx and regards, Tom
Hi guys, The function WebRequest is ready for IP V6? I asking because today a client's Windows 10 was updated and the function WeRequest() is not working any more. After a lot of testing, everything gets working again when I desabled IP V6 in the internet config of the windows. The EA uses...
Hello,  How can I set fixed spreads in MT5 backtesting ? It's always floating? Thank you.
Hi, I've been searching & reading a lot of articles of  dll development but no projects seems to be sound.Most of them no longer works. I know how to call c++ dll in MQL but can't find a working/simple solution for calling C# dlls.  Can any of you show  me a simplest example with just 1 imported...
Hi I'm a beginner in mql programming I am trying to program my first expert I need to call zigzag Indicator and do some thing (a code)  after zigzag set last line the expert calculate the number of bars of this line for example (image1) and do some code with this result (number of bars) also with...
Hello guys,  I'm building an EA based on ATR range breakout and real volume with a MA filter. In the previous version the backtest was executed normally, but then i decided to determine the position size through the  ATR to normalize risk. This is what i did:      input double atrSl;double...
hi i m unable to calculate history orders profit and loss in total. but i m very confuse about deals and orders. i tried both but not success. even some success with getting tickets all history from  HistoryOrderSelect . but there is not option to get Profit Value like POSITION_PROFIT. can any one...
i have an expert that open orders on 1 MIN frame.. i want to tweet ( twitter) orders and any modification of opened orders.. my project is to start twitter based signal service... how to do that?...
Hi all, I would like to run an EA that allows me to close an open trade that is X number of lots once the loss reaches Y amount. For example, I might have many open positions with various lot sizes (eg, 0.01, 0.02, 0.03, 0.04, 0.05 etc). What I would like the EA to do is only for trades with lot...
i need something that can keep deleting orders over and over again when spread>maxspread please share your ea/script 
Hi Traders, Plenty of opinion on the 7 year old discussion on which one - mql4 or 5?  My situation is interesting and I would appreciate your views. I have developed a fairly complex but working EA but to scale up I need to do some serious surgery to adjust the EA to run in concurrent time frames...
if(trade.Buy(0.1,_Symbol,ask,0,(ask + (10*_Point)),NULL))      {      int total = PositionsTotal();      for (int c = 0; c <= total; c++)         {ulong ticket = PositionGetTicket(c);            if (PositionSelectByTicket(ticket))            {            datetime open_time =...
input int volume, rsiP, bandP;input double sl, bandD;input ENUM_TIMEFRAMES tf;input ENUM_APPLIED_PRICE bandAP;bool ok = false, closing = false;//+---------------------START TIME CLASS-----------------------+datetime cStartTime(int pstartHour= 0, int pstartMinute= 0){MqlDateTime...
I am able to get to ADX main value ie double ADXDefinition[] int ADXDefinition= iADX(_Symbol, _Period, 14); works perfectly.. But cannot seam to find the syntax to access the Di+ and Di- values have tried this double DiPDefinition[] int DiPDefinition = iADX(_Symbol,_Period,14,PRICE_CLOSE...
Hello all; I switched to MT5 a few days ago - so apologies in advance for my ignorance. My focus  is on multi-pairs (hence the switch to MT5). However I am struggling to get things to work the way I would expect them (probably my lack of understanding about MT5). I am trying to check that a new bar...
Hello guys i am new in metatrader and want to learn some codes the same as OnTick{ } or OnBar { } is there a method that is called each time a position closes in metatrader for example OnPositionClosed { }
Hello, I have the following situation: 1. Have an EA which loads DLLs 2. The DLL needs more extra DLLs 3. I have copied the EA Dll to the lib folder and the extra DLLs to the Meta Trader 4 Installation directory (I don't know another solution, otherwise it is not possible to load this dll) 4....
I have issued a brief for the development of an EA. I am keen to have a solution developed by two separate programmers, and to pay them both. But normally when I select a programmer from the list, it automatically excludes all of the others. How can I allocate the same job to two different people at...
Hi. For some unknown reasons that I have no idea about them, auto trading has been disabled from server. the server that I work with, locate in Iran. I would like to know is there any solution or trick to me for trade automatic with mql5? Regard
Hello, I have an indicator used in my EA with the function iCustom. Actually I use two of them, with two different setting. In the debug mode, when Strategy Tester Visualization window appears, I see two lines showing the indicator with two setting. The problem is that they have the same color. I...
E.A freezes when i try to backtest it on higher timeframes (1D works), any clues? (attached EA). 
Hey guys, I am looking for an EA that will allow my stop losses and limit orders to be invisible to my broker. Can anyone point me in the right direction as to one that already exist or to a programmer? I am not looking for strategy included, just those two options right there. Thanks