MQL4 and MetaTrader 4 - page 403

hello i have 2 arrays 1 to open files and 1 to delete it but i have problem with the code int a[8] = {11, 1, 3, 5, 17, 4, 2, 15};int b[5] = {1, 2, 3, 4, 5};int filehandle;   for(int x=0; x<ArraySize(a); x++){      string n = IntegerToString(a[x]);      filehandle = FileOpen(n,...
Hi all, I use the following code in the majors, and it works well.  datetime timeDailyOpen=iTime(Symbol(),PERIOD_D1,0);     int currentDailyBars=iBarShift(Symbol(),PERIOD_H1,timeDailyOpen,true); If I apply the same code on GOLD it doesnt' work. My broker is GMT+2. The opening bar for the majors is 0...
Hello to everyone, Is there any function/call with which I could get the anounced dividend of a stock with mql4? Thanking you in advance, Panos 
Im realizing sometimes my logs are saved and others times no. :/ Is this normal? MT4
I need turnkey forex live m1 historical broker data, for the majors. Only have eurusd from 2018.07.10 i do need other timeframes too. I usually set max bars in chart and the historical bars to 999999999999 and I've used force history download not getting much more data. i wonder about the quality of...
Firstly, Yes i know this is the MQL5 Website, tried to make an account for the MQL4 but it kept redirecting me here, so here i am.  For some reason my OrderSend function in the code is listed as a Bool function with only 2 input parameters. Can someone please explain.   virtual bool...
  Personalized EMA  (1)
Hi, i want to make an Ema with a difference source different from price_close price_open etc. I want to make ema with volume for example.
Good morning everyone, I wrote an expert Advisor in mql4 format which open position at certain time of the day, it calculate number of lots, take profit and stop loss. Now I want to change it because it doesn’t work very well and I want that it open position when the candle start (in the timeframe I...
Hi All, This is the first time im posting here as it's my first time doing ANY coding, i seriously didnt know anything about coding since 2 days ago. I must say, it's pretty fun. I have learned quite a bit by trial and error and reading the articles here. Anyways this bot is still a work in progress...
[Deleted]
which one's price is the lowest one I have bought 5 times,so I have 5 OP_BUY order, how to find out which order's open price is the lowest one?
Hi everyone.  I want my EA to be able to differentiate among the following ways of modifying orders from the orders themselves: 1. When an order is modified manually (user shifts the price level on chart using the mouse or opens the "order placing dialog box")  2. When the EA modifies the order...
i'm building ad indicator in mql for mt4 in my mql indicator, i need to get the chart id of all the chart that i opened manually on my mt4 how i can get these id?
Hi all I'm new to writing in mql4, I've been getting the error 134 code when running my ea for extended period of time on the tester however when I run it for a month or 2 back testing it works fine. Any one had this issue before? 
I wrote this to trade "manually" using an EA for a broker that doesn't allow auto trading... ERROR 4112. My experience with interacting with Windows using USER32.DLL very is limited, first time actually. I managed to make it work, but with some issues... First, the work around uses static locations...
Hi, I have an excel sheet with all the candlestick patterns formations. I want to have live feed data directly from MT4 so that for every formation of a candle i will have the values (OHLC) and the time of the occurence of the candle in my excel sheet automatically. I need this for every time-frame
I would like to have a panel in an EA like this one: - some text with a chevron to open the panel. - a flat panel with no title bar with buttons and edit boxes Someone knows any similar example out there?
Hello, This EA is buying when the HMA indicator is turning green and selling when its turning red. But then it needs to wait till the ROC is getting above 0 for a buy and below 0 for a sell. Right now its only opening a trade if it happens at the same time. Mostly the hma turns green first and then...
How do you guys get around spread and slippage issues?
  mt4  (2)
I'm trying to download metatrader4 but every time I try so, I end up downloading metatrader5 instead. Please help me with some solutions. I wanted to start trading by the end of this month but this is stopping since I have been reading about mql4 and yet I have failed to get MT4. I will be glad to...
  hi  (1)
Nobody here?
hi, i need some help in coding an ea for testing. open buy when show up arrow and close buy and open sell when show down arrow. thank btw
Hello everyone, I have a problem with a function I already used in another code and it was working. In this expert, even inserting it does not change anything and does not seem to work, I mean the breakeven....
Hi, I just want to write some data to a csv. But I cannot see my mistake I get error 5004 over and over again. It creates the file, but it's size=0. The Timer is set to 5 sec. the "int start()"-function doesn't help either. Thanks in advance void OnTimer(){if (RunEA && IsTradeAllowed()) {   int...
Good morning everyone, I wrote an expert Advisor in mql4 format which open position at certain time of the day, it calculate number of lots, take profit and stop loss. Now I want to change it because it doesn’t work very well and I want that it open position when the candlestick start (in the...
Hello everyone, I was asked by a friend of mine to attempt a code to show similarities with matching pairs. I found a code online which sort of did it, but after I modified the code isn't working correctly. I tried to track it down again, but I was not successful in finding the code again. Q:  How...
hello there,  I am new to MQL4 and i am trying to draw a horizontal line (ray) on OHLC of a candlestick. So far, I am unable to do so. I tried ObjectCreate but no luck. Please help me out. 
  alert  (1)
hello there I want to set an alert on my mt4 platform but I want it on the over bought or oversold indicator . can some one help me
Hi, I have some problems with my strategy tester.. I don't know why every time I run the tester only few day is ccalculated. For example: I set the usage from 01/01/2011 to 31/12/2011 the tester calculate only 01/01/11-05/01/11 or: I set usage from 01/01/2012 to 31/03/2012 the tester calculate only...
Hi, When saving a detailed statement from your MT4 account history, I see that there is a small section in the working orders that displays comments from an automated system, in the last column in the working orders section (as shown from account history). These comments would be extremely useful...