EDIT: PROBLEM SOLVED. Can't use ArrayCopy with struct type if one of the struct members is of the string data type. Reason in red. I'm following the same template for copying two arrays of the struct type. I use one on an include file that's part of an EA, which works (and also worked as part of the...
[Deleted]
I am a developer, And I found this error : 1. When I use Bid, backtest don't show the arrow. 2. When I change Bid to Close[0], the indicator shows arrows properly. What's the difference between them?
Hi I normalised the distance between (EURGBP-EURUSD) and (EURUSD-GBPUSD). Below is the code; Now, I want to create separate variables to store normalised values of other timeframes i.e 15min 60min regardless which timeframe I am currently on so I can comment those on the chart. Can someone help on...
Hi, Community, I'm very new to coding but have been trading for sometime. My question is can a custom indicator be created that would create a stop loss off the previous candles data? If so can you pls push me in the right direction. Thank you EJ
Hi there! I have some trouble trying to install Metatrader 4 on Linux. I'm running a desktop Linux Mint 18.1. I followed the instructions from mql5.com to install the MT4 software but when the installer starts, just as it begins to look for the best access point, it asks me to input the proxy server...
Hi I am keep getting array out of range errors. Could anyone please tell me how to fix this? Indicator seems to plot well the fly price, moving averages but when I add the code for standard deviation calculation, I keep getting the error message. Much appreciated for any help...
Hi everyone, I made a dashboard that scans 7 pairs for price action candlesticks on 5 different time frames. Rather than waste time explaining it further, I'll just show a picture. Anyway, the dashboard calls on iCustom for 4 different indicators. When the indicator launches, or when you switch...
Where is the line between fitting and real patterns? Looking at the market we see that possibly existing patterns cannot be parametrically constant. Every system has a level of fit and a level of regularity of one or more events. And the preponderance towards the second level is responsible for the
I'm wondering what's the latest version of MT4? Does anyone know? Thanks is advance!
Hi guys, I am a beginner at coding and I tried to code and apply bollinger band on closing prices of a spread ( (EURGBP-EURUSD)-(EURUSD-GBPUSD)) but the band always seem to be containing the closing price i.e the price never cross either upper or lower band so I thought I'd ask someone to check out...
Hi all i have 2 questions A) Can i test my script when the market is closed? all I want to check if it opens an order when the next bar happens I have attempted to use the strategy tester but cannot see my script in thelist what could be the problem b) how do we search this group for post
Hi all I'm probably being an absolute dumb arse, but after MT4 stopped working on a demo account (I've not gone live yet), I uninstalled it and have tried to do a reinstallation. But wehn I download and install 'mt4setup.exe. from https://www.metatrader4.com/en - it installs MT5. This is driving...
I have been reading over the reference manual "MQL4". I can't find the correct reference to a string for Symbol(). Alert("Currency=",(),Symbol()); At the moment the Alert reads the currency at the top of the watch window. How can I change this to reflect the watched currency that I wish to look at?
Please find attached MT4 scripts that that allow a hot key to be assigned to each required TF. i.e CTRL 1 MN, CTRL 2 weekly etc.so that when applied to a profile of markets all of the markets change to the same time frame. These scripts have worked perfectly until recently. I’m not sure why, maybe...
Hi guys, I have an indicator which takes quite a long time to calculate. This is a problem when I try to switch quickly between periods as the chart is stuck as long as the calculation is ongoing. Now i want to spread out this slow calculation over multiple frames, so that i can still work with...
Hello, is there any way to find if a given function from an external mqh is called from a custom indicator or from an expert advisor? Thanks in advance!
How do I link my MT4 to my email. I have tried to do this but it doesn't work, the problem probably has something to do with SMTP
Hi, I'm new to EA and I've been using free EA builders online. However I cannot find how to program the way I want, so I appreciate if I can get any advice. What I want to capture is a sudden price movement due to news or any events. Like if more than 2% price change from previous close price, then...
i want my label on top of order line and candle graph and i want to create background color behine of mylabel i want to know command one of part my command ObjectCreate("L1",OBJ_LABEL,0,0,0); ObjectSet("L1",OBJPROP_XDISTANCE,70); ObjectSet("L1",OBJPROP_YDISTANCE,40); ObjectSet("L1"...
Really need some help here.Ive attached the EA as well as a Screenshot to make it easier to test out if you dont want to copy paste. Objective: I only need this to produce one buy after there is already one sell already and/or one sell after there is one buy already. Problem: The following piece of
Hi guys, I'm working on an indicator that presents a market overview, showing stuff like symbol, quote, tickvalue, atr, and swap. My broker is using a 0 swaptype. I've done some research and the best thing I could find is this formula: MarketInfo (symbol, MODE_SWAPLONG )* MarketInfo (symbol
Hello I have a function in my EA: void SetAllChartsToPeriod(int _period) { long currChart,prevChart=ChartFirst(); int lim = 30; int i=0; while(i<lim && prevChart != -1) { currChart=ChartNext(prevChart); // Get the new chart ID by using the previous chart...
hi friends, I found a problem regarding the array size in my Custom indicator . When I change my timeframe -for example change to M30- sometimes my indicator does not work properly it takes the error of "array out of range", but when I manually change the timeframe from M30 to another timeframe and...
Hi all, I would like to get matched moving average of highest & lowest price for each day. Example: Highest price for yesterday is 1.2 20MA= 1.15, 21MA= 1.22 I want to get the nearest MA that match with the highest price automatically which is 21MA. Is it possible to do that? Thank you. Add-on: I
About the AutoTrading button at the top of the Terminal, which I recall used to be named "Experts" or whatever: I was fairly certain that pre upgrade, the "Experts" switch would pause my EA, Alerts, everything the EA did. Now when I click the "AutoTrading" button so that it displays the red dot, my...
Hello all, first off apologies for the basic question... I'm a newbie in coding. I am profoundly confused! Below I did the following: void start(){ double monthlyHi0=iHigh(NULL,PERIOD_MN1,0); Print("Monthly High 0 is: "+monthlyHi0); double monthlyHi1=iHigh(NULL,PERIOD_MN1,1); Print("Monthly High 1...
Hi, How can i check if a pending order has been triggered? I have two pending orders and want to cancel one if the other opens but can't see a method to check if the order has been triggered? Thanks, Tori
Hello, my EA is supposed to never put takeprofit/stopbuy/sellstop so it will close with a minus position but sometimes it still does it. Here is an example: http://imgur.com/a/xGWKq (i hope it's not too small). EA puts a buystop at 1.06285 and it bought at 1.06290. Is there a possibility to check...
I get this error on the following code: class ConstantBar : public CObject{ private: ConstantBar(int pCBType, int pRange, int pArraySize, double pStartAt) : nPoint(1) { ... }; ConstantBar(int pCBType, int pRange, int pArraySize, double...
[Deleted]
I am a developer and I want to work on 1 terminal, If I use 2 terminal, I have to copy sources to 2 terminal. That's Annoying. Can You do that like this picture or Duplicate same mt4 process (not copying terminal folder. that needs copying source too.)

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.