MQL4 and MetaTrader 4 - page 189

To post a new topic, please log in or register
I am able to manually export mt4 historical data for forex EUR/USD as a csv file. However, i run my excel spreadsheet for calculation and would dearly love the hourly candlestick prices to come in automatically. (Open High Low Close Vol) Anyone able to suggest?
If I use my EA on a broker with a license number greater than 10 it will not work. The EA calculates the license number by multiplying the mt4 account number and this value is then entered into a "LicenseNumber" field of the inputs. For some reason, if the calculation is greater than 10 digits it...
I am writing to a CSV file and for some reason it is writing the wrong information. The string to be written contains data such as 0.59;0.37;0.04 but instead 0.00;0.00;0.00 is written. I confirmed during debugging that the correct information is contained in the string right before it is written....
 I don't find MT4.EXE File. Can someone tell me where I can find it THANKS
Hi i am seeing chart of USDINR in which the value is shown as 53.413 i want to see only  upto two digits i.e 53.41 how can i do it please explain with screenshot if possible easiest method to do that
Hello Im trying to draw lines when the RSI and the signal line cross on a TDI indicator. I added a loop to the code as shown to try to create vertical lines, complies but in strategy tester i get #4200 error "#define ERR_OBJECT_ALREADY_EXISTS" Im not sure where it exists. Maybe my loop incorrect..?...
  trend line support (13   1 2)
what am i doing wrong here causing the trend line to not take price 2 position in the negative bars region? //+------------------------------------------------------------------+//| HLTL-RAYS.mq4 |//| Copyright 2016,...
Hi... I newbie mql4...I want return value of first trade OrderOpenPrice to open pending order. My code get error of " ")"-not all control paths return a value". Please tell me what mistake I maked? Here my code:
When Green Arrow Shows Up It Make a Sound ( by Choice )  When Red Arrow Shows Up It Make a Sound ( by Choice ) 
Hi Community,   after I installed a new instance on my brand new laptop I realized that opening a chart directly from the Market window (via Ctrl+Click and drag onto the 'work area') does not load the chart into a new window but rather it replaces the one in the window which has the focus. As I seem...
kenorb
The following script compiles successfully, but hangs MetaTrader 4 (build 971) after run:   class Market { public:     static double GetPipDigits() {         if (Digits < 4) {             return 2;         } else {             return 4;         }     }     static double GetLotstep() {       double...
Hi everyone, Thanks in advance for future answers. I'm liking what I've learned today in regards to dealing with iCustom and interacting with objects on the charts. However, I have this .ex4 file and I don't know how to get the color of the indicator at a specific time or whether or not an arrow is...
Hi all, I'm new here, I've been trying to write an EA for the last couple months and finally got something working right. the problem is I have two accounts with 2 different brokers: Oanda and ThinkForex. My EA performs well on Oanda EURUSD, the one I developed and backtested on, but when I run the...
Hey everyone, I have a strange problem. An EA I coded tests fine on everything but CHF and JPY pairs where sometimes erratic prices form and won't normalise. For instance, the ask price from yesterday for NZDJPY at 22:00:03.357 is 77.11499999999999. I then normalise that as part of the process with...
I would like to be able to take the function below which saves a screenshot to a file and attach a listening function that saves a screenshot every 5 minutes or so. What would be the best way to go about this in mql? int start(){ if(!WindowScreenShot(StringConcatenate(Symbol(),"_",Period(),"_"...
How can I download (save as text or Excel sheet) my current Working Orders from the MT4 terminal? TIA
  error 133 (1)
I have a good EA - IT IS GOOD - no errors at all - really... there are ANY errors. Positions are properly handled BUT i'm geting error 133.................... I will not try to ask mt4/5 support for answers it's useles... i only want to know is this another method to disable profitable EA's from...
There are 32 different speeds for MT4. The first 31 seem to go at the same speed which have me doing a minute bar in 5 seconds. The last one, has me doing about 15 bars in one second. Way too fast. I tried using different MT4 platforms to correct this. Anyone else is having this problem?
Hi, Lately i did read about this indicator, Mcginly indicator or McGinly dynamic indicator. I am interested and want to download it, but this seems easier said then done.  Is this one still available for download(i understood the indicator is a little antique :0 ), and is this one availabe in MT4?
Currently I'm writing a program that has "#include <Filter_BacktestPeriod_WinLossTieConfirms.mqh>" and "#include <NewsFilterWriteToAvoid[].mqh>." Filter_BacktestPeriod_WinLossTieConfirms.mqh declares the global array "Avoid[]" as shown below, while NewsFilterWriteToAvoid[].mqh is meant to write '1'...
Hi, I've searched over the internet and this forum about running chart events in strategy tester and everybody confirms, including MQL4 documentation, that chart events don't run in the tester. Then I ran into this simulator (http://mt4-trading-simulator.com/index.php) that has full-fledged GUI...
How do I pass a sub-array of a two dimensional array into CopyRates? The code below doesn't work MqlRates c[3][200]; CopyRates("AUDUSD", 0, 0, 200, c[0]);
Hi all, I use to put my pending orders using, of course, entry price and TP/SL. I would have also additional information, i.e., margin required or pip value in order to have clear idea of money associated to SL and TP. The preferred choice is have the opportunity to choose if set SL and TP by price...
Hello guys, I need to set all the arrows that come out in the graph permanently. With this code, if it goes off the internet connection, they disappear from the graph and do not want to happen. How can I fix the arrows permanently? Thank you all       //Indicator Buffer 1 Caso Sell      if(iMA(NULL,...
Hi Guys, i've the following code sample:void OnTick()   { //---    /* Check for Open Orders */     for (int cnt = 0; cnt < OrdersTotal(); cnt++) {             if (!OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)) continue;                if (OrderSymbol() == Symbol()) {...
Hi I have been trying to put together a simple alert that will do the following: Place an UP arrow under a candle that has met a set of criteria (e.g., Close[1] - Open[1] > 10 points) Place a DOWN arrow above a candle that has met a set of criteria (e.g., Open[1] - Close[1] > 10 points) The arrows...
I have a new live account. The leverage could be anything from 100:1 to 500:1 How do I determine what leverage this account has? Is it possible to find the leverage within the terminal interface?
Hi, with the code i send as attatchment im happy with except i dont know why it tests too slow when tested on tick test. Im thinking it might be because ive laid out everything within the OnTick event handler and so is overworking the CPU in my PC.  Should i look to code this using more made up...
Hi all, I'm very newbie to MT$, scripting and coding, I'm using a script, that I have downloaded from the net, to put multiple pending orders, it works fine, but it work continuously and never stop until I remove it from chart. Maybe the wrong thing I do is let start script as EA, is this wrong?...
Hi, I'm really big on making programs that not only just bug free, but also look nice. I noticed that MQL5 has some features to create GUI's. I know with the latest MQL4 upgrade, some of the features from MQL5 are now available on MQL4. Does that mean I can now use the graphical libraries from MQL5?...