Download MetaTrader 5

MQL4 and MetaTrader 4 - page 663

To post a new topic, please log in or register
New article Getting Rid of Self-Made DLLs is published at mql5.com: If MQL5 language functional is not enough for fulfilling tasks, an MQL5 programmer has to use additional tools. He\she has to pass to another programming language and create an intermediate DLL. MQL5 has the possibility to present...
Hi, I'm trying to close an order in a condition. Actually I could, but when I close an order in if statement, I dont want the order to open again in next candles. If it is closed, it should be closed permanently. How can I do this ? Is there such a build in method or sth ?
Hey guys, IMO the FIB tool in MT4 just doesn't cut it, sometimes I create a set of fib tools to do different settings which I can easily place on my charts for tech analysis. For example, I like to set a fib in green with 0, 50 and 100 settings, then I like to place on the same chart the fib tool...
Hi I am testing my EA on Oanda metatrader platform. However, I just cannot open a position with Ordersend. Error Ordersend(130): lot-size: 0.1, Ask: 1.3969, SL: 1.3899, TP: 1.4069 What is wrong with the order? Thanks!!
Hi, From the MT4 Drawing tool, there is only line drawing without arrow. Is there an add-on tool that can provide such drawing tool? See my picture (the arrow is drawn manually). Alternative, is it possible to add this feature into the new release as it should be relatively simple to add this...
Hi my EA used to work on the same platform once I reinstalled / updated meta-trader 4 it stopped making trades this is the error i get what can be the problem ? thanks
I can't imagine people not asking this question before, but I couldn't find the answer on this forum. I recently started programming in MQL4, after having experience in other languages. From the documentation I gather that your broker pushes price information to the terminal buffer. When the...
there will be some form of an expert advisor of an order to execute operations other expert advisor? maybe in the new mql5
is that possible for broker to see whatever yoo use to trade on the chart such as : indicators, lines ....? thanks
New article Trader's Kit: Drag Trade Library has been published: The article describes Drag Trade Library that provides functionality for visual trading. The library can easily be integrated into virtually any Expert Advisor. Your Expert Advisor can be transformed from an automat into an automated...
Hi, Does anyone know if there is an EA/Script available that can set Equity SL or Trailing so that I can lock in profits. I have looked everywhere an cannot find one to fit my needs. Any help would be most valuable. Dave.
Hello everyone out there, i have been trying to put in demark trend lines as a custom idicator in my EA. But i wont get it to work. This is the Custom idicator https://www.mql5.com/en/code/8296 In the indicator the IndexBuffer looks like this SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(0...
Dear Community, Can someone speak to the topic of taking profits at multiple stages? I know how to place a S/L and T/P but wanting to know if MT4 is capable to set multiple partial T/P? Thanks in advance if you can help. Sincerely, RRJ
Dear all I would like to try the jobs service provided by MQL5 but I really confused with payment method explained by MQL5 website. It would be much appreciated if someone can explain it to me. What I want to know is, 1. I have created an account on MQL5 and Paypal, but do I need to deposit a money...
Hello, I am a beginner in programming MQL4. I know basic stuff already and I programmed my first EA already but a very simple one. The problem I have is to find out if there are functions to analyze historical data first to get a basis for a trade decission. For example how do I get all highs and...
I am trying to code an EA that exits a trade when the distance between a customised Fast MA and a customised Slow MA reduces by a set amount. The fast MA is L1 The slow MA is L5 L1 and L5 are produced by a separate indicator called CW If the difference in value between them reduces by a certain...
Hello all (but most importantly Slawa :) I am trying to use a dll in an EA, but i get the following error when i try toaccess its first function: 12:51:17 DllTest DAX,H1: loaded successfully 12:52:01 DllTest DAX,H1: cannot call function 'isInitialized' from dll 'test28.dll' (error 127) 12:52:01...
Hi guys, I know there are tons of these sorts of EA's out there but I wanted to code one to learn how to do it. I have managed to put it together with very "childish" coding logic and skill. but it seems to work perfectly with the Sell orders but will not work at all on BUY orders... can...
Hello, I'm having some trouble getting more than 1 instance of MT4 working with Oanda. First version is working fine, EA orders all getting filled in Oanda account 1. I installed another OandaMT4 to a different directiory on my D drive, launch with terminal.exe, load the same EA to the 2nd instance...
Hi, if I change the graphic and add some conditions from "free" indicators like MACD or others with opened code in the codebase can I sell this indicators?? Or is there any licence on it?? Lot's of thanks
  Problem with arrays (13   1 2)
Hi There I'm having major difficulties with certain arrays in mql4... double x1=OrdersHistoryTotal()-1; TS[x1]=11; Alert ("TS X1 = "+TS[x1]); …but the output produces: "Alert: TS X1 = 0.00000000" Why?
can anyone provide indian timings relted to forex open timings of newyork-london-sydney-japan
Is there a possibility to set up the StoppLoss, so that it won't react unless the course closes at least twice under(over) it. The problem is, that there are sometimes Bars that giving a unwilling Signal. I want to filter them out.
Hello everyone, The idea behind the EA is that the price should cross EA and MACD lines should cross in the same direction to place a trade. The code I am using is attached below. For some reason, strategy tester takes trades even when the MACD is not properly aligned(screenshot attached). Any clues...
Hi all! Just my first post here, new to the MQL4 community. Is a very simple question. I have used the search function of the forum, but haven't found the answer. I have an indicator that only put a Comment in the chart to show if an average is below or above another. Sometimes one of the averages...
Hi, embarrassed to ask such a basic question, but can't work out what I have changed to cause the problem. I have a template that I have been using for many months. Have varied indicators, added and removed objects (lines, trendlines etc) All has worked well until today when the objects started...
Can somebody help me. On Strategy Tester, the EA ran fine with default settings. But when I used some values in "SL", the buy or sell did not come. Also, how does "Breakeven" work in this EA? Can it work? There is a command "void"? What does it do? Thanks!
Forum have a similar thread on Public and Elite section:This thread is for Advanced Elite section. Same idea as with others: if you have a good idea for a Trading System? Post here and we will try to develop it (all ideas will be evaluated first of course).(I stole all of that) Just thought it was...
Hi I've spent so much time writing many EAs, changing it numerous times based on various strategies but none of them seem to produce consistent results which is frustrating me. I found a post by bgaitero and his EA performed excellent over a period of 8 -9 years in backtest. (https://forum.mql4...
Hello, How to be alerted when my EA stop running ? There is someone already implemented something like this ? They are 2 PC. PC A PC running continuously a EA, and sending each 5 mins a signal to PC B. PC B PC awaits a signal from PC A, and if that does not append each 5 minutes, triggers an...