Expert Advisors and Automated Trading - page 217

Hello, I do not understand, I am using an expert advisor hosted on MQL5 VPS which is supposed to have the trailing stop set, but when it should be triggered it does not. I read that you have to keep your MT5 instance open at all times for trailing stop orders to pass. So if I understood correctly
I have a new VPS with about 20 EA's on it. I am at IC Markets. I loaded the EA's first and then bought the VPS service on MT4 platform. Does anyone know what I did wrong and how I can fix this? Thank you for your help. :)
this is my code. i jast want EA after run, buy 0.1 lot of symbol in Ask price. but this code dont work and show me 10013 return code. please help me. what is problem and how i can solve it. tnx. int OnInit () { MqlTradeRequest request; MqlTradeResult result; request.action =
Hello guys, I would like to know regarding the possibility of this, I have seen some EAs that could open a buy order exactly at the OPEN price of the next candle stick, as we all know that forex chart is formed by bid price, not the ask price. Is it possible? Thanks in advance
In the OnInit of my EA, I use this loop to retrive previous candlestick's open, close, high, low, volume and time values: string candleValues; for ( int i = Window; i > 0 ; i--){ candleValues = StringFormat ( "%g,%g,%g,%g,%g,%s" , iOpen ( _Symbol , PERIOD_CURRENT ,i)
I have 32 gigs of memory and I cannot figure out why I cannot optimize my strategy because it says it cannot generate ticks. <ex5 file deleted>
Hi my EA is failing the automatic validation with these errors test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no trading operations I have no issues when I
Hi Everyone, I am struggling to get my EA to closes trades based on price closing below (for long trades) or above (for short trades) a weighted MA. I would like for the trade to be closed ONLY if price closes against the moving average. Currently the EA only seems to close the trade once TP (600
Hello, just wondering if you you know any good MT5 Brokers with good history data?  So far i found:  Admiral Markets (very nice history data for forex as i can tell so far) ActivTrades (less history data, but maybe to compare EA for Spread only broker without commission) RoboForex (less data then AM...
  Ichimoku EA  (5)
Hi, I have a very good EA based on Chikou Span ( Ichimoku ). But I need something to be add. is there anybody who can support me
Hi, Thanks for your attention. I paid a programmer to code me an EA that does analyzes via customs indicators when the price closes out of Keltner Channel . I wish to find a way to avoid indicators calculations when the price is inside the channel, so it could skip useless calculations. Any help is
Hello Why does CopyTicks return ticks that are older than the [in] date parameter? From the documentation: [in] The date from which you want to request ticks. In milliseconds since 1970.01.01. If from =0, the last count ticks will be returned. I have a tick helper class that calls my CopyTicks
I have an operation custom symbol which is "XYZ" the code to feed data is : MqlTick tick[ 1 ]; ArrayResize (tick, size); tick[ 0 ].ask = Value1; tick[ 0 ].bid = Value2; int ReplaceTick= CustomTicksAdd (ymbol,tick); now ticks are plotting candlesticks on chart using MqlTick tick but when i try to
Hi, I just downloaded an activation of an EA purchased in the market by mistake. Is it possible to revert this? Thanks
[Deleted]
UPDATE NOTE: I have found the solution, with the help of Drazen ( https://www.mql5.com/en/users/drazen64 ) from the forum. Dear Forum Members I am having challenge of passing structure Array as 'parameter reference' to the test EA. Following is the CLASS code with relevant sections class
Hi, I try to create custom indicator that give arrow signal if the conditions are met. Using MA and Stochastic. If I run the indicator independently there is no problem, but when I try to call the indicator from EA the values is not the same with what the indicator show. My indicator code as
Hello to you. I looked for solutions and tried them out, but I can't seem to fix the problem. I created a first version which does not pose any problem, everything works. I add new handles and strategies without changing the code structure, just new entry and exit. Certainly entering that I had
Hello everyone! First of all, forgive me if this topic is repeated, but I did not find anything similar. I was wondering if it is possible to rebalance and redistribute optimization work based on fast genetics when some agents finish before others in a generation . I have a local network with
I, I think i've found a bug in CMoneyFixedRisk Library. I wrote an EA i try in strategy tester. but on a precise candle my EA stop with this critical error : "2020.04.17 01:17:00 zero divide in 'MoneyFixedRisk.mqh' (97,50)" I've opened 'MoneyFixedRisk.mqh' file and at line 90, char 50 it's the
Hello I have a robot that works on (vps ) But I want to send a notification that he is working at the minute: 40 Please write it to me in one or two lines of code this command (When the minute is 40, send a notification to the mobile platform) Thank you very much
I use an expert advisor which draws various lines on my chart, similar to moving averages and so on. I would like to generate sell and buy signals as soon as price touches some of these dynamic lines. The lines are not necessarily horizontal or vertical. E.g. in the attached images, I would like to
hi i run a EA at broker "Pepperstone" and everyting is ok when i try to move to broker "vantage " i get errors like : 2021.05.26 10:17:28.092 Accounts write file error (112) 2021.05.26 10:17:50.489 Accounts write file error (112) 2021.05.26 10:17:50.489 Network '1147201': scanning network finished
Symbol USDZAR, Sell position. At 2021.05.25 21:16:38 EA closed the position when price was 13.80100, however position was closed at 13.93489. Any explanation
Hi, I've been working on an MQL5  EA for a friend. In my code I've got a snippet at the end of successfully placing an order (see below), notifying the result (from the standard documented MQL 5 MqlTradeResult result structure) to the Experts console and notifying it to email and phone push...
[Deleted]
Dear Forum Member I have few final versions of Indicators, Classes and EA. How can I prevent editing them further by accident ? Something like "PROTECTING" them from further unintentional edits. regards
Hello, Is there an open source EA, developed in MQL5, of a Grid strategy? Thanks, Pierre
Can you do a one-year backtesting with Exper Advisor for the NQ or ES? Instruments. I tried but at most it gives me a few months I suppose it is due to the expiration of the futures contracts, some could help me
"When testing in an EA, we can handle custom events using the OnChartEvent() function, but in the indicators, this function can not be called in the tester. Even if the indicator has the OnChartEvent() event handler and this indicator is used in the tested EA, the indicator itself will not receive...
[Deleted]
NOTE: Surprisingly, it has just started showing calculated values when I have close the CLASS and EA Files in MQL Editor !!! Dear Members Please help me to locate the problem in the code, why Class PercentB_MFI is returning ZERO values, where as PercentB_BB is working perfectly fine. Screenshot
This might seem trivial to many but I'm quite new to MQL5 and haven't been able to figure out how to use ArrayFill() to populate a two-dimensional array. In the code below I want to populate ar[][2] when isBody is true. How can I achieve this. int ar[][ 2 ]; void CheckBody() { for ( int i = 20 ;