MQL4 and MetaTrader 4 - page 728

[Deleted]
  GET 5 DECIMAL  (7)
Very good,  Again I start learning to program in MQL.  Now what I want is to calculate the average high and low price.  First in a separate window, and 5 decimal places in the result.  The problem is I know I have to use "DoubleToString". But I put it all the way and got the error....
I am having problems with storing data in arrays in an EA. i think i've done everything OK, but it is obvious i haven't and i can't see where the problem is. I hope anyone sees what i am doing wrong:...
Hello I'd love if MT4 brokers would be able to offer Micro CFDs on the indexes just like FXCM has lately added:   http://www.dailyforex.com/forex-figures/forex-brokers-2/micro-cfds-offered-fxcm/1449   Is there any chance that it will happen? Thank you 
This indicator does nothing but illustrate my problem: //+------------------------------------------------------------------+//|                                                          Why.mq4 |//+------------------------------------------------------------------+#property version   "1.00"#property...
Hi Everyone! I need some help wih a free EA, it needs a little modification, so if anyone could be so kind to help me out, please let me know. I have attached the free EA here. Modifcitations the EA needs: - Do not close any open orders before the SL or TP value is hit. - Do not open new order on a...
Hello, I'm sad that the date input box does not allow me to copy and paste a date & time and modify it slightly like I was able to. I'm now obliged to retype all the date by hand, can't you make the copy and paste work otherwise it has become very unproductive for me. Thanks. 
I'm wanting to delete 3 orders and replace them if the below is true... I'm doing something wrong though as it is not deleting all 3 open pending orders and replacing them all with new "NewBuyOrder"... Can anyone help? Thanks!      for(PositionIndex1 = TotalNumberOfOrders1 - 1; PositionIndex1 >= 0 ;...
Good all,       Plz i want to add breakeven and breakeven gain to this ea ,that is if it goes to a certain pips it should move the stop to breakeven plus certain pips            and i don't want the EA to place an immediately i attache it to the chart, that is the EA should wait for the next signal...
I have an indicator which looks at 15 different pairs at the same time to find a trend. It works perfectly on H1 timeframe, however on any other timeframe it is blank.I suppose it is because there is no historical data on that pair downloaded. But why it doesnt automatically download it from the
Hy! Is there some way for the MT4 to play a sound when an order closes?
Hi there, I run an EA in ST ok.  It reads dates and times from a file in tester\files. If I run the EA in debug mode, FileOpen() returns -1.  It appears when using debug mode the EA looks for the file in MQL4\files because trying to open that file in debug mode displays a blank screen with a message...
[Deleted]
I have the .ex4 file for the test, but not sure how to open it. I double clicked it,no response from the MT4 terminal. I tried to open it in MT4 ea windows, but no response. How can I open it?
hello there,  I'm building my ea with a mql programmer. I'm a programmer also, but I know vanilla javascript, not mql. Things are not going the way i expected, the ea was made but it works in a certain way, that according with the mql programmer, is an issue with the mql4 language itself, how the...
I'm having an issue with a for statement, constantly returning 0, even though it shouldn't (by my expectation). Any help would be appreciated. I can post entire code if it's not enough to assume everything is correct except something here (for statement checks a variable (min) versus an array's
Is there a script , when you mouse over on bar, it will show the bar max spread ? Like in MetaTrader 5 in the data window thanks
Hi, I apologise in advance if this topic has been covered already, however, I have three computers all with Windows 7. When I install MT4, the data folder appears in a subdirectory of a the terminal with a long name under user data, which I believe is correct. But when I install in my main computer,...
Hello, I try to write the data of the lower bollinger band and the date(time) for an amount of candles into a *.txt file. I don't know why there's an error that says: array out of range in 'save file 3.mq4' (32,19) Thanks for any inspirations. Greez Dan   
Hello! I'm having struggles with my EA.  Right now, it runs the code each tick, not every bar. With doing so, I get ALOT of orders in the same place, effectivly draining my account balance in the backtesting. Here is a picture for demonstration.    As you can see in the picture above, it opens up...
Hello Expert, I'm very new at programming.  The following code I copied from the mt4 tutorial.  It helped find the lowest/highest of the day before.  How can I find the "close" value of that "lowest or highest" candle from the day before?  I tried iclose, but nothing come out correctly.  Thank you...
[Deleted]
I am trying to create a basic hello world dll using codeblocks and metatrader4 and trying to do it in a striped version. my compile .dll and .def are in the same dir as the .mq4 file. in file test.mq4 #property link "https://www.mql5.com"#property version "1.00"#property strict#import "C...
[Deleted]
Hello, is it possible to get in a EA programm the value of a indicator which is "Apply to: Previous Indicator's Data"?
On time frames like hour 4 the last open bar time is 16:00 right before market closes at 17:00. Then when it reopens the first bar starts at 16:00 again. On m1 timeframe chart says market closed at 17:00 and reopened at 17:00. Are these bars cut off or something on hour 4 chart? So the price between
Hello I do all the instructions that one can read 1) delete all hst files  2) change max bars in history to 9999999999 3) and import  M1 Data  4) convert with period_converter but after an exit and work next day all data has disappeared and I have to do all instructions again. Grrrr ! What is the...
If you run the following you get back a time that is not on par with hour timeframe. int n=iBarShift(NULL,PERIOD_M1,iTime(NULL,PERIOD_H1,2))-60;Print(iTime(NULL,PERIOD_M1,n));//Returned value equals something like 23:03 Also in chart, If you count 60 bars with crosshair(click and drag) from an hour...
Hi there I am trying to send some information from metatrader to excel using (mt4excel.dll) but I have problem to wright text into cell using the function (ExcelSetTextCell (int X, int Y, string Value)) for example if I wright (NAME) the excel shows only the first letter (N) any help with this??...
Hello, I have a weird problem: Using EURUSD D1 (Day) data from the History Center for a specific day I see as the Closure value:  1.34286  Now when I run an EA to calculate the RSI for the past 100 D1 bars using closure values, those don't match the RSI indicator in the chart.  When I printf the...
[Deleted]
Hy! I read a lot of article in this topic, but I don't find the solution for my problem. I had a code which is work fine before upgrade MQL4. (My last upgrade was about 1 years ago, so I know a lot of things changed.) But now my MySQL connection doesn't work. I insert the code, and the error
Hi, I'm trying to code an EA that will not react to the huge spread my broker generates during news.  I realize "guarantee" is a strong requirement so maybe "reduce the impact" is a better.  I know there is a slippage parameter in the OrderSend() function but it doesn't seem to work. As always, any...
Hi, I am new to MQL and can someone able to write MQL code based on the following conditions. I would like to draw continuous line based on the following conditions: 1. If current bar close higher than previous bar close, draw the lower price level line (The lower price level is the lower price...
[Deleted]
//+------------------------------------------------------------------+ //| MTF2 MACD BDv09_01_20.mq4 | //| Jeff | //| wolfboy@att.net |