Download MetaTrader 5

MQL4 and MetaTrader 4 - page 730

To post a new topic, please log in or register
Does this indicator formulae already exist and if not, could someone kindly code it for me please. (Close-Open)/(High-Low)*100 I would like it displayed in a seperate indi window, with an external variable for period.
Is there a way to put a TimeFrame into a variable? int myFunc(TimeFrame aa)   {      return(iBars(Null,aa));   }      
Hi to everybody. Forex Championship 2011 is very close. I’m looking for helper to write together the expert winner of Forex Championship 2011. We need: The Idea (I provide): 1. It really doesn’t matter what strategy you use. If we propose that some winning strategy exists (maybe) and it...
hello,i will appreciate if any one add trailing stop to this EA,just trailing stop and break even please helpthanks roulette-king@web.de
  range bars (4)
does anyone know where to get range charts for mt4
anyone knows which MA can best indicate the priceline ? EMA 5 ?? EMA 4 ? THANKS IN ADVANCE
New article 3 Methods of Indicators Acceleration by the Example of the Linear Regression is published at mql5.com: The article deals with the methods of indicators computational algorithms optimization. Everyone will find a method that suits his/her needs best. Three methods are described here.One...
Hi, Anyone can help how to write a code for price crossover MA ? Only open one position for the zero bar during crossover. Thanks a lot !!!!!
Patrik Polak
Hello, I need accept only 1 trade (buy or sell) per 1 day (no more). Pls write me code, thx
Hi! Ok, basically, I need to know how to open a certain URL, so I can send some information through it (the other end is going to receive that information through PHP's GET method). So, the idea is opening an URL using a String. How can I do this? Thanks!
I have a DLL that exchanges data between 2 instances of MT4. It works for about 5 mins, then the DLL locks up; i think. All I know is the data is "frozen" in the MT4 terminals. I'm attaching the experts (1 for each terminal) the cpp and def files. The DLL is compiled in VS2010. all running on...
  script calls (1)
Hello. I have a basic question in mq4 scripting. I have already a script that creates a Pending position with S/L. Now when that pending position goes active entry into the market, I would like to call the same script again, for a new Pending with the same criteria (new entry price same pending...
int myFunc(int& myParameter)   {      int iVal;      // my code      return(iVal);   } I want myParameter to be passed by reference, I would also like it to be optional, but I accept that I can't have it all. When I don't need to pass a value to myParameter I try this "myVal = myFunc(0)" and I get...
I'm just learning MT4 and modifying an Indicator from someone else. I notice that the original author eliminated an awful lot of spaces. Specifically he used if (Counted_Bars<100)instead ofif (Counted_Bars < 100) I think that putting the spaces in makes it easier to read and debug. I recognize...
I tried doing a search buy I keep getting an error, so I'll post my question and hopefully someone can point me to a thread that answers it. I have an indicator that I'm modifying (it's my first one). It keeps locking up MT4 (an endless loop maybe) and I have to use the Task Manager to shut it down...
Is there some way to create a function that will allow me to pass an unknown # of Formal Parameters like StringConcatenate()? Specifically I get tired of typing "StringConcatenate" with 2 spaces in between each parameter. I would like to write a function "SC()" that automatically puts 2 spaces in...
I downloaded MT5 and started reading the manual when I discovered that I can't hook it up to my broker. Before I quit reading, I saw that it has a debugger. Hopefully it would be something similar to debuggers in other languages. Does any one know if I can use MT5 to write EAs and Indicators that...
We just released a new beta (version 3.15). It allows you to create expert advisors without any coding - no need to learn mql4. New features include: •4 and 5 digits support •MQL icon: To manage custom MQL trading conditions. •Changes to the existing time filter feature •New TIME icon: It allows...
hi May give me any source or information about use financial information exchange (FIX) protocol in MT4 ? please help me
I have used MT4 for years and took a few months off. Now my email alerts don't work all the time. It works (connects) sometimes but maybe 50% I get a connection error. What is the fix? My broker is no help. They say MT 4 never had a reliable email system because of SSL security. But I never...
Please Help Me, How To Send email Report Order (Buy or Sell) From EA to My email?? Thank You
Hi, after re-writte an personal indicator by the editor, for some razon the setings of the object list window has been changed and now when I try to open the object list window the plataform is loked and I need to press the Esc key un-lock it and continue working. If some one can help me out with...
I have a trade system in which when one trade hits its Stop loss (SL) another trade hits its Take Profit (TP) - so they should both close at exactly the same price, one via SL and the other via TP SL price of trade 1 == TP price of trade 2. e.g. 75.02 == 75.02 This happens ok most of the...
How to open a buy order with 15 different pairs at the same time AUD/USD AUD/CHF AUD/JPY NZD/USD NZD/CHF NZD/JPY USD/CAD CAD/CHF CAD/JPY EUR/USD EUR/CHF EUR/JPY GBP/USD GBP/CHF GBP/JPY
We got the news: Newest CompTIA Project+ exam has been released. We all know that Project+ exam covers pre-project set-up/initiating; project planning; project execution and delivery; change, control and communication; project closure. Unlike some project management certifications, CompTIA Project+...
New article William Blau's Indicators and Trading Systems in MQL5. Part 1: Indicators is published: The article presents the indicators, described in the book by William Blau "Momentum, Direction, and Divergence". William Blau's approach allows us to promptly and accurately approximate the...
New article Enhancing the Quality of the Code with the Help of Unit Test is pulished: Even simple programs may often have errors that seem to be unbelievable. "How could I create that?" is our first thought when such an error is revealed. "How can I avoid that?" is the second question which comes...
I am charting the difference of two arrays of two currencies. One is of the high of one currency and the other is for the low of another currency. for example I have : ExtMapBuffer1[i]=High[i]-Low[i]; What is the best way to directly state, I want to use an array of the High [i] for the EUR_USD and...
When I run the code below tick value starts from an irrelevant value at everyrun such as 40064 in first run 23360 in the second run and goes on. I expect 0 1 2 3 ..... what am I missing?? //--------------------------------------------------------------------// simple.mq4// To be used as an example...
i want to run MT4 at freeBSD(UNIX), how to ? thanks