MQL4 and MetaTrader 4 - page 740

Hi I've been searching for forums and trying to add this file but all I hear is that I have to wait for the moderator's aproval. Can any gentle soul add an alert to this please? Pop up and sound. Regards
  iHigh w/Arrays  (5)
Why is this not returning the iHigh values for the previous 10 bars? (It instead returns 10 10-digit numbers, seemingly unrelated to the price, including negative numbers):       void start()    {    int bars = 10;      if(bars >= Bars) bars = Bars - 1;       double highs[];      ArrayResize(highs,...
I'm currently using an EA that gives me good results, but in the settings window I have to choose the number of Lots to be traded, while I would prefer to have a % of available cash to set to my convenience. How can I modify the EA to obtain this? Any help truly appreciate, I can give you a copy of
If I enlarge the Tick Chart tab on the market Watch panel to the left, and I then see for instance 20 vertical grid lines, the ticks are drawn in the first 2 or 3 columns only, thus before the third vertical grid line. The rest of the panel only shows a straight vertical line. How to get the...
I have created an EA that uses the Dialog Controls with label. Is it possible to update the price (BID and ASK) which is the value for the label? Thanks
Ca in  somebody explain to me what sandbox means and what role does is play while using fileopen() function.And also I copy a file in a directory "file" in mql terminal but this file cannot b open by fileOpen(),not sure I copy the file in the right directory,the file is a txt file.Thank you
[Deleted]
Hi, could anyone point me in the right direction to find the above? I used the search function but didn't find anything :( I have the two I have attached here but one only does the arrow - no sound or po up, and the other does both but the sound alert keeps going non stop :( Any help appreciated....
Hi,   I'm fairly new to coding. I have very simple question.   I'd like to run an IF() statement which executes something as long as the numbers are even. Does anyone know how to do this?   i.e.   If (even number) { do this }    Better yet, is it possible to do:   If (variable = 3 or 4 or 5) {  do...
New article How to implement traders' orders and make a profit in the MQL5 Freelance service has been published: MQL5 Freelance is an online service where developers get paid for creating trading applications ordered by traders. Now, traders understand the difference between all the services on...
Hello, please, I would like a help for send SMS by SendMail() using Clickatell SMTP API. My MT4 platform is already configured and I can use SendMail() function with success. My Clickatell account is also correctly configured with SMTP API installed. If I send from my e-mail account, works. But when...
[Deleted]
Hi,   I am using Metatrader 4 on Linux Wine. I have a file in the folder "/home/user/.wine/drive_c/Program Files (x86)/MetaTrader 4/MQL4/Files/xxx.csv"   I want MQL to delete this file or move the file to "/home/user/.wine/drive_c/Program Files (x86)/MetaTrader 4/MQL4/Files/OLD/xxx.csv" after...
Hi, I have some idea to code ea. but i did not know to read the news in news tab. Because if we read new from website it will be delay and when ea receive the news it will be late. I see that in this tab, when the news realease, it show very quickly. So, i want to use the news in this tab to code ea...
i have ex4 files in my system. i want to avoid copying ex4 files. plz tel me any ideas regarding protection of ex4 files.. 
Hi there, Quick question. I want to open an order based on the previous order that hit it's stoplosss. To access the order that has just hit stoploss, such as it's OrderType(), OrderProfit(), OrderMagicNumber() etc, do I need to select it from ORDER_HISTORY, or can I access it from ORDER_POOL as it...
I'm trying to get the current quote for a symbol not in current window. Unfortunately it doesn't work. I have tried with iClose(mySymbolString, 0, 0), MarketInfo(mySymbolString, MODE_BID), and even SymbolInfoDouble(mySymbolString, SYMBOL_BID). What I have tried so far: 1.- Any of the 3 above...
Hello, I've found a wrong response from IBarShift. On the MQL4 user manual iBarShift reports : "Returned value Bar shift with the open time specified. If the bar having the specified open time is missing, the function will return -1 or the nearest bar shift depending on the exact. " It writes the...
Hi guys, i'm new here, and i have a problem hoping that i can seek some guidance from you guys.  i have an EA that will enter trade based on MACD. the condition is quite simple, when the signal line, the MACD line is above or below 0 line, and the MACD histogram is ascending or descending, it will...
How to auto iraterate active all char windows with indicator? frequently,  the actived front windows auto-refresh only, those back char MDI-windows not refresh.  
[Deleted]
Hi there, I have the following problem with my EA: It opens a trade when trade signal is hit (lets say 'long'), when that trade is finished (TP or Sl) it waits until signal turns to short and then opens a short position. It SHOULD keep on trading as long as the signal is valid, although there should...
Is anybody else having problems using CryptEncode and CryptDecode? The compiler doesn't seem to recognize them (builds 914 and 934).
I testes an EA, and I selected 14 years for the test (2000 to 2014) and it only make 81 trades. I checked diary and all trades are made in 2014. ¿What happened here? (I select do the test from 2000)
Can somebody help me with script / example to access MS SQLServer from MT4 /MT5
New Beta Version of MetaTrader 4 Client Terminal Build 660: Virtual Hosting, Web Requests, Working with Signals from MQL Applications and DOM New beta version of MetaTrader 4 Client Terminal build 660 has been released on MetaQuotes-Demo server. It contains the following changes: Terminal:...
i bought new expert from  this forum...but when i tried to plug it in my new terminal"build 646"" i noted that  the dialog-box that coming is not containing OK button to  attach expert advisor to chart. even i tried using ENTER button on my keyboard but no benefit ...also all properties of expert...
My main computer broke so I tried to install mt4 on an older computer running windows XP with SP2 but it won't install it just crashes at the start with a microsoft exception error and "sorry for the inconvenience" window. I thought it might have been the file I downloaded so I installed an old mt4...
Learning MQL4 and trying to make a simple EMA calculator that will place a line on the chart (using OBJ_HLINE since I don't know how to do a continuous line like in the default indicator).  Everything seems fine, but I can't get the line to draw.  I've been through so many sets of code, trying to...
Hi,  I would like someone to take a little peek at what i have done. this function tends to very simply close all symbol order but after function has been called. It doesn't close all trades with the same currency pair. Always 1 trade is left behind. A little help would be appreciated. Thanks!...
Hi all, I use an include file to calculate the lot size in my experts.   This file worked correctly with the old version of Metatrader 4. Now with the new build 600 it does not work properly.   In my expert I define the % risk with an external variable, and the include file read this value.   When...
Hi,  Does anyone know where I can download Renko bars for MT4 ?   Thanks, Robin 
Hello This will be my first post, and I have to admit I have no understanding of programing, sorry I apologize if this should be known information, Lets jump right in. EA basis's trades on the open of a candle, and then closes the trade on the close of the same candle,  The idea is to determine only...