Hi Everyone, I'm facing a problem with my MT5. When I click on button to start an optimisation using a hedge demo account it simply doesn't start. My memory goes to 100%, and my HD working until get full, but the optimisation not start after 1 hour. I'm trying do this optimisation in a dual xeon
hi there how can i fix this problem? i just write this code and mql5 tell me: '&&' - operand expected EMA1.mq5 55 86 if (High1>Open1>Close1>Low1 && High1-Open1<= 10 * Point && Close1-Low1<= 10 * Point && High1>High2 && Close1>Close2) { } Improperly formatted code edited by moderator
Hello, I developed an EA (account Netting ) which uses pending orders SellLimi t and BuyLimit instead of MT5 native TakeProfit . The reason for this was to avoid the slippage that occurs when using MT5's TP and SP, since they close market positions and not with book orders. EA Places Orders
Hi all, I'm testing an expert on D1 time frame in which I wrote the following condition to open pending orders request_type = ORDER_TIME_DAY I see that in some cases pending orders are not deleted at the end of the day. What could be the reason? Thank you
Im very new to using MQL5 and Expert Advisors. I have spent a while getting the basic code for a Triple Super trend advisor. At the point im at it buys and sells and closes the position. However, it is extremely slow in doing each action resulting in missing the trend. I really cant understand if it
If you have a good strategy and are willing to share it, I can write an advisor
Hello everyone, I am new, I would like your help with a problem: I am practicing writing a Martingale EA, I want orders to be opened by time instead of points/pips. For example, every 15 minutes an order will be opened, with a maximum of 3 orders. Please help me. Thank you. ( The code below is
Hello, I am runing an EA downloaded from internet on my demo account. Now I want to remove/change it's comments by any way. Is this possible
extern int AccountRow = 1 ; extern int DelayMinutes = 2 ; // AccountRow - Your favourites account number // DelayMinutes - Delay in minutes, has to be greater than the chart timeframe #include <WinUser32.mqh> #import "user32.dll" int GetParent( int hWnd); int GetDlgItem( int hDlg, int
Expert advisor closing trades early after the first following candle and stopping the simulation
(2)
Whenever I run it through the strategy tester , the trade always closes on the first candle after opening and then the simulation stops out. First time writing one of these, but any help would be much appreciated. Code is as follows #include <Trade/Trade.mqh> CTrade trade; int OnInit () { Print
Hi, I have a mq5 file importing a .Net DLL, that compiles in MetaEditor. When running it in MT5, it shows errors like this: 2022.02.05 17:49:58.337 MT5NetTest (Test2,M1) function 'MT5Net.SampleMT5::Get1DDouble' not found in 'E:\Apps\MT5\MQL5\Libraries\XMT5Net.dll' Is there a Visual Studio solution
Hi, This code is work on my PC : ZZHandle= iCustom ( NULL , zigzag_filter_timeframe, "Examples\\ZigZag" , Depth, Deviation, Backstep); ArraySetAsSeries (ZZValue, true ); but cant work on VHOST. 2023.09.21 01:48:21.506 NightGrid (XAUUSD,M15) cannot load custom indicator 'Examples\ZigZag' [4802] What
I beg you friends. can somebody guide me on how to fix these 2 errors OnTick function declared with wrong type or/and parameters 0 0 '(' - expressions are not allowed on a global scope RSIvsADX.mq5 26 5 unexpected end of program 1 1
Hi, I'm experimenting with graphical objects (like dialog) and chart events, and I was wondering wether if there's a mapping of the candles for the click event coords or not, I mean, if my expert has a Cue Line to track candle operations (stored by candle time), am I able to move that Cue Line
Hi programmers, I need help programming an expert advisor that puts trades when the price reaches a support or resistance level zone. It's to be used on the forex market. How can I do it, any ideas or a plan
Hi, I've a question regarding iTime function. datetime today = iTime ( _Symbol , PERIOD_D1 , 0 ); This return 2023.09.20 15:04:08.948 Test (EURUSD,M5) 2023.09.20 00:00:00 For XAUUSD the open time is 2023.09.20 01:00:00 however the return is actually 2023.09.20 15:05:09.729 Test (XAUUSD,H1)
Hi Guys, I have a question, i'm quite familiar with the stratagy tester but what i wanna know is, for example... i have a broker trial with a 10K account running for 2 weeks with a EA. Were can you see in the backtest if the EA violates the daily DD over the complete test period? Thanks in advance
When trading (with bot) on FX market my account makes a profit. When trading stocks my account goes into continuous negative equity from the first sale. Has anyone else dealt with this? What is the difference between the FX and equity market process on MT5
I know that alert sounds can be manually enabled and disabled through Tools>Options>Events in mt5. I am trying to figure out how I can play alert sounds only when specific conditions have been met. In all other cases alarm sounds should be off
"SL and TP value is nowhere near to Symbol At price after 1set of trade action entry and exit"
(12 1 2)
#property copyright "Copyright 2023, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "3.00" input double lotSize = 0.01 ; // Lot size for order input double stopLoss = 1.0 ; // Stop loss in points input double takeProfit = 1.0 ; // Take profit in points int
input double mRisk = 2; // MM Risk input int SL = 175; // Stop Loss (Points) //+------------------------------------------------------------------+ //| Money Management | //+------------------------------------------------------------------+ double MM()
Hello, I have tried to download an EA demo but once I hit the button to download it nothing happens, I'm logged into the MQL5 Community. I don't know why it's not showing up. Any help is appreciated
I would like to draw vertical lines for times when a new signal appears in an EA. Signals can be of several natures and are returned by an independent function, but for simplicity lets say a signal is simply the Price close crossover an EMA. Using a command like: ObjectCreate ( 0 , "Long"
Can anyone please help me code for my EA to only trade between 7am and 11am /1PM and 4PM GMT. please could you explain the code so I can learn. much appreciated
Hello, I have purchased EA form mql5 market but cannot download it from VPS. I have successfully log in my mql5 account on VPS. But I can't download it, it always show "failed download [404]" How can I fix it
I have an EA i have developed who need certain conditions to open a position than he maintain that position. Now i want to have an additional trade open on diffrent conditions, and that it will manage it without touching the other. now to each one it will avg if a certain loss is reached, and will
I pull my candles in this way: lines = mt5. copy_rates_from_pos (chart, mt5.TIMEFRAME_M5, 0, 25) It should return the last 25 candles. Sometimes it does, sometimes it doesn't. Success output: [2023.09.19 05:01:00] [***]chart=EURUSD+ lenlines=25 [2023.09.19 05:01:00] x=0 linestamp=300
hi guys, i made an expert advisor using an indicator, every time a buy signal is detected the ea sends a message to a telegram channel i made, and is the same for sell signals. the problem is that it does not send the message, i know its not the web requests because it sends a message successfully
hello Anyone have the code for this? i know it's simple but my mind is somehow blocked. let's say i have an array contains few double elements, I know one of these elements and need to get the closest hi and closest low to this element. I don't want to use sorting and indexing, thank you
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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.