I'm performing optimization on MT5 Strategy Tester using H4 Open Prices Only. It's obvious my data is not accurate, as the number of ticks isn't the same for all 28 pairs which are read on every tick. I printed the iTime for each bar for all 28 pairs on the same line from June 2020 to December 2020
Hi guys, I've had a problem. I've written EA, solved nearly all the problems. However I want it start trade from some hour to other: <code removed, see below post> It writes: 'return' - 'void' function returns a value. I'm picking in it a week and don't have a clue what to do with it. Could you help...
Is there any way to know if the EA is running on Strategy Tester? My EA uses the symbolInfo.MarginMaintenance() to make some equations to trade but these values are zero in strategy tester. To work around this problem, I created a parameter to set the margin (to use in strategy tester only) and I...
Hi I want to transfert my EA from MQL4 to MQL5 i have code at MQL4 that not work at MQL5 double tickvalue=MarketInfo( NULL ,MODE_TICKVALUE); How can i wirte this at MQL5
My questions are really simple, it is about the standard library Experts + Trade classes mainly, hopefuly metaquotes devs can answer me. 1) How good/feature complete is the current implementation of the standard library in MT5? 2) How good is it at multiple instances of same EA on different charts
Hello everyone.. This is my first post,and English is not my native language,please pardon me.. I'm trying to build EA and it will have Take profit value based on trading session.. E.g if current hour is in Asian session it will set 10 pips and if it's in Europe session it will set to 15 pips.. Is
From the image, I’ve marked the high of candle index (i) and low of candle index (i + 1). These candles are on the H1 chart. How can I search multiple lower timeframes within the two H1 candles to determine if there are similar consecutive candles that have the same price for the high and low as in
Hello, I would like to add a Trailling Take Profit for my trading robot. Quite simply, I open a position at $ 100 The StopLoss is at -20 $ If my position is at $ 180 (+80) then my TakeProfit will be at $ 200 and my StopLoss will be at $ 150 Regarding the StopLoss I have already managed to find a
Hi guys, first of all thank you for your help! I have some trades opened by another EA in one direction (eg. 5 trades BUY). I want to set the stop loss for all these BUY trades together to be triggered at a specific price (not pips of distance but a specific price). Therfore if the price reaces
Good afternoon, I'm writing and EA in MQL5 with Bollinger Bands based on example I've found on this site. I'm trying to say to the EA to stop trading Friday at 21:00 (server time) and during the week to avoid to trade from 20:00 to 21:00. Unfortunately during the backtesting it doesn't work. Below
hi, i say to my expert that: if the price goes up 400pip, make trade, and get position, I have run this EA in 3 accounts, and it work good, But some days, randomly one or two account does not trade, while price has gone up 400pip, what is the problem?? _i run the EA in VPS, _EA is the same in three
folks This is my code NormalizeDouble ( MathAbs ( 10 / 100 ), 3 )* 1000 ); or this double math=( 10 / 100 )* 1000 ; It just returns a zero value what is wrong here i have tried Removing NormalizeDouble and MathAbs but still the same story But the Funny thing happens when i put the values after
Hi everyone, I'm quite new to EA programming. I'm trying to check that all my symbols are open and will be open for at least 10 minutes before I open any positions. My code is below: //check if all symbols open now and for the next 10 minutes datetime start; datetime finish; datetime
can any one help me to make my mt4 ea work at mt5
When I was first with MT5 and trading gold the spread would flux from 24 -75. I left Mt5 for Mt4. But now I am back with MT5 because of the move. I don't understand why the spread was fluctuating for weeks now for the past days since last week it is 50. Is my MT5 app messed up?? I don't understand
Moderator: Hello! After December 5, 2020, the verification of EA project failed to pass when it was submitted for audit! See the screenshot below。Even if I create a new simplest EA, it will not pass
Hello I created a 5 and 13 SMA EA but i cannot add the trailing stop on it. The second challenge i want to make this EA to function different charts at the same time. #include<Trade\Trade.mqh> CTrade trade; void OnTick () { double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK )
Hello, I am running a small EA and what to display some Horizontal Lines on open Charts on the Backtester. With OpenedCharts() I read out all openend Charts and Print them. It's working well with Live Trading, but in Backtest (Visual Mode) it only returns the one Chart, on which the backtest is
Hi. Could anyone enhance this EA? Adding Opening Time, Closing Time, Time to reset open position, Breakeven, TraillingStop and Partial Execution. I am grateful for the help. input int lote = 1 ; input int periodoCurta = 10 ; input int periodoLonga = 50 ;
Hi all, Is there a way to hide input variables from the user if he selected different enum. For example, i have 3 different cases under one enum. Based on the user selection, i want to show some input variables and hide others. Is that possible with MQL5? Thanks in advance
Hi, I've downloaded several free EA from the Market (Download and Installation function) and they work fine on that specific computer. But when i manually copy the .ex4 EA file from one computer to another from the expert folder the EA will not load. To get it to work on another computer or vps
Ok, it is easy to syncronize the signals and the EAs of your PC MT4 on VPN. But after resetting my PC MT4, how can I see what EAs are running on VPN?
im trying to make an ea i put all the conditions to open trade but im stuck idk how to code so the ea close the order by an opposite signal
Hi I made a EA and define all my indicator and variable base on 1 year back test ( i made a optilimazion and chose to best result ) 1. when i run it for 2019-2020 ( 1 Year ) my EA was work perfect 150 trades with 20% Relative drawdown and very good profit but when i try to run my EA for 2 years
Good morning, I would like to implement an EA that runs two EAs in one. The first that send only virtual orders and deserves only to check that the equity curve is above or below its moving average. The second identic to the virtual one that send real order to the broker and is active only when the
Hello everyone I greet you all. I am just a newbie, interested in learning how to write EA. I read an article on this site (https://www.mql5.com/en/articles/100) step by step guide on how to write an expert advisor in mql5 I then downloaded the programme file provided. I tried to test it using the
Hi guys, I'm trying to code a simple EA to pick up a type of divergence from a custom indicator and need some help (new to mql4 programming, engineer in real life, so most likely just need some code snippets, as I'm most likely doing something wrong). I'm using the iCustom function on the indi
Hello Great people, I am new to coding. I attempted to write a code for a simple expert advisor (MQL5) to return the value 0, if the swap on a long position (or series of long positions) is positive. If the swap is negative, the EA should retrieve, add up all the negative swaps of all Buy positions
Hi, did you know which CPU is better to run back testing in MT5? Intel or AMD? does the size of the level 1 cache impact the performance? etc... Is there any comparison / benchmark available? or what type of standard benchmark should we check which is the most relevant for MT5? (PCMark, content
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.