Friends, I am experiencing a bit of a frustrating problem... probably simple but any advice appreciated. When running my custom indicator, the default window period (when the chart pops up) is always 1 hour. I change it within my OnInit function as follows: int OnInit () { // Set the chart
Hi,
is it possible to capture the dragging process of a horizontal line somehow?
I can get the CHARTEVENT_OBJECT_DRAG event but this event only fires when dragging is finished. I want to capture the dragging itself, like mouse-move that is updating x and y position of the mouse...
Hi, I have to search signals on an open group of symbols and when I try to retrieve MovingAverage value by iMA and subsequent call to CopyBuffer I have to wait a lot of time and sometimes happen an abnormal termination. Isthere an efficient way to retrieve moving average value of generic symbol? I
Hi all, I am an MT5 student and my PositionClose() has refused to work. I have tried various options and alternatives but failed and I decided to seek help. Please point to me what I could be doing wrong. Thank you. //+------------------------------------------------------------------+ //|
Hey all, I am coming up with a new system for an EA that implements martingale. Tp is 5 pips multiplier = 1.2 However, I am not sure when to apply the martingale. I do not wish to use the grid method! Thanks
Hello, i have the problem, that a just opened position by CTrade::Buy is not selectable PositionSelectByTicket (ticket) The position is opened, ret result is 10009. The ticket is valid but PositionSelectByTicket fails. Why ? Thank you
Does anybody have any solution for activating a given chart using its ID in MT5 using mql5? Suppose that we have 10 open charts in mt5 and we want to activate a given chart using its ID using an EA, what specific code can achieve that? I searched in the forum but found no solution for mt5
Hey guys . I am learning to code and i decided to code a small EA that places two pending orders (buy stop and sell stop) at yesterday's high and low . I menaged to code the part that places two pending orders. Instead I have difficulties understanding why the second part , that is simply supposed
Hello, since the last update, I am getting requote errors. I need to admit, I had some changes in the calculation of TP and SL values, but I cannot relate to the issue, I am facing currently. Am I missing something here
I deleted EA and he is still opening positions. I am using vps. I tested a few other EAs before and it was no problem. Does anyone know how to remove EA completely? greetings
Apparently using int count= CalendarCountries (countries); returns only countries which are relevant in the close future. The example returns only few countries: https://www.mql5.com/en/docs/calendar/calendarcountrybyid Does anyone know how to retrieve the complete list of ISO 3166-1 countries
Except the winning strategy/ setting, what features are basic requirements from users
Hi! I am trading binary options and need to optimize for just one goal: Win Rate (%). Nothing else matters. Has anyone created a custom optimization criteria for this, or would be willing to show me how to add this to my EA? Thanks 😊
Hi all, I'm a fairly new trader, rather getting back into trading, and looking at trading GB/JP and gold. As I'm getting back, I'm finding that manual execution in MT is slow so I'm looking for scripts to help speed up my trading. Whether that's closing a loss faster or securing pips faster. I was
Hey there, I didn't found answer to this yet, but is there a way to do the reset scale (when you double click the price scale or press NUM5) by code to implement in my code WITHOUT using the keybd_event importing external .dll? Thanks in advance
Hi all,
I have 2 real account under same broker and i would like to use one of the real account to subscript a signal, and another real account to trade with EA.
I plan to use the vps to run the MT4 platform to run it. Will it works? i found that when i login to the account which subscript signal...
Hi. I need help with a situation. I have a few ea's that I like how they perform on backtesting so I put them on a live account (ecn) the problem is that it does not perform as in backtesting. For example : in backtesting for february I had 35 trades, but running live in February I only had @20
Sometime last year, my EA which had been working fine without any issues started placing double orders of the same type. Contrary to my beliefs, the MQL5 community was sure that my code was executing multiple times, so I placed some checks in my code that would prevent this (A CyclePause (Where AO
Hi - Does anyone know if an EA can show it's current set file name in the inputs box in Strategy Tester or as a text line on the current chart ? I think it would be very usefull when doing multiple backtests and keep track of what set file is currently being used
Hi: I would appreciate any insight why my EAs work just fine on Forex but not operational on CFD (Futures or Indices). Nothing in the journal indicates a problem. Thanks again
Hello, I am aware there are scripts that can close all open orders for you, but what I am looking for is to set a timer which will enable and disable the EA at a certain time of the day and once disabled will close all orders. Is there such a thing
My demo account expired. I have a live account with AAFX but swithed to a demo to run for a while. MT5 says I'm logged in and my other EA seem OK. EA Gold Stuff attaches then drops off the the error message sayes invalid account
Hi I want to see the spreads of 5 different brokers on a single Mt4 chart. I mean on the first brokers EURUSD chart I want to see the other 4 brokers EURUSD spread. I have searched named pipes but it did not work despite of many tries. Does anyone know another way to do that. Or you can share a
Hi, I need to develop an expert on MT5 that each 5 minute candle collects the volume of various currencies and if there is an increase in volume, launch an alert. I have no idea how to start it, any help? A base template with a sample would be a great help. Thank you so much
Hello, I have been writing very basic stuff, and from this code I don't understand why not all the candles are accounted for. It should be the case that each candle is a new trade, but yet there are some gaps in dates aside from the weekend (according to my trade history and the visualization it is
I just did a milestone to published an EA. I don't know where and how should I attract people to notice it. I don't know whether have restrictions or not. Please advise, thanks
I'm experiencing a very strange behaviour on MT5 with trade.PositionModify() calls. I have an EA that automatically sets SL and TP for every new order, no matter whether stoplimit(= order) or market order(= position). The strange thing is, it works fine for 3 times or so, sometimes only once, then
CopyBuffer function not work when prev_calculated =0 and Handle in other TimeFrame which different Current TimeFrame First I creat Indicator with two Handle in two timeframe: one in Curent TF exp: H1 and one in Orther TF exp: H4 Handle_Current_TF = iMA ( _Symbol , _Period , 14 , 0 , MODE_SMA
Hello folks, I'm developing a complex trading panel for more than 20 symbols. Do you know if is there any kind of limited of the number of objects per Panel? It looks like it is stucked in 350 CButtons or CLabels
HI. I want to build an expert advisor that will automatically set my SL to 2xATR of the position I'm in Tried a few things but they didn't work Any kind of help is much appreciated
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.