Expert Advisors and Automated Trading - page 84

To post a new topic, please log in or register
i'd like to have a will_spread  indicator running in an expert the willspread indicator has the sequent settings for SetIndexBuffer: IndicatorBuffers(4);    SetIndexBuffer(0, WillSpread);    SetIndexBuffer(1, Spread);    SetIndexBuffer(2, FastEMA);    SetIndexBuffer(3, SlowEMA); In my expert I use...
<Deleted> Does anyone have the  َArc.mq5 indicator?
Hello, I would like to get opened position price, ticket number and  it's commission and profit. What could be the issue in the code? Thanks in advance. //+------------------------------------------------------------------+//|                                     test_profitcommission_01.mq5...
  Candle Indication (45   1 2 3 4 5)
Hi All I am in the process of turning my trading system into an EA on mql4. I have written a candle indicator that the EA will use, the problem is my entry is on subsequent candles, either the next one to signal or the one after. I and looking for suggestions of how to look at 1st & 2nd candles...
please figure the problem out. thanks a lot. //+------------------------------------------------------------------+//|                                                       移动止盈止损.mq4 |//|                        Copyright 2018, MetaQuotes Software Corp....
Hello, when i call this function with a ticket of a pending order int check_ticket_status(ulong ticket){    if(OrderSelect( ticket,SELECT_BY_TICKET,MODE_TRADES) == true)    {         int otype=OrderType();         if(otype == OP_BUY || otype == OP_SELL)               Print("status filled");...
How to know where is the problem? This expert worked well on my MT4 before to migrate on MQL5 VPS.
Hi Everyone, i want to make a request from you guys, to make an expert adviser from this indicator, you all can check it on attachment, and for EA rule is : 1. buy or sell whenever the indicator arrow is showing, and close all trading that made before (whatever it profit or not). 2. Lot size 0.01 3....
Hi, I'm testing a robot that i have (ex5 file) and it's leaving the test when reach a time of the first day of test: What could be limiting it? Thanks!
Please see code below. I have written code that searches in real-timeALL available markets in MetaTrader and returns their lowest price from thelast 10 bars (1 hour period) as an Alert. It is working however the “Alert” results areshown individually for each market. I need ALL the results in ONE...
Fist of all thanks for any help I would like to know if is possible using result of previous pass on genetic otimization for the next generation,  For example, if I try to normalize the max Profit, I need to know the current max e min price, so f(x) = Profit/(Max(Profit)-Min(Profit)) How can I store...
Hello. I hope I'm able to make clear what i'm trying to find. Let's say I have a trade with take profit set to 15 points. I'd like to keep my trade open if it hits 15 AND keep going to 16, 17, 20... and ONLY close it if it moves one pip back. So, it hits 15, still open, hits 16, 17, 18 same thing,...
How to install Set Files provided by the author on EA for specific charts?
Hello, I created an EA that basically opens positions (in an alternate way (LONG & SHORT) with a Martingale behaviour. The problem is when, for all crosses in which the EA is applied there is a movement due to for example the increase of USD price). All EA open the last step of martingale and take...
Hello, I have an encrpyted .ex4 indicator that is for buy/sell signals. I'm wanting to be able to put that into an EA to open and close trades based on my rules for opening a trade. Is it at all possible to do if the .ex4 is encrypted?  Thank you in advance for any help!!!
Hello there. I have an indicator but I only have the ex4 file no mql. Is this possible to be turned into an automated system still? I've heard there possibly some software which can track the indicators being used. Or am I wasting my time? Before I put a request in to have it made Many thanks
I’ve been working on an MA cross EA. Fast SMA X slow EMA with trend WMA to dictate the direction of trade. It’s works, but DD is large and there a many bad trades. Has anyone got any experience with MA cross? What else have you had success with to help filter the bad trades? 
Hi everyone, I'm new to EA building and am coding some basic strategies to backtest. I'm trying to backtest a few years, on multiple timeframes. When I set the timeframe on Daily and try to backtest to Jan. 01, 2015, the code works perfectly. Then, when I set it to do the same on an hourly chart, it...
Hi everybodyI am trying to find one or more positions  among other positions by their comment or comments  assigned to them before, and close them if they are in certain amount of profit. I know relying on comment is not a safe way but I really need it for backtesting purposes not trading real money...
I tried to compile following code from: https://www.mql5.com/en/articles/260 There is a zip at bottom of the page. But I got compile error: 'NodeInfo' - conversion is not accessible because of inheritance access Elliott_wave_en.mq5 But If i change .Add(NodeInfo) to something like .Add(NodeInfo.Node)...
I'm pretty new to this and I keep getting these error messages.  Can someone tell me why and how i fix them?  I would appreciate any help. 2018.09.20 10:25:38.411 '20958125': Signal - subscription disabled 2018.09.20 10:25:38.360 '20958125': Signal - account complies with NFA FIFO regulations
Hi, I would like to test an EA with 99% history quality on MT5. I am using the server MetaQuotes-Demo and I can not reach 99% quality but 97%. As you can see on the screenshot some historical data have a low quality between 2017-11 and 2017-12 How can I fix that in order to get 99% quality ? Thanks...
If I use the same EA on 2 different accounts...Same settings, same pair, lot size etc. One account margin 1:250 One account margin 1:500 Will there be different profit/loss on these 2 accounts?
Hi there, i was running experts on my demo account and also want to use some on my real account. But when i change something in demo it also changes in real and vicevera. same with closing windows it does it in both accounts. is this normal? Anyway to work around this? else the demo account is kind...
I correctly set up all properties for auto trading in MT4, so in demo account my EA normally is running, but in real account it is exceptional. if output ret = OrderSend(...) , ret>0, that is, but it seem "order success", there is no made conclusion of order. result value of error analysis is code...
again, I have an indicator to draw trend line(objectCreate) depend on the high and low points, then the Robot read the line on the chart; I save the template with this indicator, while testing, no trend line appear, but it is normal in live trade. who can help me ?
Hello, just what the title says, I want to sell an EA that uses custom indicator, can somebody teach me how? Best Regards.
Hi, I use some MT4 experts from mql5 'expert' site (some free, some payed).  Now i wonder: what if the maker of that expert decide to remove the expert from mql5 site? Can't i use the expert than not more in my MT4? Is there some 'permanent' connection necessary between the expert and mql5 website,...
Hello everyone. I know this may sound a bit silly, but I have a very important (to me) question. If I buy an EA from MQL5 market , it is mine forever?I mean, even if the seller stops updates/stop selling the EA? Buying the EA I have it for "all lifetime"? Thanks a lot guys!
Hi. I am spending days and days trying to find a solution for my problem but believe me I can't find any. The point is that the EURUSD automatic validation for the EA I'm trying to publish works fine, but not for the NZDUSD: I've reading thousands of articles, but I still do not have the solution...