Expert Advisors and Automated Trading - page 152

Hi I try create EA. in my EA every open position ticket save in array and close with their ticket too. But i got some error and i do not know how to do it. first: this is my open trade function. from my source for training MTRequest get error. also i do not know how to get ticket after position
//+------------------------------------------------------------------+ //+---//+------------------------------------------------------------------+ //| TSI_CD EA.mq5 //| Kamau Muchiri //|
My EA's keep failing when I try to UPLOADE them ,they say the are no trade operations ,while the EA does have the trade operations , I have even add all the trade operation an my latest EA But it also failed , what am I missing
In mql5 , I need help from everyone, I am in need of a code that when reaching the moving average of 20 periods it sell or buy as required, this only once when reaching the 20-period averages and don't buy or sell all the time, you understand, this sale or purchase is just one time when reaching
Hi, I'm converting an indicator written for MT4 to use it in MT5. It has a lot in small functions which uses Open[], Close[], Low[] and High[] global arrays in MQL4. I found that there are no equivalent of them in MQL5. Any suggestion how can I use those arrays? Hadi
Hello friends i'm trying to creat an EA that is based on pending orders and now the problem is I want all pending orders to be cancelled after 5 minutes of being placed or to be cancelled if they are not yet open orders so please help with the expiration #include <Trade\Trade.mqh>CTrade trade;void
Hello, for my daily trading, I am using one expert advisor as a trade assistant . Calculating the position size and the SL. Furthermore I am looking for a possibility to additionaly use an ea sending my trades as a signal to a telegram channel. I do have for this also an EA, but I can't use them
Dear Community Please help me. I have used an EA that was created by someone on the freelance section for about a year. Since last week, when it started creating multiple (hundreds) orders with the same parameters. I completely uninstalled MT5 and re-installed it. Now when I go to "Open Data Folder"
I run my EA in the MT5 strategy tester and at the beginning of the test no errors are reported but then at some point I start getting always the same error : [no money] [not enough money] I don't understand where that come from since my EA take a trade one at a time and the first time the error come
Hi. Experts !! Who can help me with creating an Expert Advisor according to my strategies . I already provided documents that elaborate on my ideas
//+------------------------------------------------------------------+ //| Shark_MultiSymbol Expert Advisor.mq5 | //| Copyright 2022 , MetaQuotes Ltd. | //| https://www.mql5.com |
  Multiple Optimization MT5  (30   1 2 3)
Hello folks! There is one thing that I don't understand (after reading the documentation), and it is: can an EA be optimized in MT5 for different symbols simultaneously? I know I can test a few parameters for different symbols with "market watch", but I want to get the single parameters that work
I'm currently working on getting calendar events and coded the following , but it gives me an error of "array out of range in 'file.mq5' (113,26)" in journal when I backtest. void OnTick(void) { //--- country code for EU (ISO 3166-1 Alpha-2) string US_code= "US" ; //--- get EU events
Hello I cannot connect to my provider for the trade copier
Just try to draw a Vertical line on BUY operation using BBands. I attach the code. Many thanks in advance
I can't use the strategy tester on the cloud, it randomly stopped working. I have sufficient balance, there is no issue with connectivity, I am using a VPS and it shows I have plenty of bandwidth. The strategy tester works fine on local agents but it is really slow so I want to use the cloud
  Multiple Trades  (4)
Hi Is there any free Robot/Script where I can take multiple order at once in a currency pair using a fixed lot size. Like if I want to take 15 trades in EURUD pairs using 0.01 lot size. Thanks
Hi coders. After running a walk forward analysis, lets say my 'walk forward efficiency ratio' is acceptable. After that I'll have x-period optimized inputs. Question: which inputs from which period do I need to consider to run my EA no live account? Maybe the inputs of the period with the best...
  Beginer question  (3)
Hello all, I was wondering if anyone can help me with an answer. I have an expert . For example if i run it today it is working fine, entering in all the trades, doing the things how it is suppose to do , but when i run it the next day it doesn't enter trades at all. I am doing something wrong or it
When I call MetaTrader5.initialize passing in the exe file path and the login credentials, it is opening the Metatrader terminal with the last logged in account ignoring the one passed in the initialize method, then it errors out with error code: (-10003, "IPC initialize failed, Pipe server didn't
I am running two instances of the same EA on two VPSes in two different data-centers, each with a different magic number. Tonight both EAs placed the same buy stop order (with different magic numbers) using this code: CTrade trade; if (!trade.BuyStop(lotSize, entry, _Symbol , sl, tp, ORDER_TIME_GTC
[Deleted]
Dear Members I am trying following code for Pullback LONG, but feels a bit complicated. Also they give false signals when in RANGE. Can someone suggest a correct and simple way to find pullbacks? bool CMACDCross::Pullback_Long( const double pPB_Level) { bool Rule1 = false , Rule2 = false
In this video, I'm showing you a simple, high win rate MACD indicator strategy The Moving Average Convergence Divergence or also known as the MACD, is one of the most simplest and popular indicator used by traders. It is a trend following indicator that shows the relationship between two moving
Hello, New here, I slowly learn how to code my EA on MQL5, but now I'm stuck on a problem and I don't find the solution. I made an EA and this EA can open a trade on different TF, but only one trade at a time per TF. So, it's running and analyze the TF 1min, 2min, 3min, 4min and 5min. It can open 5
i wish to include this file TrailingMA.mph in my auto-trading how to initial its function
  Latency Monitor EA for MT5  (15   1 2)
Hi. I need help to write an EA that monitors latency of the exchange to create/alter orders. For example sometimes it takes 10 seconds to change a Stop Loss and they say it's my internet but I'm sure it is not. Idea: Create and change orders that will never be executed and measure how long the...
  Dynamic Partials  (2)
Hey, Can anyone help me with dynamic partials system? I want the partials to work in such a way: 1:1 trade goes BE and takes 20% TP, 1:2 it takes another 20%, 1:3 it takes 60%. Thanks in advance
Does anyone have a basic moving average pullback EA that I could use as the basis for coding a new EA?   The functionality I am looking for is:   - Price passes through a moving average, and then a trade is entered once price moves back and touches the moving average again.     Thanks in advance,...
Hi I have tried to create need RSI EA with an moving average applied to an RSI, (using simple moving average instead of rsi line) Sells at a (MA)downward crossing of an oscillator overbought level, buys at an (MA)upward crossing of an oscillator oversold level but the EA IS NOT WORKING
Hi, Could anyone help me to set the levels for a RSI indicator that I'm creating/adding during EA OnInit() event ? Just to be clear, I want to do this during the EXPERT execution, not during Indicator initialization, as I'm getting those limits as parameters from my EA. I can add the RSI indicator