MQL4 and MetaTrader 4 - page 1192

To post a new topic, please log in or register
Hi i discovered that my code can run a lot faster by changing the && to multiple ifs. But how does one handle multiple ifs when an else is involved eg if (A>B && C>D) { Do_XX; } else { Do_YY; } it is not correct to use if (A>B) { if (C>D) Do_XX; } else { Do_YY; }
bagaimana cara setting EA supaya mengambil posisi secara otomatis seperti yang diambil stategy tester, kadang stategy tester ada posisi tapi di trade tidak ada posisi......mohon bantuannya bagaimana caranya? thx
New article Forecasting Financial Time-Series is published: Forecasting financial time-series is a required element of anyinvesting activity. The concept of investing itself - put up money nowto gain profits in future - is based on the concept of predicting thefuture. Therefore, forecasting...
I am using Interbank FX for trading forex. Recently I looked at the ADX indicator that comes with the trading platform. I found out that the values for the ADX indicator is not the same as those displayed on Metastock 10. Any one encountered the same problem?
is there a way? double LastPivot = ZigZag(1);  ???????
Hi everyone. I just joined today, and I have a very specific purpose for signing up. I need help with the strategy tester. I'm trying to back test an Expert Adviser my brother created. I'm running InterBank FX 4 running the base STRATEGY TESTER with all the defaults. It keeps hanging up shortly...
How to open 1 buy order at most and 1 sell oder at most at the same time? Thanks.
How much would the resell rights on an EA go for do you think? Also, how easy do you think it would be to find someone willing to sell?
I want to pass the value a variable from a custom indicator to an EA. Since theEA doesn't use the external buffer I think I an use it to get the data. Is thisright? it's going to be a simlpe int value of 1 or 0. Or are these only used topaint item on the chart. If this is not possible can I have EA...
Hello, I am writing my first Expert Advisor. When i use the compiler I get this message:End_of_program - unbalanced left parenthesis. How gen I resolve this? Thanks, Dropje
Hi Is the Object WindowsRedraw( ) a replacement of the obsoleted function ObjectsRedraw()? Thanks Tom
Hi there, I was wondering what would be the best CPU for speeding up Strategy Tester in MT4. I heard that dual or quad processors are worthless as MT4 cannot use it. So with this in mind the old Intel Single Core 660 (3600 MHz) would be the best, right? Thank you for your comments. Lino
Hi all, I have this entry condition: Bid > High[1], were High[1] is the highest bid of the previous daily bar. I need a condition to avoid the trade if the Bid price forms an up gap with High[1]. How can I proceed? Thank you!
Hello everyone, I am new to metatrader and new to this forum as well. However I am very much looking forward to gaining new knowledge on MQL4 and MetaTrader. I was wondering if there is an indicator on the software of a rather modified bollinger band. We all know that the bands are calculated using...
I am wondering is it possible to measure the degree in mql4, I mean I have a moving average that draws dots, connected with a line, I need to be able to measure the degree the line is going up or down? Is that possible ? Thanks!
Hi All, I have a script that creates .hst files from .csv files. The default path for this process creates the .hst's in the experts/files folder. I then manually copy the created .hst's and paste them into the history folder. How can I eliminate this intermediate step and have the script write...
Hello It is possible to run a batch file (.bat) from a program mql4 EA? Thank you
Two years have passed since the first Automated Trading Championship. A lot of interesting information has been accumulated for this time: statistical reports, interviews with traders, useful articles. We present to you a selection of these materials that are divided into several parts. The present...
MetaQuotes: Dear Jurgen Weichert, Errors found in your Expert Advisors during checking: What is this error? One error? What is that? Big Lot? MarginCall? -- I restricted in three orders. The drop in U.S. influence in its currency USD. -- When the currency rises U.S. dollars and the euro...
Hello, Anyone has CycleIdentifer indicator which does not repaint. Thanks GK
  ADX(14,9) (2)
ADX (14,9) codes? Is there any MetaTrader's ADX indicator allows the user to smooth the value withanother second one: Standard ADX indicator of metatrader allows to use only withone parameter eg. 14, 20 or any number of period but doesn't permit to smooth thisvalue with a second parameter eg. 9, 3...
Hello There, I would like to know the posisbility of regenrating the MAGIC Numbers. I have an incident were my broker reset all my magic numbers for opened orders and My EA was unable to manage opned trades anymore. Your help greately appreciated.
MetaQuotes: Dear Jurgen Weichert, Errors found in your Expert Advisors during checking: What is this error? One error? What is that? Big Lot? MarginCall? -- I restricted in three orders. The drop in U.S. influence in its currency USD. -- When the currency rises U.S. dollars and the euro...
MetaQuotes: Dear Jurgen Weichert, Errors found in your Expert Advisors during checking: What is this error? One error? What is that? Big Lot? MarginCall? -- I restricted in three orders. The drop in U.S. influence in its currency USD. -- When the currency rises U.S. dollars and the euro...
Hello, Some programs would be easier if one could store information in a multidimensional arrays (MA). But, it seems some of the MQL4 functions don't quite handle the MAs yet. I'd like to do SetIndexBuffer(0, SarBuffer[index]); or SetIndexBuffer(0, SarBuffer[index][]); Where SarBuffer is a two...
Hi great guys, I'm new to MQL4 and would need help on some basic things that I didnot manage to search for in the forum. Here is my first tentative code for a scriptto close the current buy order if price crosses below SAR: int start() { //---- if(iSAR(NULL,0,0.02,0.2,0)>Close[0]) {...
Color Printing without Trend lines (Fib-lines) Error ? I am trying to print charts with color, but some trend lines are missing in the print out ! Do I have some ill-settings or is this a known bug @ MT4 ? Thanks for any reply ! :)
Hello, I made a little modification of the conventional ADX indicator, I'd liketo call it Smoothed ADX, please refer to the pic below for comparison, the upperone is the smoothed ADX, lower one is the normal ADX. I wrote the code in EasyLanguage,but i'm not that proficient in MQL4 programming, I was...
Dear Friends, I'm not a programmer, but I want to make mq4 based on rsi 14, on level 30 & 70 alert with a pop up appear "sell or Buy on every pair curency". So if I put this mq4 into eur/usd : when the candle reach rsi "14" into 30 area on eur/usd, it will be an alert with the pop up "Buy...