Download MetaTrader 5

MQL4 and MetaTrader 4 - page 451

To post a new topic, please log in or register
Hi all, I want a script that copies the objects of all open charts and pastes them on all open charts. Searching tells me I will need to use winAPI to access other charts? Any tips one what commands I'll need to use? In the end would it be faster to run a copier script on every chart (writing...
HI am Subramanian,  I need a small coding for placing order ( buy/sell ). Kindly do the neefull 
Hi, all, I've encounter a big problem. I found that many EA which can be successfully compiled before, can't be compiled at the current version, my current MT4 Version is: 4.00 Build 500, for example, when compile XXX.mq4, it prompt: "0 error, 0 warning", but it only produce a XXX.log, which is a...
I cannot access  www.mql4.com last week. I suspect it is a problem of my computer or my local computer . One of my friend told me that he cannot either. Aother friend told me that he can last Thursday...... But today I can reach, too... May I know what is the problem making  www.mql4.com in...
sam
Hi, I want to run my ea each second(for exemple), I don't want to wait each tick. How can I do, I tried to put an infinite loop just after the sart funtion, but it doesn't seem to work. Thanks
Slippage seems easy enough to understand but I'm obviously getting something wrong.    I set Ask to a variable, send a buy order with slippage value 0 or 1, great. Then compare my stated price with the OrderOpenPrice and they are different by 2 points... and this keeps happening.   i.e. something...
Hi All, i am starting understanding and coding indicators and i am a little confused... i've seen inside the code of and indicator that calculates a weekly pivot point this line   last_week_high = Close[i+1];  i don't understand why this line is not this other one: last_week_high = iLow(Symbol()...
How i can backup trades in mteatrder manager
dear guys I made a EA using a indicator. I write a code below:    double val=iCustom(NULL, 0, "RI - Pro",0,false,false,false,2,0);    if(val<5000) gi_buy = TRUE;  when run my EA with Strategy Tester, tester running too slow and in journal show lot of message like below: 2013.06.12 08:49:41 2013.04...
Hi everyone For long time I've been waiting for Metatrader development team to say any news about MT4,5 on Window Phone 8 .............. I'm not a big fans of iPhone and Android ,  I really want the development team to consider to make Metatrader available on WP8 To all concerns please just...
Hey there venerable MQ4 programmers. A quick question.  Not going to include code or anything because its not really necessary. I was messing around with an EA yesterday and decided to try something.  You can do it yourself pretty easy. S/L is X and T/P same X;  So maybe 50 and 50 or 100 and 100, or...
hello,  expert advisor  EURUSD window isopen. When 1 minute.  this case, the maximum value (a) matter. (Themaximum value the current chart (a) ) After 5 minutes, you get the value of a small bvalues. (b the value of the first = a+5 minute) makes the first minutes after the new b yi. made up of one...
Mod edit:  DECOMPILED (stolen) CODE REMOVED !
Hi,if I take the source code of a certain indicator and start coding an EA right in it,will it work or do HAVE to make a new expert adviser file?? Because I see that their structure is the same,I am just not sure mql4 allows it. Thanks..
Hey folks, since I wasn't able to find any direct answer to my question via google nore this forums search function, I have to bother you with my question: Is it (generally) possible to create a new order-window via mql4? I know that it is possible to write an expert advisor and fill in the...
Hi  I m trying to create a very simple EA (thats my first one) that will use a simple indicator to enter and exit a trade. This indicator has two lines (Buffers) a green and a red. So I want to enter the trade when green & red cross and exit when they cross again AND RE-ENTER the trade. I ve created...
Hi all, I often use the following to check times and efficiency int timing = GetTickCount();//lots of stuff heretiming = GetTickCount() - timing; I get values of 0 or high value but I never seen values 1-14 One part of code fluctuates between 15 and 16 milliseconds but is sometimes 0... I'm...
Hello Please tell me how to calculate the value of high low open close previous candle? Maybe just a piece of code there ...
Will a expert advisor continue to make live trades if metatrader isnt running? For example if your computer is turned off.
please guide where to find working MT4 dll? facing below issue Could not load file or assembly 'MT4API.Shared, Version=3.1.0.0, Culture=neutral, PublicKeyToken=e10c4a4b31a26875' or one of its dependencies. The system cannot find the file specified.
hi coders, i need to give send e-mail alert for below code. I add Sendmail() function but when i compiled i got wrong parameters count. I'm new programmer so please help me xD look at this code what is wrong ;) //+------------------------------------------------------------------+...
Does stop level of a pair equals its spread? Or those are totally different things? Or maybe they usually close in values?
Dear guys I am new in MT4 coding. I made a EA base on a indicator. I am using icustom. But I am facing a problem. indicator give buy/sell signal on 5 TF of a candle  then my EA take immediately trade on indicator signal. problem is that when my trade close on same candle, EA trade again because...
Hello, I was thinking to solve the next problem: If last price=Bidprevious and actual price=Bidcurrent, I would like to know when Bidcurrent=Bidprevious+(n*pips): ex: Last price=1.4000      Current price=1.4005      And I would like to open trade only when the actual price will be 1.4010. I tought...
Hi, been using Meta Editor for over 5 years with no problems. Yesterday, suddenly it stopped producing ex4 files. I have the perfect code saved as .mq4 files but now if you press the "Compile" button it says it has completed ok, but there is no .ex4 file in the same folder as the source file. Until...
Hi all, I'm wondering if imports and includes are all done at the start of a file, or done when they are first needed?  I have a script that places an immediate buy or sell order with OrderSend, then uses OrderModifty to add stops, and finally after the dust as settled, uses the imported functions...
Dear All, I was wondering, has anyone tried to code an indicator in the subwindow displaying its value in pixel and 2 vertical line place on the same subwindow on a certain pixel point. e.g. If I used a CCI... Could you please direct me to the tread or a sample would be most helpful, because I have...
Hi guys, first post and new to this platform, I received some Ea's to upload, and can't doit, (using wineskin) I'm thinking its a MAC problem because other colleagues havnt had any trouble, they are using PC's i have the TECH guys looking into, but they have been quite for two days now. Any one else...
1...444445446447448449450451452453454455456457458...1244