MQL4 and MetaTrader 4 - page 1030

[Deleted]
  Monitoring trailing stop  (13   1 2)
Hi All, My broker has the option for a trailing stop. However many times the trailing stop doesn't work. Does anybody know a simple way to monitor the trailing stop on all open orders and close the open positions which hit the trailing stop? The open orders are placed manually. Thanks in advance!...
I am using version 4.0 Build 419. I found an error 138 in my EA backtest in the strategy tester and then I tried to simplify the code to see what was wrong. But finally, it was simplifed to the following code. int start() { OrderSend(Symbol(),OP_BUY,0.1,Bid,10,0,0," ",0,0,Blue); return(0);...
Can anybody give me link on how to download Fibonacci Pivot Point
[Deleted]
friends, When I use Comment(text) where text is defined as string, I get 8 digits decimal output for H3,L3 and pips value as 1.69451000 on mt4 screen in place of 5 digits decimal 1.69451 I want to exclude the zeros. Any solution to get output with 5 digits sunil int start()  {...
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...
[Deleted]
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 ?
[Deleted]
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
[Deleted]
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
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...
  iCustom in an EA  (6)
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...
[Deleted]
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...
[Deleted]
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
[Deleted]
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...
[Deleted]
  trade manager ea  (9)
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...
[Deleted]
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
[Deleted]
  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
[Deleted]
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.
[Deleted]
  Help with MACD  (6)
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...
[Deleted]
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...
[Deleted]
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...