Download MetaTrader 5

MQL4 and MetaTrader 4 - page 616

To post a new topic, please log in or register
  Help with my first EA (11   1 2)
Hello, I have recently started exploring mql4 language and here is my first, very simple EA. For a starter I tried to emulate this candle pattern: http://www.candlesticker.com/Cs59.asp But when it comes to testing, I have no results at all. Did I miss something? I was wondering if anyone would be...
Hi all, I am looking for an indicator that draws a short horizontal bar through the mid point of bars. Can anyone help me with this? Thanks in advance Mark
Today we release the new MetaTrader 4 Client Terminal build 416, which was announced earlier. Important: From June 1, 2012 client terminals older than build 416 will be no longer supported. We strongly recommend you to update your terminals to build 416. MetaTrader 4 Client Terminal build...
Hi, I have an expert which imports some win32 API functions. One of the functions, WriteFile, returns 0 on error and you have to call GetLastError() in the win32 API to get the error code. However there is a conflict, because mql4 has its own GetLastError. If you call mql4's GetLastError when there...
Hi, I have been struggling hard to figure out for any given symbol, how to find out the number of pips between two prices. Remember some broker give 5 decimals points instead of 4 ( example EURUSD ). I saw all sort of complications when indexes, commodities and other exotic currencies come in...
Can somebody help me to add a Breakeven function into this EA? The idea is that if the price moves in favour for a number of pips set by the Breakeven function, then the stop loss will automatically be adjusted to breakeven. Thanks a million!!
  why won't this code work? (17   1 2)
the EA should open a new trade when the "ask" price drops below a certain price. however, the EA does not open a trade until it is compiled. i am thinking it should open a trade on its own. where are i going wrong? int start() { int j; if (LotDecimal==0) LotDecimal = LotDecimal();...
Is there a way to do this? I see that they're being truncated as the list is getting long ....
  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!...
Hi all, I was just wondering if anyone could let me know if i am on the right track. I am trying to make an EA which measures the highest point and lowest point for the first 4 (1 hour) bars of each new day. I know how to check for new day : bool IsNewDay() { static datetime OldDay = 0;...
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
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...
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...