Download MetaTrader 5

MQL4 and MetaTrader 4 - page 901

To post a new topic, please log in or register
Hi, I coded an EA that can open positions on multiple symbols. So if I backtest it on GBPUSD I'm expecting it to open positions on other symbols as well, like EURUSD, but this gives an error. Here's the code that returns an error when I backtest in a different symbol than EURUSD. The error is error...
[Update on 07/24/2010 - Please see my newest reply] I only need this for use in an EA... I need to be able to get the value of the linear regression line for a period of 8, but I need to know the value for both the current bar, and a previous bar... Aka.. I'd like to do something like... if...
  disply price (1)
how can i display the entry price on the chart
New article How to Write an Indicator on the Basis of Another Indicator is published at mql5.com: In MQL5 you can write an indicator both from a scratch and on the basis of another already existing indicator, in-built in the client terminal or a custom one. And here you also have two ways - to...
Hi, I need transfer data from MT to excel through DDE server from multiple brokers. How do I it? Transfer data from one broker is ok, this is easy. Multiple? Thanks. :-)
Hello, what is the best free builder advisor for Meta trader for someone with no idea about programming ? It would be important if it comes with some kind of explanations. Kind Regards.
Hello .. I want to get maximum of high of 5 or more pips .. for(i=1;i<=X;i++) { if (iHigh(NULL,perioda,i) > max) max=iHigh(NULL,perioda,i); if (iLow(NULL,perioda,i) < min) min=iLow(NULL,perioda,i); } I think its good. Minimum is ok .....
The usual sales pitch and it wont be arount long blag. One thing did appear though and that was that if the EA did not work in MetaTrader 5 they promised to update it. So thought I would ask the question, will MT5 be guaranteed backward compatable or not? anyone know?
I am not familier with coading and would really appreciate it if someone could assist me to understand what it is I need to do to get this indicator to work. Thankyou, Pat.
Hi, I hope someone can help me. I'm running the code taken from the MQL4 Book, which is called tradingexpert.mq4, in the section Simple Expert Advisor. I'm trying to perform a simulation of this code in Strategy Tester. The program has been successully compiled and loads into the tester but does not...
The script i generated with my EA will not "move" to my MT4 program and become active. Im a complete newb to this. Where can i find tutorial?
B"H Hello, Trying to run the strategy tester on a certain symbol, "TestGenerator: no history data ..." message is plotted to the journal window. { I'd like to emphasize that symbol's graph is open at the same period in which I'm trying to run the Strategy Tester } How (and where from) can I download...
Hello MQL Team, again this picture has the question:It is possible that you create a indicator of the TOTAL long and short positions. Many trader have a look at the commitments in Numbers, but many traders looks at the percent numbers. If you create both sides, than could make the trader his own...
That's exactly right: people need to learn to QUIT. Anything in life can be PARDON but if you cannot quit, you will have to pay eventually. It is like begging for death, creating unecessary defeat. FOREX is like that. OVERTRADING is something we all need to learn to quit. Don't do it for fun! Forex...
Hello, I need help from anybody. I ran an EA on EUR/USD; GBP/USD and USD/CHF with demo account. It was great. However, when TP, GBP/USD and USD/CHF shows record in the account history but EUR/USD didn't. I don't know why. I really appreciate if anyone can help and tell me why?. Thank you in...
How is Statistical Models programmed and tested for retail Forex? I cannot find the answer to this simple question anywhere on-line. I cannot even get a direct answer for a definition of Statistical Models in FOREX. Somebody who know how this strategy works please help.. I'm begging you...Lol.
I'm having a problem in my hedge EA and would like someone to help me. When a request arrives SELLSTOP or BUYSTOP (hedge), EA has to remove the Take Profit of first order, but does not remove! Someone please help me in code base: NAL_NONE 0 #define SIGNAL_BUY 1 #define SIGNAL_SELL 2 #define...
Sorry, That was a typo. I didn't copy and paste that code from my ea. It was supposed to be this; double BotBand1 = NormalizeDouble(iEnvelopes(NULL,0,FastMAPeriod,MODE_SMA,0,PRICE_MEDIAN,Bot1,MODE_LOWER,1),5); double TopBand1 = NormalizeDouble(iEnvelopes(NULL,0,FastMAPeriod,MODE_SMA,0,PRICE_MEDIAN...
Hi Pors. How large a maximum drawdown(in percent) is generally acceptable to you? Do you have a guideline?
Hey, I need to find a way to calculate the pip movement of the pair for the last x seconds, for instance the last 5 seconds. I know I should do something with Time[] as it is in seconds, but not sure how to structure this, please help! Thanks
hello Mql Team, it is possible, that you programing a indicator, which shows the market position. Is the market long or short ? Thanks
I'm trying to figure out how to make a (compact, low overhead, efficient) module that at a specified time, will set a Stop Loss Point relative to the Current Price for all open, active trades; set Trailing Stop Losses and then close the EA. I would prefer that it not be a Library file as their is...
Do not be surprised that thesame question is rased by keylove we are thesame. Assuming am using ema5 and 21. before place buy i will makesure that ema5>ema21on 1hour timeframe when new candle formed on 1hour then 1 will stead wait for newcandle to form on 5mins timeframe when ema5.ema21 before i...
please i want to enter trade base on this sstrategy in thesame EA and i do not know how to do it. when a new candle formed on 1hour, i wiil  wait till a new candle form on 5mins before i place a trade.Where am having problem  is i do not know how to code it in a single EA i can code the one of 1hou...
Hi all experts, This code does work but very erratically. Quite often when the conditions below are met i.e Ask >= buyprice, this block is entered but the ORDERSEND command does not process the order! I have checked it enters by looking at the new values of 'newcandle' which only change when it...
On the website of the Automated Trading Championship 2010, we've published the new article: The Complexity of Transition to MetaTrader 5. It describes the difficulties that developers of Expert Advisors may face during the transition to the new platform. Read the article to learn the effect of the...
Hi !! Sorry if the question is a little trivial. Is there a difference in the way these statements are executed/interpreted in mql4 or are they the same thing? if (shorttime==stable){if...
I don't know where to ask this question, but it's a general MT4 question rather than a MQL4 question. I can only open the EURUSD chart on my MT4 installation. Doing the chart+ button thing only shows EURUSD. Doing File->New Chart also only shows EURUSD. Ideas? I know the simple solutions (like...
New article Testing Performance of Moving Averages Calculation in MQL5 is published at mql5.com: A number of indicators have appeared since the time of first Moving Average indicator creation. Many of them use the similar smoothing methods, but the performances of different moving averages...
hello everybody well im kind a newbie in forex and also en metatrader. today i found something very odd i work in both the metatrader (4.226) y and the MQL4 fxcm station i left an oder to close in certain price n the chart, yesterday night well now i see that according to the mql4 station i made a...