MQL4 and MetaTrader 4 - page 540

To post a new topic, please log in or register
Hi whenever i m trying to add an indicator on a chart that uses/calls a DLL it justs doesnt work. The indicator is there on the list but although i try to drop it on the chart it does not react! It like i didnt... Any ideas? From the Options->EA I ve got enabled Allow DLL imports  Athan 
I started testing EA on Live Demo account. I noticed that EA cycles throe code every time new tick is coming in. I need to keep EA..so to say alive and execute ordersend etc. when some EA condition is true. Closest that I have found so far is one script that is generating artificial tick (..as I...
Tradeing
Hello, i have a MySQL Database at my Wehoster and i want to send Data from my Metatrader to that Mysql Database but because of security issues the Webhoster does not allow access from outside to the Mysql Databse. I wanted to send in real time my Trades into the Mysql Database, can anybody say me...
Hi guys, I have reading some thread about function Comment() but I found reply on my question: How long can be lenght string for function Comment() ?  Thank you. 
Hi All is there an ea out there that will close all orders (Live and Pending) when an account hits a balance of a certain $$ level ( say $20,000 ) As the balance amount would change each week/month, i would want to be able to edit the amount. Any help would be great! Michael
Can any one indicate the option to modify a exiting ea to max order for all pairs. For example;-If i attach a exiting ea in three chart say EU,GU,EJ with max order of 1..then EA can open max one order at time when the ea give the signal....& will open the an other potion when first has been closed...
i want to calculate the orders number that was opened and close in last 24 hours ,and write the code below ,but ,it seems not work .
hi,    i'm trying to learn mql using a book. but still have a couple of very basic questions;   so I wrote a very simple ea that alerts the digit of a chart. how do I run the ea on a chart? #include <stdlib.mqh> #include <WinUser32.mqh>...
hi all, the software multiterminal.net connect directly to mt4 servers and allows trading with multiple brokers (with no running instances of mt4) - is it a legal software? am i allowed to buy it? thanks.
Hello, I'm trying to write CSV files outside of the mt4/experts/files folder. This works. Now I'm trying to do add info to CSV files without overwriting previous info. This doesn't seem to work. I'm not sure if the FileLenght and BytesWritten part is needed (I don't know what they do?) .  Basically...
I was running a visual test on no specific dates, and was putting processor priority on above normal and then high priority, and MT4 has crashed and is unrecoverable so far. I have tried compatibily settings and tried removing tick history. What happens now is MT4 opens on half of the screen and the...
Where can I start learning how to start making programming?
Hello, I'd like to have an EA load a centralized time from the internet. For example GMT.  How to do it? Like TimeCurrent() but then from one location at the internet. Cause if you use TimeCurrent() it differs from broker to broker. I want to have one and the same time over different brokers,...
Hi,   is there a way to create a EA strategy based on historic trades recorded, there are some 10 000 trades done over a three year period and I would like to formulate the algorithm behind those trades. Is that possible?   Best regards, Arnold 
Stuck with code where I need to locate order that has smallest OrderOpenPrice(). Code selects latest open order (position)..why not order where OrderOpenPrice is closest to not dependent what time order was added or position? double   bScanOpn;double   bScanPenOpn;double   TopPrice=0,...
Hello Please tell me how to add validation code Babe closing before opening. If you can give an example of code bude very grateful, but then I'm a newbie. thank you   if   (a>b)  {   It checks for the presence of open orders to buy, and if they have what you need to close them and continue opening...
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...
crystal7
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..