Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1264

To post a new topic, please log in or register
the metatrader/alpari data includes sunday pre openning data, which will effectthe indicators' calculation. look at the sunday period, on the 15min and 30 minchart, there are a few extra candles. on the 4 hr chart, the candles completelymesses up. so if your ea makes money on one and not the other...
Hello, This is my first post. I have gained alot from reading through this forum and Ithank all of you that contribute to it. I have been learning MQL4 (the first progamminglanguage I have tried to learn) for the past couple of weeks so that I may testand optimize my systems. I have no intention of...
Hi. The file attached is another pivot point indicator. I´m working in a modification of the code from another one to look like in some particular way. Everything works Ok if you want to use. But, I added labels (objects) to the lines of pivot, support and resistance to a better description...
The SendMail() function can send emails to one address. Is there a work around that to sendemails to several people?
craig
  ArrayBSearch (6)
If ArrayBSearch returns 'the nearest element' if it can't find a match, how doesone tell if it did or did not find a match? Another question, if I wanted to remove an element from the middle of an array,could I do this? int array[10]; //Remove the nth element int n = 5; ArrayCopy(array, array,...
I'm interested in making an automatic system which performs pending orders basedon a data file. I'm not sure if this should be a script or an indicator, and i'm not sure on howto write the exact code either. I have a script which i made this far (only from little experience in vb):...
Hi, I am a new user of Meta trader. How di I import the indicators on the forum in Mete Trader?
  GSelector (1)
hai... friend... i am new here.. i have buy this ea from russia pls check it weather its good or not... i has amazing result... they said
encoutered this problem. every execution of tester: 2007.01.16 14:58:41 2006.01.03 00:23 HiMeeTest: cannot open file D:\Program Files\InterbankFX Trader 4\tester\files\CONFIG.dat anybody know how to solve this... pls..... thanks,
Hi. As we can see the price on the left margin moving up and down I´m looking for the possibility to do the samewith the indicators like RSI or MACD with the current value. IE: RSI is 35.93 or MACD -0.00290 Actually, you can read the current value of the indicator by pointing the mouseover it near...
Hello All, I'm a newbie at MQL4 and like most if not all I'm hoping to create the perfectprogram that makes lots of money :-). That being said I'm having difficulty withsomething that I fear is probably relatively easy for most. I'm trying to analyzemy last closed order and see if it made profit or...
MetaTrader Forex Tester - Professional Forex Software for Trader. MetaTrader Forex Tester is a professional software of the Foreign Exchange Market. It allows you to gain and improve trading skills without risking your money. You do not need to train in real time, waiting for days and weeks to test...
Here you can vote and support your favourite (whatever that is) trading platform: http://www.soft-ratings.com/ Kindest regards, Diam0nd.
channelHigh= MathMax(iHighest(NULL,PERIOD_M30,MODE_CLOSE,5,1),iHighest(NULL,PERIOD_M30,MODE_OPEN,5,1)); channelLow= MathMin(iLowest(NULL,PERIOD_M30,MODE_CLOSE, 5,1),iLowest(NULL,PERIOD_M30,MODE_OPEN,5,1) ); what i am trying to find is only the candle bodies NOT WICKS, so the highest openand close...
I have a need for a function to call itself and the number of times that itmust do so cant be easily determined before the first function call is made.    Does MQL4 allow a function to call itself (this capabilityis known as recursive calling)???
Hi. I am trying to pull up the sum in dollars of all closed orders in history thatwere from this single EA. After #property link I have extern string EAName = "MyEaName"; double closedProfit = 0; somewhere after int init() I have int i,hstTotal=OrdersHistoryTotal(); for(i=0;i<hstTotal;i++)...
  a bug
Sometime they are a bug when you draw a trend line, it's a different trend linein some time unit
I trade threw FXDD and I’m looking to generate a transaction log at the end of each trading day that gives mea log of all trades in addition to this information: Previous Ledger Balance, Closed Trade P/L, Deposits/Withdrawals,Balance, Floating P/L, Total Credit Facility, Equity, Margin Requirement,...
NorthFinance support tell me that this error is not thier problem? 2007.01.11 18:29:18 '30947': trading by experts is prohibited My Journal Log is full of these errors and as much as I try and tell NorthFinancethat the problem is on thier side, they insist (Gavin from Support) that the problemis a...
Hi. I need to know if datetime is represented as a signed or unsigned long. The typedefinition doesn't say. I'm assuming it's unsigned. BW
Hi, I wrote an MTF Envelopes indicator and it works... sort of... if the line //#property indicator_separate_window is uncommented then it will work just fine, displayed in a separate window. But with this line commented, it simply draws nothing. How do I fix it? What am I forgetting?
Hello I had a problem with one of my custom indicators. after many hours of debugingand summarizing I reached to this piece of code. But this code plots nothing.extern int SlowPeriod=100;extern int FastPeriod=15;extern int MaMethod=MODE_SMA; #property indicator_separate_window#property...
Hi, I am new to the metaquote language and have problems with programing a trailingstop that works. Can anybody help me with the code. Mine is changing the stop correctly when themarket moves up but it also changes it when it moves down even if it shouldn't,this in the case of a Long position....
I use iTime(NULL,0,0) in my EA to print the current time of the current candle. It gives me number like this "1168434000", while on the chart the timereads 2007. 01.10 13:00 for the current candle. Is it possible to convert this number (output of iTime) to the same time formatmentioned above ?
  debuging DLLs (2)
Hello I developed an indicator in MQL language but at the end it was too slow. So i decidedto immigrate to C++ to gain beter speed(hopefully). I know this forum is dedicated to MQL, not c++, but I wish there were some referencesabout debugging dlls. when i define the terminal.exe as external...
Dollar and yen continue to retreat against European majors today in the [url=www.forexyard.com]forex[/url] market after last week's sharp rally. Germany trade surplus and current account surplus both widened more than expectedin November. what do you think about the trend?
Bonjour, Hi, Newbie here, I'd like to design an EA working with a custom indicator BUT i'd likeusing this Ind. on several UT. Eg: Using My Indic with iCustom (...MyIndic....) and getting results with UT M1, M5 & M15. Is there any solution to do that ? If I check how iCustom is designed: double...
Someone emailed me a history file of EURUSD 5m.  How to do I get this intoMT4 so that I can test my EA on this data?
When I am trying to close a trade, I am getting a common error and can't seem toclose the trade. I tried it many times but with no luck. What does common error mean? How do we get around this mess? See attached screen shots.
I have attempted to call the ZigZag custom indicator from my EA using iCustom, but no lines show. If this is possible, can the properties be changed - such as color, width, etc. If it is not possible, and the indicator is placed on the chart, does the codestill get executed twice - once for the...