Download MetaTrader 5

MQL4 and MetaTrader 4 - page 881

To post a new topic, please log in or register
I'm sorry if I've missed something really obvious ... Is there an order state I've missed which indicates an order has changed from pending to active? I've been doing this by checking if highs and lows have equaled or exceeded the OrderOpenPrice(), but it seems there ought to be an easier way. Is...
Have any one tested this EA? I really would like to try this on my Live Account but could not get the proper EA code. Every time I download the code in my Expert Advisor, it only shows: EX4  I don't know what it means. Can anybody HELP?
  Crossing MAs (1)
Hello, I am trying to achieve my first EA. The strategy is this: buy when the Moving Average 18 is under the MA9 and close when it is the contrary. I can't find why the closing orders don't work... I need your help! Thanks!...
  Random values in a loop (20   1 2)
Greatings MQL coders, I would like to generate multiple unique random numbers between 0 and 1 within a loop. The problem is that every loop returns the same range of 'random' values (yes, I know this is because the MathSrand uses the same iteration id, over and over again, but I know no better...
Hello Everyone, Please help me with the code for this new EA called Sputnik I'm very bad with programming so what I'm really looking for is for someone to write the whole thing hopefully:) I tested it extensively manually with very good results. 2 indicators are used: ADXcrosses https://www.mql5...
when you make a function call to a user defined function from within an iteration of a for loop, for instance for (i=1; i<10; i++) and after the 3rd iteration an if statement becomes true and makes a function call to the user defined function, does the program ruturn to the exact same position in...
I can retrieve everything else from prices to comments, in an order except the Magic number. Even when I enter a hard number, no variable, it comes back as 0. Can anyone tell me why? Thanks.
Hello all, I'm currently working on an indicator for a system. need some help on how to measure distance between two trendline as per below diagram Thanks for your help. Hairi
How to draw 2 RSI(13 days) and RSI(42 days) at one Chart?. write code in 1 indicator .thanks a lot!
hi coders, i had an idea what could make it much easier to place a buy stop / sell stop order instead of doing it manually by pressing f9 and typing the limits, stoploss etc. therefore i thought about placing a line into the chart and then start a script with a hotkey and the line-value should be a...
Dear Support, I am using MT4 build 225. In my chart while trading, my template folder shows all of my saved templates. I can apply them to my charts. Everything is fine. However, when I go to my hard drive to my template folder, 6 templates don't show up in the folder. In MT4 while I have the...
Nice Article on filters for Newbies like myself:https://www.mql5.com/en/articles/1577#9997 I'm a Newbie system developer and all the methods the author describes is exactly how I optimized my first couple of systems. I did those thing in that exact order as a matter of common sense. What I was...
New article Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners is published at mql5.com: The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a...
Hi, I will first get out of the way my thanks. I am having a problem just coming up with a very basic program. I would just like to analyze the 1) HIGH 2) LOW 3)OPEN 4) CLOSE Of the last "x" amount of bars. For example, in excel I could use : E3 = Last Price of this current bar E4 = Last Price of...
When I am on a 5 min chart my custom indicator shows the latest value. However on the 30 min chart it doesn't show the last value until a new bar. Is there a way to make the indicator show the latest value before the next bar is drawn? I've tried calling WindowRedraw() everytime the .txt file...
Hello!! I am a newbie in this forum! I have a formula in Amibroker! Please help me to translate to meta trader! Thanks!! This formula in Amibroker is: //duncheonChannel A=Ref(HHV(H,20),-1); B=Ref(LLV(L,20),-1); DC=MA((HHV(H,20)+LLV(L,20))/2,20); Plot(A,"UPPER",colorBrightGreen,styleDashed); Plot(B...
All I have to say is that forex is the best job in the world. You get up when you want, you work as much or as little as you want, you take breaks when you want, go on vacations when you want, no fixed work hours, no bosses, no deadlines, how you make it for yourself is how it will be. Simply put,...
I've got an issue I can't really figure out. The EA I'm coding has multiple trades that open on H1 independent of a 30 period MA on D1 I'm using as a close signal. Ideally, a buy would open on the top side of it and close if it comes back to it, vice versa for sells. I don't want to discount the...
hi .. pleas tell me what is the diffrences between EA & INdicator ( mostly work, use, codening & simplicity ) thnks in advance. for reply.....
Hi all, In case the EA has the function "Starthour" and "Endhour", please teach me how to adjust the EA for working 24 hour/day ? Thank you !
Hi all I'm new to metaquotes and I have worked through some of the material to help you create your own codes but it left me in a tail spin and so I come to you asking the following. I'm looking for an indicator that is able to give me a signal (sound & sms/email) one the 8 ema crosses the 20 ema -...
Hi forum members, While working in Telequote for last few days I observe one indicator deviced by famous Asian TA Fred Tram. The logic is very simple, it generates uparrow signal if the candle closed above its previous N number of candle highest high and generates down arrow if the candle close...
Hi, I'm fairly new to mql4, so please forgive me if this question is blatantly obvious.. I'm wondering whether or not it is possible to count the number of ticks in a parabolic SAR (i.e. if the SAR is > price and previousSAR < currentSAR then it is a 'downtrend' with 2 ticks [at least], but I would...
  Neebie to MT4 (3)
I am a new comer to the world of MQL4 and having a hard time opening the indicators after I have loaded them on the platform. I can see it under custom indicators on the platform but when I double click to open it, nothing happens. Can anyone help me this problem?
New article An Example of a Trading Strategy Based on Timezone Differences on Different Continents is published at mql5.com: Surfing the Internet, it is easy to find many strategies, which will give you a number of various recommendations. Let’s take an insider’s approach and look into the process...
I'm a newbie to programming - when i say newbie I mean I don't know anything about it. I would like to know if there is a program avaible that can alert me via sms of the crossing of 2 moving averages. Then also an indicator with sms alert of price (candle) closing above and below a moving average....
Lately I come around a few EAs that forward test fine but fails back test oroptimization. It looks like fault is in Icustom (). I did change EA that it only calls Icustom when it needs it. Anybody knows any way around it? Anyway to increase execution time limit when back testing or whenoptimizing?...
Hey there, I'm having a hard time with one of my strategies, it works perfectly but once a whipsaw or sideways trend appears it performs extremely bad. Here is an example: I work with different indicator crossovers to initiate a market entry or exit, but once this whipsaw pattern appears...
I succeed to install MT4 on MAC OS X (iMAC 27" core i7), but it doesn't work well. I used wineBottler to install MT4. I cannot install MT5 on the same machine, the procedure start but wait indefinitely on the prompt : "Welcome to Meta Trader 5 Setup!" The software refuse to go further, the buttons...
I was trying to code a dashboard indicator based on some sample code which I found online. The code is: //+------------------------------------------------------------------+ //| FLI_MP_HAS.mq4 | //| Copyright ? 2009, MetaQuotes Software Corp. | //| http://www.metaquotes.net |...