mt4 expert that places the next trade with a higher lot after a loss like a bot, is there anything out there? where it will cover losses
Hello, How do I write a copy constructor for a public class (structure substitute) please? For sake of an example lets say the public class is as below: class struct : public CObject { public : double a; datetime b; }; I'm using this structure with CArrayObj
Hello people of the forum I'm looking for an indicator that includes just these 5 indicators: SMA, EMA, SMMA, LWMA, and HMA? I really need to have HMA beside the four other default MAs of MT4 for my template. Does anyone know one? Any help would be sincerely appreciated
Hi For example, for a buy position at the entry point, I want idea to check that if the next 3 candlesticks are descending, the position will be closed. Also for the sell position, if 3 candlesticks are not descending after the entry point, close the position how can i write this code
Hello guys & gals: - Please is anyone aware of "add-in" or whatever that will enable the chart display graphics to display candles etc. on a 2 (two) minute timeframe? Thank you, Bebbspoke
Hi, I need help with Mt4. I am doing backtesting for telegram signals in stratedgy tester and I am unable to get data for Indicies and commodities. Can someone please help me
Hi, got this indicator code working somewhat, it is run even when mouse scrolling the chart. The indicator data has a wide range, something like +/- 0.1...+/-5.0, depending of chart scale, TF and instrument. The goal is to improve readability by: A) "0" in the center of the indicator window at all
Hi all, I can't seem to figure out how to display an arrow only upon the immediate slope change (i.e. change in colour of the current slope) candle, and not again until the slope changes once more. How would one go about doing so
Hi, Can anyone help me with a function to do a second basket order (if the signal hits again) after the currently open basket order moved stop loss to break even, if it is possible in MT4? So i want the open risk to be max one basket order. The basket order for me is 3 different orders with
Hello, I'm trying to add a series of structures to a CArrayObj but having problems. Could someone point me to the solution please? My code is as follows: #include <Arrays/ArrayObj.mqh> struct test_t { double a; double b; datetime c; }; CArrayObj *obj = new CArrayObj; void OnStart () {
Hello. please help me. What should I do if I want to automatically copy my signals to other accounts? when i open it will automatically open for them too
Hi guys I'm sorry I'm a noobie struggling here. I'm trying to calculate the wick of the latest candle if there's any, for example, if the current latest bar is red then the high minus the open should give you the top side wick and if the candle is green then the open minus the low will be the lower
hi guys i want test a EA at end of a day i write it like this //+------------------------------------------------------------------+ void OnTick ( void ) { int ticket; if (TimeToStr(Time[ 0 ], TIME_MINUTES )== "23:00" ) { do somthing .... } } but return me always 0 why but if i
Hello, It is happening that on my Linux computer with Metatrader 4 running on wine, it is not possible for me to create a demo account since the email validation code is always rejected as having been invalid or expired. Is it possible that others have come across this issue? How does one get around
Hello, I have what I know is a very basic problem, but I can't seem to figure out how to use the object draw function to create a line. As you can see below, I'm using an if statement to determine if the current price is close to the 5 minute moving average. If it is, the count variable is assigned
I created two Dialog panel on the init() method One of Dialog includes two date picker and comboBox and multiples edit and label Another Dialog includes radio group and two listview The bug is when I click an item of listview, the other dialog of data picker will also get clicked, the date picker
I'm not sure whether it's ok to post this here. I couldn't find anything in the freelance area that covered this specifically. I'm looking for a casual tutor of MQL4 paid by the hour/session and scheduled as needed. I'm interested in reaching out during times when I have a coding task that I can't
Hi i'm making an ea to get values from a custom dashboard type indicator which scans around 10 pairs with multi time frame in a separate indicator window when i tried the strategy tester i get an error saying CExtAppDialog: find subwindow error also the buffer values is zero from 0-7 with the shifts
// HelloWorld for MT4GUI // Lets include the imports file mt4gui.mqh #include <mt4gui2.mqh> // global Variable int hwnd = 0 ; int buy_check = 0 ; int sell_check = 0 ; int lot_size_label = 0 ; int lot_size = 0 ; int SL_label = 0 ; int TP_label = 0 ; int SL = 0 ; int TP = 0 ; int execute_button = 0 ;
In this example an EA (in MT4) should open orders partially, but should close all orders together and time is critical in this case. If there are for example 20 open orders, when they will be closed, they will be closed successively and this process will take several seconds. Is there a way in MT4
Hi all, The smile face was on at one time, but can not get it back. Tools/option/expert advisor is enabled. Expert Advisor on top of screen is checked . There is no smile, scowl, nothing at all. Reloaded the program. I'm embarrassed to ask. But what is wrong? Cheers
My code is supposed to display a clock on the chart. In this case, I am displaying seconds only. The problem is that I set the loop to run every 40 milliseconds with EventSetMillisecondTimer(40). Considering that 40 milliseconds happens 25 times at every second, the display update should never skip
Hi gys i purchased an indiactor but now its not working anymore on my mt4, what can i do, its not even attaching to my charts
For various reasons (of which the time it takes to run an optimization in the ST is the most important) i need to code my EA to trade on Open Prices when running on a live account so that I can do my optimizations under the "Open Prices" model in MT4. I already code all my indicators with a shift of
I'm a newbie to programming, so please forgive this as probably a very stupid question.... I'm trying to pass a variable (" SL_sell" - see below ) into an OnChartEvent - so that when a Sell Button is pressed, the Stop Loss is defined by the ATR value (which is being constantly updated in OnTick)
Hello All coders.Nice to meet you. I have some difficulty in create Divergence object in chart. My idea is to create divergence line by two conditions 1 -if Highest Bar in last 100 Bars < High Bar in last 5 bars ,Draw trendline in chart by two anchor points (last highest bar and last 5 high bar) 2
I have been using the attached indicator for quite some time and it used to work very well. After a recent Windows 10 update, it is not working/loading any more. - Does anybody have a version of this indicator that is working correctly under the current win10? By the way, I have only an ex4 (not
Anybody know if objects display from indicator resource? My indicator shows text objects and uses a single array. Also, how to link to an indicator from the indicators folder? I am having to copy the ex4 to experts folder
Hi, I am new to MQL4 programming. I am trying to add code to my EA using fractal. The condition is if there is NOT Up Fractal in last 4 bars , it should open BUY trade..Here code compiles without Error but it is NOT opening trade.. here's the code: bool Upfractal() { int a; for (a= 1 ;a< 5 ;a++)
Hi every body i want to get return value from an indicator names Spider Indicator i use iCustome Function in MQL4 i have to mention that i use MT4 Here is my Code: //+------------------------------------------------------------------+ //|

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.