Expert Advisors and Automated Trading - page 345

  GoldWarrior EA (Zigzag Trading System)  (90   1 2 3 4 5 ... 8 9)
Please find attached the GoldWarrior EA created by Tartan, Nemo and others for MT3, converted to MT4 by Star and improved and fixed the errors by Beluck. And be informed that this EA is working together with DayImpuls indicator attached. There are many versions of DayImpuls indicator. This EA is
Hello, I have an EA which slow but steady turns buy/sell trades into losses. I want to switch buy orders into sell and sell into buy. there is that search function in the meta editor. if I know rewrite all 'buy' into 'sell' and the other way round, will that be enough?! -I have standard market...
[Deleted]
Dear Metatraders,  I am trying to write a code in MQL5 that will allow me to calculate the current profit on all my open trades, In back-testing, the OrdersTotal() is giving me 0 knowing that I have multiple open trades,  Any idea what seems the problem ? Many Thanks
Hello, I created a Custom Symbol and imported BARS and TICKS. That's okay then. But when running a backtest I noticed that the High Ask and Low Bid lines were not correct and when checking the High Ask and Low Bid values ​​are always ZERO. But if I did the same with a Symbol other than...
[Deleted]
  Ghost-functions?  (11   1 2)
It sounds a bit sarcastic, maybe impossible to do as well, but if you can give any trick/workaround, please have a look!  (the red-colored lines gives you details of the areas in discussion). The goal is to : not to import functions, not to define functions in global scope, either....
I am trying to typify a template function with an object pointer like you can see below. But I always get "invalid pointer access". //+------------------------------------------------------------------+//| Class...
When I include symbolInfo.mqh, it causes errors (attached).  Most of the errors says, "const modifier not allowed for nonmember functions".  So far, I have the below: #include <Trade\Trade.mqh>#include <Trade\SymbolInfo.mqh>#include <Trade\PositionInfo.mqh>#include <Trade\AccountInfo...
I have developed a 1 hour ea that works fine, however I am looking to add to positions if they are trade positive by x pips over the 5 minute time frame. I am having trouble trying to work out a simple way of configuring this: double PriceAdjust=(iHigh(NULL,PERIOD_M5,1)+iLow(NULL,PERIOD_M5...
For some reason I can't find a solution. I am trying to declare an optional MqlParam parameter In a method: void F(MqlParam &parm=NULL)    // here the = is not accepted because it's a reference parameter. I try to make the parameter optional { } but the compiler will not accept an assignment to a...
Hello, English isn't my native language, but I'll try to get by.. I'm a little bit new to mql4, but have been trying to get everything going, I was testing an idea, then I needed to test a progressive lot size, my EA opens one trade at a time, so I wanted to check if the previous closed trades hit...
I get the following warnings when I try to run a backtest on a simple EA. If you have any ideas about why I am getting these messages please let me know. Is there a resource that defines these error messages? Thank You
Hi, I wrote an ea and have run an optimization on Period 1 ( In Sample)   How can I test all the strategies on Period 2 (Out of Sample) at once, without having to do it manually for each of them. Is there a tool, software etc.. tha provides this feature ? Thank You,
Hello, I have this EA that auto change the timeframe every 5 seconds (M1-M5-M15-M30-H1) This is almost perfect, but I have one request, can you please help me edit this so that it change the timeframe of all pairs. Because apparently it only change the timeframe of attached pair. Thank you very much...
Hi there, I created my first expert advisor ( I'm an experienced programmer but new to mql5 ) and it performs very well on the strategy tester making lots of profit. However, when I use it on my demo account it quickly makes a loss and never even looks like making a profit. I'm using the Bollinger...
I would like help with this EA, when I set the "Risk%" parameter of this EA it opens 2.00K orders in the index. I am testing with 1% risk, but regardless of the value of risk and the value of the balance it always opens 2.00K, I will leave below the part of the code that deals with "Risk%", please
I like to develop ea or script. but my question is. is it possible to come up chart . My problem I can see the details chart. But not working. so I want to come up the list of chart in my script or ea. how it is possible? check the screenshot
Anyone know a beautiful giude of backtesting and optimization mode ? Beacause i want know what testing for know what, A good empirical guide/articles/site/ecc Thanks at all
Hi all, Assumed the stratergy is simple. It is based on the RSI cross over. If crosses over 70 -> go short. If crosses under 30 -> go long. My question: In this case will you use the shift1 for previous and shift0 for the current, or use the shift2 for previous and the shift1 for cirrent? I've seen...
Hi, how can i realise it? I want to sell an ea to market. but the moderator told me that. Please do not close the product strictly, you can just show message in logs. I have an Ea with different indicators working. Now i want to check the indicators parameters are correct....
Subject: Error message: failed modify #2 sell 0.10 EURUSD sl: 0.00000, tp: 0.00000 -> sl: 1.22924, tp: 1.20924 [Position doesn't exist] Hi, I''m new to mql5 and I'm having an issue getting the same error message over and over again no matter what I try. I have not been able to find any previous
Hello,  I'm trying to write a simple Expert Advisor or Script that will send an overview of my current account status via an e-mail message.  However I want to run this EA or Script on a specific time. The only way I know is using the " OnTick() "function but that will be a nightmare because my...
[Deleted]
Dear Metatraders, I am receiving an error when trying to execute an order, it is giving me an unknown retcode 0 in the backtesting Any idea why ? Many thanks, //+------------------------------------------------------------------+//|                                                PlacingOrders.mq5...
Hi, first: Sorry if it is a noob question, I started to learn mql5 last week so i'm trying to do... Basically, i have two EA: One that I first run on "history data" mode (metaeditor: debug->start profiling on history data), which will "train" with data from the three last years. When the DeInit...
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...