Expert Advisors and Automated Trading - page 137

To post a new topic, please log in or register
Recently, I have a big problem. Meta Editor suddenly stopworking and need to play again for continue. Sometimes this situation make alot of risk on my account. I hadn’t this problem until last week, it’s appearnow and I can’t fix it. Recently, I installed 10 Meta trader program atdifferent path in...
Hi, Does anyone know how to check for historical data & integrity on the whole chart in MQL ? ‌
Can anyone help me figure out what is wrong with this Indicator that I am trying to write? I tried numerous methods for pulling the EMA moving averages but at this point, I think the problem is somewhere in the main loop of reading the candles and the buffer sizes of the EMA's. I am a...
I'm trying to use the <> expert advisor in MT4, but every time I load it into a chart I get an 'authorization error' in the top left corner of the chart and the trade does not open. Does anyone have any idea why this could be happening?
‌‌If I buy this bar, and setting stop at low-20 point. C‌an I draw the line as trailing stop line in MT5 EA? When the low higher that move  trailing stop line. Have any example for this case can let me study? Thank you. L‌ike this picture.‌ ‌
Hello all. ‌‌I have been searching forums and reading for weeks to find my answer and am getting no where so I figured I would take a chance and post it  :<) ‌‌I am trying to write an indicator that uses the ExponentialMA() function on MT5 but I cannot get it to work because I am not sure how to...
Hi, ‌ T‌here is a method limit MT4 tester maximal dropdown f.e. no more then 10000$? I find that I could limit dropdown by %, but it is not right for me because when EA earn some money max dropdown will be bigger then I need
Good day all. My questions regard virtual hosted MT4 and what I have access to. 1. Can I write to a file using an EA? 2. Can I retrieve that file? 3. If not, can I write to a journal and how do I retrieve that journal?
Hello,   does anyone have an idea, how to bring the ticket number into a combo box? i have several pending orders, and want to bring them into a combo box   any code idea? want to use the defalt combo box  https://www.mql5.com/en/docs/standardlibrary/controls/ccombobox  i read the documentation, and...
Hi. I'm trying to translate an EA from MQL4 to MQL5 and I'm having some trouble. There are some functions related to Order that I don't know how to handle. To name explicitly: OrderStopLoss, OrderModify, OrderSend, OrderTicket, OrderLots, OrderClose. What should I do to the things these functions do...
Hello , a‌nybody has an idea how i can publish my arbitrage EA, the automatic check didn't pass although I have checked if the volume is suitable, i'm oppening 3 positions EURUSD EURGBP and GBPUSD. the automatic check fail to open EURUSD and EURGBP from GBPUSD chart. ‌
Sorry for the newbie question - but if I have an EA attached to a chart (e.g. MACD sample EA on EUR-USD chart) with autotrading turned on, and then I close the chart - is the EA still running in the background? Or does the EA stop once I close the chart?
When using indicators within my EA, in strategy tester when at high speed can notice a flashing pattern from the indicator. I'm guessing it's because rates_total < 100?‌ Why does MetaTrader provide such a poor implementation when used within an EA? This is effecting my calculations.‌ Here's an...
In a symbol's contract specification from the "Market Watch" there are two properties: G‌TC mode and Expiration. After pressing F1 and you can see that help says: ‌Type of orders — types of orders placed          (I think this is the GTC mode) .‌... ‌Expiration — available types of expiration of...
Any advice on deciding this?‌ Best I can come up with i: total = 0;      double div = 1;      for(shift= ArraySize(close) - 1; shift >= 1; shift--)      {         total += (close[shift] - close[shift - 1]) / MathPow(div, 2.0);          div++;      }        if (total > 0)         direction =...
I'm new to EA's. I've decided which to open, buy/sell. How do I only open at 50% of my equity? I'm guessing Equity * 0.5. But that does not get me the amount of pips. Thanks.‌
All my solutions just overwrite itself.
I have written an EA that uses the iCustom function to call values from 3 BufferArrays from a custom indicator that I also wrote and then the EA decides to enter or exit trades based on these three values. I can confirm that the EA and Indicator are working properly because I have tested them on a...
Team, P‌lease, help me with Sites/URL where I can get History Data for EA Testing and Optimization
Hi, I'm attempting to plot the bid/ask in a separate window in real-time.  However, the buffer lines do not draw in the separate chart window.  What is wrong in the code?  Thanks.
How do i add in another 2 new condition to the below code, Thanks so much in advance... ‌ A‌dd in new condition ‌ B‌uy 1‌0ema above 50ema‌‌ & 2‌0ema below 50ema ‌ S‌ell ‌1‌0ema below 50ema‌‌ & 2‌0ema above 50ema ‌ ‌    string EASignal = "";    if (CCIa > 0 && CCIb > 99 && MACDSignal < 0)    {...
  ea (32   1 2 3 4)
I have a problem with my robot.   Can someone interest it pls? Position is closing automatically. Also, I want you to open the position when the ea bar opens and intersects, is it possible? Without the bar closure.     Thanks in advance
I'm creating buffers using: double LowsBuffer[]; int copy=CopyBuffer(indicatorhandle,1,start_time,stop_time,HighsBuffer); Do I have to delete them? Thanks.‌
How should I use PositionsTotal() to return the number of operations at the symbol (chart) applied and not the total? (MQL5 code) For several reasons I need you to be as well. I don't want the total, as I do not wish to take into account manual trades in other symbols. Thank you in advance.‌ int...
I want to apply a template on a chart other than the default chart for _Symbol.  I can successfully create a new chart and pass that chartID down to a function of mine which is supposed to apply a template in the Template directory, based on a constructed name, to the new chart. ‌In the debugger I...
I wish to create an array: const int profitsSize = 32;‌ double potentialProfits[profitsSize]; Is it possible to share this array with all instances of my EA? It's so the EA's can decide which currency pair to open, the most profitable one. I also need to share an int‌ too(profitIndex) so each EA...
In my indicator I'm using ArraySetAsSeries(Buffer,true); for series access. If I access the buffer from my EA with iCustom how can I access the series order correctly?‌ Thanks.‌
In indicators  close[] is provided by OnCalculate() function. ‌Can I get close[] array from my EA?‌ Thanks.‌
How could I initialize a static member of a inner class? I could not get information about that in the documentation nor in the forum. ‌ class Outter { static bool logical; public: class Inner { int integer; static float real; };...
I am currently subscribed to the signal <Removed> which is supposed to be incredibly accurate (99%) on a floating spread account through avatrade.  Yet I have seen multiple small losses develop which don't show up on his track record.  Previously I had the same issue with other signals.  These...