Expert Advisors and Automated Trading

Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
Can anyone help me? I want to create code using a Moving Average that compares the closing price of each candle. Example: Buy if the closing price of candle 0 increases x% from the closing price of candle 1, and Sell if the closing price of candle 0 decreases x% from candle 1
Hello, what happened to http://ec.forexprostools.com/ this link is not commercial neither advert I dont see why moderator should delete it. I am trying to access the rss news feed on the link above but I am getting " You don't have permission to access / on this server. " what is the new alternarive
for the life of me, I cannot accurately get the upper and lower bollinger bands. I apply my code and when referencing with the same input settings on the real-time chart, they don't align! The upper is in sync with the middle bollinger line (average). Here's my code: - CopyBuffer function should be
Hi guys, this is topic often discussed. However, I cannot get the strategy tester started in batch mode from the command line. Can anyone held? Here is my ini file: [Common] Environment=--- MQL5Login=programminggeek MQL5Password=--- Login=--- ProxyEnable= 0 ProxyType= 0 ProxyAddress= ProxyAuth=
  make a new EA  (1)
i want to build a Ea for MT4 and MT5 but i dont have the skils...can somebody help me for free...? is a very simple EA
Good morning, I would like to know if anyone has already tried to write some MQL5 code to determine the high and low of the current candle. Thank you
Dear All i was trying a trading strategy to buy or sell all the USD Currency pairs together, i only check the daily strength of the USD, then i take decision to buy or sell (open 7 positions), then i check after so many hours, sometimes waiting for days looking  for total positive profit after that...
  Bug in strategy tester  (35   1 2 3 4)
Hi there. I searched the forums but could not find an answer or similar existing topic. The issue I have for a while with MT5 is freezing after selecting "Run single test" from optimization results window. The version I have is latest version from my broker (version 5.00 build 4153 dated 22 Jan
I am trying with this part of code to add to a string array and to testers marrketwatch forex and crypto. I do not understand what i am doing wrong.. litle help? string symbolss[]= { }; int OnInit () { int total= SymbolsTotal ( false ); Print (total); for ( int i=total- 1 ; i>= 0 ; i--)
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Hi, Can anyone help with calculating indicators within a for loop. I am trying to call out the moving average and atr indicators within a loop of bars in a chat. I already calculated the indicators handles and set the array for each indicator as a series in the "Oninit" function. It keeps saying
Hello, I've Googled extensively for this answer, but can't find it! I've just setup a signal, and obviously the initial lot sizes are based off the % set of the initial deposit, but is this always the case? Ie, the lots don't get bigger as profits are made? It clearly says "use no more than x % of
{ m_trade.PositionModify( _Symbol ,sl,tp); Print ( "ch slb sl=" ,sl, " tp=" ,tp); } // Normalised like: double tp=NormalizeDouble(m_position.TakeProfit(),Digits()); This is inside an EA working with cfd
//CAN SOMEONE ASSIST ME TO SOLVE THIS ORDERSEND WRONG PARAMETERS COUNT// #include <Trade/Trade.mqh> // include Trade library for OrderSend function #define OP_BUY 0 #define Ask SymbolInfoDouble ( NULL , SYMBOL_ASK ) input double TradeSize = 1.0 ; // input parameter for trade size input double
I was testing the ENUM_SYMBOL_CALC_MODE enumeration with the TradeCalcMode () function of the CSymbolInfo class ... I tried EURUSD and USDJPY. I was expecting that (TradeCalcMode() == SYMBOL_CALC_MODE_FOREX) Becouse (Leverage()==200) But however (TradeCalcMode() ==
Hello everyone. I have a problem that is really driving me crazy. I don't understand why the if of the while is not activated. I already checked (with the prints) that the values are valid enough to enter, but it doesn't happen and the while continues executing skipping the if. Can someone explain
Hello, I want to know if anyone else is having this problem. Since last update on mt5, my bot is running into problem when backtest in real ticks. When I start the backtest it goes normal, the cpu goes to 100% while the memory is loading each agent, normally it would be 100% CPU and about 40% of
How do I use ChartRedraw()? I have my comment/OSD function like so... and eqplus iStartLots and Spread is in ea inputs. void osd2() { Comment ( "\n Profit Target = $" + DoubleToString (eqplus, 2 )+ ", Minimal Profit per Trade = " +
input int Magic = 113 CTrade trade; int OnInit () { trade.SetExpertMagicNumber(Magic); return ( INIT_SUCCEEDED ); }
Hi guys, how do I deactivate an EA's license. I tried to delete the EA from the trading terminal but it didn't work
  Better NN EA development  (859   1 2 3 4 5 ... 85 86)
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...
Dear MQL5 community, I am using the MQL5 calender function directly from the Metatrader platform and I have the following issue: Currently, I am using this specific code to get the required calender events ( The variable "EU_code" is an input variable and can be "WW", "EU", "US", "JP" etc. )
  Expiry code  (3)
Hello, I want to add a expiration code to my MQL4 EA. The EA trades on indicator basis. Whenever the indicator prints a signal, at the candle closure it will place the trade if the 2nd condition is met (price needs to be above the green line for a sell, and below the green line for a buy). However
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
  RangeBreakout EA  (6)
Hi All, I have this code which trades breakouts. Id like to reverse it so it buys on the low and sells on the high. Thanks in advance #define VERSION "1.0" #property version VERSION #define PROJECT_NAME MQLInfoString ( MQL_PROGRAM_NAME ) #include <Trade/Trade.mqh> input double Lots = 0.1 ; input
the strange thing is, the expert just did well in testing, it was able to trade in tester without problem. now no matter what I do, it pops a  [trade disabled] error each time EA tries to open a position. trade disabled in tester ??? how ? and why it happens suddenly, without changing anything ?...
Hello, I am trying to use extern instead of Input because i am changing it value later on the code. I am getting an error : extern variable initialization is not allowed
Hello, I'm reading about encoding strings in this https://docs.mql4.com/common/cryptdecode but the problem is, how can I decode it in another language like C#? It seems ChatGPT can't help me
Hi, do you use any tests when push new commit on git? How can I run strategy tester in git and for example check if my algo failed (i have an pointer which i could check) ? my algo gets bigger and it is annoying even do some smoke test. regards szaqual