MQL4 and MetaTrader 4 - page 1308

[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...
I simply want to stop program execution like Exit or Halt in other languages. How do I do this in mql4? I've tried return(0) as suggested, but it doesn't stop the EA, at least not in the Strategy Tester.
[Deleted]
Hi. In first place, congratulations for Meta Quotes team for excellent work! I need to put each new order in non-repetitive price with previous ones. I can do easy with last order using "OrderOpenPrice()", but not with several orders. I want each new order to be in a price at least x pips distant...
[Deleted]
Dear sir; I want to write a expert that when I open or close or modify orders at My MT4 Brokers, All change and affect send to my email or email Others. if(OrderSelect(1, SELECT_BY_TICKET)==true){SendMail("OrderTicket ",DoubleToStr(OrderTicket(),4)+"open time for the order 10...
  Free Money Selling EURO!!!!!!!  (28   1 2 3)
Forget about writing stupid EAs. Just SELL EUROUSD at any level and one can make huge amount of cash. Since legendary George Soros has predicted EURO's eventual collapse a couple of months ago the EURO is now heading into the gutter. Greece and Portugal are already junked and Spain is on the brink...
How do send multi e-mail. example 1. aa@erer.com, aa1@erer.com, aa2@tr.net ....
-
  To the site admins  (69   1 2 3 4 5 6 7)
Hello! I'd like to change my password. I went to my profile but I can't find it! What to do? )) Regards
I keep getting this error when optimizing: 2010.05.18 00:31:40 1999.10.14 13:55 uma test-3.1 USDCHF,H1: OrderClose error 138 I have deleted the history file and re downloaded it 3 times now here is the closing code: //close order routine...
I wonder if someone might help me with this problem I understand how to make a 1 dimensional counter array to count the amount of something like array[6] array[OrderType()]++ would count the amount of orders of each type there are while in a order_by_pos checking loop is it possible to make a 2...