MQL4 and MetaTrader 4 - page 1300

[Deleted]
Is there any way to add user-defined parameters to the list of optimization parameters?
Hello, I have a huge problem with a new indicator that I wrote. Basically it is an indicator that calculates trend values for all time frames from all currency pairs and sums it up in a table. The problem, once I attach the indicator the platform freezes. I think the platform does not have all...
[Deleted]
I'm having a problem in my hedge EA and would like someone to help me. When an order reaches SELLSTOP or BUYSTOP (hedge), the EA needs to remove the Take Profit of the first order. Thank you!
[Deleted]
Hello everyone, please i need your help on this ea (attached). the issue is that it delays opening of orders when it matters most,even when all my signals are true, sometimes it opens an order 4 candles after all the signals have been confirmed, meanwhile i programmed it to open an order,once all...
I searched extensively for this and found lots with much more complicated issues than this, but I can't find and nor understand how and why dividing and array in half correctly 'resizes' it when I have just entered the count into the Array with OrdersTotal()
Forex News Reader - 4 market opening clocks with dim/glow color to identifiy market open and close - Voice notification with market open - Supports proxy in case your computer is under proxy server - Displays day/upcoming economic releases(in Eastern Standard time(NY Time)) -...
[Deleted]
Hi, I'm new to MT4 and mql4 and would really appreciate some help with a code I've been working on. The code is supposed to find the most recent high (multi-candle high that is, not the high of one candle) and then search for the previous high that is higher than the most recent high. Then it would...
[Deleted]
Hello all, I have this question, if is possibile to resolve... Can i make in a IF operation made more level in one parenthesis??? Example: if (((Num1> Num2 && Num3> Num4) || (Num5> Num6 && Num7> Num8)) && Num9> Num10) Num1-2-3-4 data and Num5-6-7-8 is possible to separate to their function? Like a...
[Deleted]
Hello, I am a beginner, trying to convert the momemtum indicator from MT4 platform to an EA to do further testing and also to learn how works the process of building EA on MT4 ; The code I have is the following and it returns 2 time the error 'iMomemtum' initialisation expected. I have tried...
[Deleted]
Is there any MQL code that will determine how much $ per pip is gained/lossed with a buying size of 0.10? For example at aplari, buying 0.10 will result in a trade that gains or losses $1 per pip. At other brokers, buying 0.10 will result in a trade that gains or losses $0.10 per pip. And in...
When I back tested from year 2006, the EA works fine. But when I switched the year earlier to 2005, the back test did not work. Is there anything I miss in the code for the old years?
[Deleted]
Hi there My Custom Indicator creates an interger, and displays it on the window using the ObjectSetText function. It displays it as a graphical object, so I can not call it direcly from the iCustom...... code. This is how the Indicator displays the number ObjectSetText("cur_score",...
New article OOP in MQL5 by Example: Processing Warning and Error Codes is published at mql5.com: The article describes an example of creating a class for working with the trade server return codes and all the errors that occur during the MQL-program run. Read the article, and you will learn how to...
New article MQL for "Dummies": How to Design and Construct Object Classes is published at mql5.com: By creating a sample program of visual design, we demonstrate how to design and construct classes in MQL5. The article is written for beginner programmers, who are working on MT5 applications. We...
[Deleted]
Need some quick guidance. I am trying to reference a custom indicator in an EA. When the indicator is one line, it is very easy and straight forward. However, if the indicator has multiple lines, I am not sure how to reference those individual lines. If the indicator named SampleInd has line1...
[Deleted]
I am getting a 4 digits results on 5 digits broker when calulating any of the indicator. For example: iBand return 1.2222 on 5 digitis broker (on the chart windows it shows 1.22226). I have tried normalizedouble(price, digits), however it still giving back 4 digits. I am using FXCM broker. Has...
I have to know, how many closed orders was opened in current day. If there was more than 9 orders in current day, then Expert Advisor should not open next order. I would like max 10 orders daily. How to use OrdersHistoryTotal() function in this case ?
[Deleted]
  TD Combo EA  (5)
Has anyone seen a link for a TD Combo indicator for MT4? Pls let me know if you guys have one, or if not I would pay to have one made
hi !  any one knows how to invert a indicator scale .  I want to use the dolar index upside down  TY  
static datetime Time0; int start() { bool newBar; newBar = Time[0] > Time0; if (newBar) Time0 = Time[0]; if (liHour == EndHour + GMToffset && newBar) more conditions here then open a buy or sell Return(0); } Does the above IF condition with AND clause work ?...
[Deleted]
As a newcomer to automated trading (and this forum) I have worked out a simple 20 SMA / 10 SMA EA for which the MT4 tester has given promising results after several passages through the MT4 tester (on an Alpari MT4 platform): a 9500 euro gain over a period of 6 weeks for an initial deposit of 5000
We are doing a major testing and optimization operation for our best Expert Advisors. Anyone who would be interested would be required to disclose their contact information, sign up for our forum, and they would then receive the EAs for testing. You would be able to keep the EAs for use, so long...
Hi @ all, i have for my Avatrader a very good Indicator to generate Buy and Sell Signals . Look at this link: http://www.actfx.com/Download50081.aspx But i need this Indicator for my MT4. Please can someone program it for MT4 ? This is the code for the Avatrader (.act):...
[Deleted]
I would like to add some MA (about 3-4 MA) into it, if possible also include the MA prices, but I do not understand about the coding. thanks before
New article Creating Active Control Panels in MQL5 for Trading is published at mql5.com: The article covers the problem of development of active control panels in MQL5. Interface elements are managed by the event handling mechanism. Besides, the option of a flexible setup of control elements...
how do this script: example: GBP/USD no indicator lot:1 if BID above 1.4501 be LONG 1 lot, then if BID below 1.4501 close LONG and go SHORT 1lot (or vice versa). the script must always keep 1 open position(1lot) LONG or SHORT if BID is >1.4501 or <1.4501. thanks a lot.
[Deleted]
Someone can help me, i was searching on google and forums... but i do not find anything. i need a script that it can place BUY and SELL orders with a hotkey.... i really apreciate your help on this!!
[Deleted]
Hi, Has anyone managed to find a way to run its EA scripts in a shell under Unix/Linux rather that using the MT4 GUI (useless in deed on a VPS !!!) Thanks in advance Joan
Hi, Learning MQ4.. so need help on some basic things Following is what I need to find: 1. I need to find bar close price only when the bar is closed. 2. How do I identify the time in Mq4 in this format : HH:MM:SS ? 1) To achieve the first one - I coded like this,, does this really provide the...
[Deleted]
  Divergent Bar  (4)
Hi all, Does anybody know how to program a divergent bar (Bill Williams)? Basically I needto program 2 types of bars (candles) based on different time frames. The firstis the bullish divergent bar where the low price is lower than the previous barand the close price is within the top half between...