Download MetaTrader 5

MQL4 and MetaTrader 4 - page 918

To post a new topic, please log in or register
Hi all with variable spread of FxPro, I can see very large spread like 56pips on sunday 23H and very tight like 8pips on Monday 11H. what do you think about using spread as a activity index that indicate pairs is in good activity and can be trade easily (and of course, with less $ for the spread)...
For certain reasons (such as programmatically combining two compiled indicators), I'd like to wrap an indicator in a new indicator and use the iCustom call to get the values to paint on the screen. For example, I have an indicator called CCI2 which basically has an iCustom call to CCI but paints on...
I'm trying to write an EA that limits trades to once a day. However, I cannot find a function for time that will work when backtesting ( the system checks the current time, not the timeframe thats being backtested). Has anyone developed a function for this, or am I missing something obvious?
Hi all, I am writing a simple EA to email alert me when there is moving average crossover. eg SendMail(Symbol() + " 20>50","Date and Time : "+TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS)+" \n"+"Currency      : "+Symbol()    +""); I would like to know how do I add code, so that I know the...
Hi everyone, I am relative new to MQL4 so I need a little help programming a new Indicator. I already programmed it in NinjaTrader but I could not do it in MT4. So I hope someone can help me. Description: I call the Indikator Insidebarindikator, this is a translation from german so it might not be...
Also I'm trying to do is use Meta Trader to load an MACD. but all I get is the histogram (which I don't want) and one line. What I'd really like is to receive the regular two lines so I can view when there's a crossover. This is probably too simple, but I can't make it happen on MetaTrader. Can...
  BUG report (1)
the following code can compile ok, through it miss one param. void test(){    int bufid=0;    string shortname;    int type=1;    int tradeType=1;    SetIdxStyle(true, bufid, shortname, /*miss param suffix*/ type,tradeType);}void SetIdxStyle(bool used, int& bufid, string& shortname, string suffix,...
As many do, I have multiple demo accounts on the go at once. Lately I've been having problems with them crashing, so have been removing & reinstalling them etc. I have a 'Multi-Account' MT4 client which gives one a single, centralized view of the current state of all of the multiple accounts; but...
I didn't think the virtualstore was going to be such a problem with windows7 and MT4. However I'm finding out pretty slowly that changes I'm making in the virtualstore folder isn't propagating to the \programfiles\ folder. Should I go back to winxp? or do I have to delete the files in...
hi please i wanna add sound alert to this expert when it (opens or close ) positions thanks //+------------------------------------------------------------------+ //| This MQL is generated by Expert Advisor Builder | //| http://sufx.core.t3-ism...
Somebody knows about an indicator based in Fibonacci that give audible alerts ? Thank you in advance to whom respond me. Best regards from Argentina, Betowm
Does anyone know where i can get history data for the AUD/CAD for dates earlier than july, 2007. I have a therory about my ea is that it only works when the economy is just going to the dogs, which is about as far back I can get data. If I can ckeck 2004 to 2007, then it will let me know if the EA...
Hello All... I made an EA that I have running on 9 different currency pairs on 5 minute charts (same EA running on all pairs, with a different Magic Number for each pair). I've set "Ask Manual Confirmation" for each one as I need to make a quick visual check before I give it the OK. Once I...
Hello, I am having problems with part of my code. the breakeven part of the code is working how it should, however the takeprofit modify part is not working correctly. Here is what I want the following code to perform. If I have more then 1 open order I want the loop to modify all orders to the new...
Hi all, I am using MT4 for a long time...... i am very continent only with meta trader...... i feel very uncomfort to use metastock or amibroker. Does anyone help me in importing the EOD data from excel to metatrader....... I am tracking indian markets only...... is it possible to import the data...
Please, can anyone put me through the above named caption. I've calculated the pivot based on previous day's high close and low and it seems not to tarry with others
Hello everyone. I am new to trading but I can find my way around. The other day I came across a contest at www.mt4brokersreview.com and I want to enter it cause the prize money is great and I'd like to give it a shot but my problem is since I'm new to trading and never been in a contest before, what...
hi everyone, I noticed that if I click on the graphs on my metatrader, then hit spacebar, a command line style input shows (please see attached image). Can someone tell me what it is for? And if it's useful please tell me how to use it, or where I can get more information on it. Thanks again! Have...
Can somebody give code formulas how to calculate Margin and Leverage. Thanks.
How can I add an arrow to a fixed position using x,y coordinates? Labels allow you to do that but not the arrows...so what other tricks are there for doing this?
The formula for the volume weighted (or volume adjusted) moving average is... I have added the function vwma() to MetaTrader's Moving Averages.mq4 and called it myVWMA.mq4 (attached). The difference between the VWMA and the SMA (simple moving average of the same period) is a measure of a trend's...
Hi, I am trying to code an indicator which uses another timeframe for same symbol. I dont want to open this other timeframe's chart for updating its data. I am using ArrayCopyRates for that pupose. This indic should run for the FIRST time and then for only FIRST TICK of new bar of other timeframe. İ...
  Error 130 Please help (18   1 2)
I'm new, so if it has been discused before, just point me to right direction. I wrote an EA like martingale, and back tested it, works just fine, no errors, but when I add it to the chart (demo account) it gives me error 130 No matter what I do, I get the same error, I even cleared the code and made...
Hi I just want to an alert or sound appears when the candle has closed. Could someone help me to get the code please? I'm really newbien and I don't know a lot about mql. Thanks !
Hi friends, am looking for guide for newbies to optimize setting of EA.Please if somebody have any pdf,html etc material lets share with others.
I have made simple script which give me the information about the decimal places after decimal point and Digits function. I have strange result for http://www.fxcm.co.uk/ BROKER. It always have 8 places after decimal point but you will see only 1,3 or 5 decimal places. In result my EA does not...
  Time "Offset" (11   1 2)
I am using a VPS to host my EA on Forex.com because when I tried to run the EA when the MT4 client was on my machine it would time out overnight and I'm trading off the London market, and the platform displayed GMT. Anyway my EA and indicator were aligned fine timewise with the client on my computer...
RefreshRates() before OrderSend() function does not resolve the problem. Have anybody any other idea?