MQL4 and MetaTrader 4 - page 354

enum ordertype { buy=1, // Buy sell=2, // Sell notrade=0,// No Order };//+------------------------------------------------------------------+//| |//+------------------------------------------------------------------+enum rtype
Did someone see an error [225] at mt4? I cannot find the meaning of this error at https://docs.mql4.com/constants/errorswarnings/errorcodes What does error 225 mean please
Somebody knows how to make zup harmonic indicator scan multiple pairs and timeframes
Hi I am running an EA on a chart, but sometimes I close it by accident. How to make this chart open and can't be closed until I remove the EA? thanks
Hi Guys, I have just started using median renko charts with a PVA indicator overlay, and i have a question, why would there be a difference in the chart structure after i restart the MT4 platform
I bought an ea robot for mt4 and it came with 2 indicators which I needed to add thru meta editor in indicator folder (which I already did, check pic attached) the problem is when I run ea with indicators on back test aka strategy tester, in the journal section I get a red warning that states
Hi I started using an MT4 and its editor of a broker which has an extension for working with binary option. I always do lots of small tests while I'm coding EAs and always run my EA and change the codes and by compiling the codes, EA is automatically re-Initializing and I can see the result of my
can anyone modified this old ea? put SL and TP ? this ea old build, any pros can make it run back in new mt4 build? just testing old ea and strategy for my new idea :)
Hi Folks, I made a dumb mistake while trying to program my first indicator with MQL4. I am new at this, and got my indicator into an infinite loop after i placed it on a chart in my live account. Well, it locked up my system and I had to exit MT-4 by stopping the program with the Task Manager
[Deleted]
  Checking Candle Open  (42   1 2 3 4 5)
Hi guys, I'm fairly new to coding in mql4 and have really been trying to get my first EA to work. I would honestly appreciate help with the following. It's just a basic cross-over so-to-speak, but instead of moving averages crossing over, it's just price crossing over a moving average. I need an
Hi , does anyone know how to create a display alert or sound alert when the colour of the BW MFI changes to green for example in the current time frame?thanks
As the topic states. How am I to do that
  Chart on MT4  (2)
How do I install 18 charts on MT4? I have 6 currency pairs and three timeframe of 30 min, 1 hr and 4 hr. 6 currency pairs x 3 timeframe equal 18 charts. I want the 18 charts displayed on MT4
Hi all, I'm trying to apply the attached indicator on a M2 offline chart. If I recall the daily pivot with iCustom(NULL,PERIOD_D1,"All Pivot Points",0,0) there's no problem. If I try to recall the weekly or the monthly pivot, I have the following alert int OnInit() { Status=true;
[Deleted]
Hi, I have the following question regarding the calculation oftechnical indicators. Technical Indicators (such as EMA) usually rely on pricescalculated for a set of given time periods. For example, we take a timeinterval of 5 mins. We then calculate High, Low, Open, Close (HLOC) prices forthis...
[Deleted]
Hello, I wonder if it is possible to retrieve the hours: minutes of a candle defined by its shift. My indicator goes all the candles one by one, I would like him to back the opening date of the candle .. Is there a function in MQL4 for this? Thanks in advance.
Hi all. I have written a program for practice as I am learning. I have written and re-written it for the last 2 days and am stuck. The function call is to initialise the first two points of a iRSI swing. It should look for the highest and then the lowest low. If we forget about the highest high for
Hi I just want to draw a channel line connecting the fractals . But nothing shows up on the chart. Can someone perhaps point out the bug in my code? I'm using MetaEditor Ver 5 Build 2143. Many thanks #property copyright "Copyright 2019 - Cobus Steyn auxanotrading@gmail.com" #property link
If <link > is used to get lowest price for current bar chart, how do I get the lowest since market opened, on monday this week? Thanks
Kindly help to provide iCustom code and buy/sell script for attached indicator. I would like to insert/add the codes to an existing EA. Thanks
hi I am learning to code. The code below is supposed to look and see if the last closed candle was above a RSI high and if not it will look at the next candle back and see if that was and if not the next and so on and so on. it mark the candles that are above the high and all the ones that don't
Hello, I have found some good signals and good expert advisors in the market; they have high profit factors, limited drawdown and acceptable ROI. However, I think that the performance of these EAs can be increased by setting some filters on time (Ex: open trades only at night, do not open trades in
This isn't exactly super-necessary, but is it possible to change to background color of charts partially, depending on what time it is.. so it's say.. black during night hours and white during day hours? I guess that would be some sort of time indicator :p
Hi all, So I'm new to this, and I am trying to dissect a function for closing orders and translate it to English, in order to actually learn something. I have to say it's a bit slow and I need help. So please help! :) I have highlighted my questions / comments in red so they are easily spotted Tank
Hi all. Will some body please add email alert to this indicator. Also is there a way to set indicator to alert once per candle vs. every tick
Hi, I need a help, I'm still learning MQL4, but I Stuck. how to code this in MQL4 "if total opened positions = 2, set sell stop position" ? I use this code but not working properly! for(int i=OrdersTotal()-1; i>=0; i--) { if(!OrderSelect(2,SELECT_BY_POS,MODE_TRADES)) continue;
Hi, This very annoying error is here again. I cannot enter to my MQL account with the MT4 terminal (and MetaEditor): authorization failed. The same problem happened already 1-2 months ago and then has been resolved by MetaQuotes. Moderator, can you please contact with the Service Desk about this
Hi Was trying to test on my demo account how to run a script and that and after i calibrate to my taste when running it gives the following error on the experts terminal tab: cannot load 'c:\etc etc etc\AppData\Roaming\MetaQuotes\Terminal\D605FDA725F23D972774F86F925B88D9\MQL4\Experts\Market\Yellow
I HAVE A TDI INDICATOR THAT HAS DIVERGENCE BUILT IN. IT ALSO HAS ALERTS FOR THE RSI BASE LINE CROSS OVER. 1. I want to add alerts for classic and hidden divergence, and have to ability to turn them on or off like a true/false setting 2. I want to be able to remove the alerts for red/yellow cross 3
Hi folks, I created a expert adviser to alert whenever the dds value reverse its direction, this expert adviser runs every 5 minutes and watch over the M15 chart. The following is the code snippet that I use to retrieve dds values of the previous closed candles. double currentTfDDS_0 =