Download MetaTrader 5

MQL4 and MetaTrader 4 - page 449

To post a new topic, please log in or register
Hi, I have graph, when bars start no standard time, example: TF 15min: xx:05; xx:20; etc. I wrote easy code script: int start()  {  datetime time=StrToTime("2013.02.25 09:00");  int StartShift = iBarShift(NULL,0,time, true);  Alert(StartShift);  return(0);  }  Why function iBarShift don´t return...
Hi I am wanting to backtest both weekly and monthly timeframes, but MT4's strategy tester only goes as high as daily. Is it at all possible to backtest higher timeframes? cheers honkin
Hello Everyone! I'm new to the forum and new to MQL -- so please be patient with me.  I am looking to write a program but am unsure if MQL4 easily supports the kind of functionality I'm looking for. What I want is a program that continuously monitors the net value of two or more manually placed...
I'm looking for simple EA, that buy whenever CCI break it's own MA on the way up, and sell whenever CCI break it's own MA on the way down. I looked at some samples, and didn't find one that is simple. this should be simple.   please help,   thanks,  
i am using demo acc when i open strategy tester before it was possible to select start date and end date . but 14 day back start date is selected and enddate when selcted optimization beomes checked  in and w cannot select end date attached file clip pl help
Hi all, I'm looking to get a function where once total order profit get say $10, if it bounces back to $5, our open orders are closed. I'm try to make use of the follow code, but can't get the result expected. Is that possible get some help to put me in the right direction ? extern double...
New article Testing Expert Advisors on Non-Standard Time Frames has been published.It's not just simple; it's super simple. Testing Expert Advisors on non-standard time frames is possible! All we need to do is to replace standard time frame data with non-standard time frame data. Furthermore, we can...
Hi, unsure if this is possible, 3 screens up on the monitor, 3 different time frames, move the mouse over one and it moves over the other 2 as well, for example move mouse on the 4 hr chart (history) and this will show me where that is in the 1hr and daily charts I'm terrible at explaining this :(...
Hi all, Using the following code am looking to close orders once the TotalOrderProfit gets equal or less than TrailedPrice. I have put a print to check why is that not working and what I see is that the price do not come down. Could you show  me what am doing wrong ?     void...
Hi, I've got a strange problem where I want to edit a source code but MT4 doesn't let me do it. When I click on the icon that looks like a yellow diamond with an exclamation mark (or shortcut F4), it is non-responsive and does not open up the source code like it used to. I tried uninstalling the MT4...
  help writing a file (12   1 2)
hello, i"m learning the mql4 for a while. and i just cant understand what is wronge with my code. trying to write a file with this code :   extern string FileName = "testfile12.csv";extern double candle_open_new,candle_open; int init()  {//----  candle_open   =  iOpen(NULL,0,1);  //----...
HELP :: I need to add a pop up window and sound for this indicator.....
Hallo, ich kämpfe mich gerade durch das MQL4 Tutorial. Die ersten einfachen E.A. laufen. Doch immer wenn ich ein Skript laufen lassen will, kommt folgende Expertenmeldung: 1.   2013.07.05 12:27:22 probe EURUSDm,M15: loaded successfully 2.   2013.07.05 12:27:22 probe EURUSDm,M15: uninit reason 0 3....
  Code inquiry (1)
Hello everyone, I was wondering if anyone has coded an EA or indicator to have the display and history chart bars reset to its allowable minimum to avoid sluggishness without restarting MT4. All help and input will be appreciated. Thanks in advance, David
Hi I've written a series of EAs that I use across multiple TFs and Instruments and it became a chore managing the settings for each of them.  This is what I do at the moment 1. In each EA I have all the settings stored in a file in the experts/files folder, and I autoload those settings into the EA...
Plz help me, i don't know what wrong :( extern double                Lot = 0.01; extern    int         TakeProfit = 200;  extern    int           StopLoss = 2500;  extern    int           Distance = 250; int init()   {    string name;    double normprice;    for(int i=0;i<OBJ_HLINE;i++)     {...
Hi guys, I have attatched the indicator.. It draws a horizontal line which sounds an alarm when it is crossed, however I would like it to also show a pop up box. Its a useful indicator for support and resistance levels. I would be very grateful if someone could finish it off for me by adding a alert...
Hi guys,    Im trying to use the winsock library to receive orders through a socket from my order processing server, but using the example wsockclnt.mql4 as a base, I havent found a way to sucessfully put open and close orders on different timeframes.  Example:  (Several of those orders where...
Hello, please, I need suggestion for add a month in a date variable. Example: string date = "1992.01.01";datetime newDate = StrToTime(date)+1 month;Print(TimeToStr(newDate)); //Result: 1992.02.01
Hi, I have written a piece of forward-testing analysis software that I may be interested in sharing / selling to others in future. The software requires FX price information. Currently I extract price information from an MT4 broker using a DLL on a minute by minute basis and then store this...
Please advise what software will to the above and where I can get it. I want to crreate an EA using a number of custom indicators
I would like to collect .HST files automatically in MT4. At the moment i click EURUSD -> M1 and then i have to scroll back for MT4 to download data into .HST. Could i somehow do it in MQL4? i have tried to use indicators with high periods, if indicator needs bars which have not been downloaded, it...
Hello, Could anyone help me please? Since last week I cannot open anymore Varengold Metatrader. When clicking on exe file, it opens minimized in the tray.  I'm using Windows7, the antivirus is updated. The sound connection is fine. No problems with the other softwares. The internet connection is...
Hi, nice to see you all. I’m a trader with 6-year forex tradingexperiences. I trade with my own EAs with manual control I focus on EUR/USD, GBP/USD, AUD/USD and XAU/USDmainly. My drawdown is controled under 20% I'm the top trade leader ranked NO.1on currensee.com: http://www.currensee...
HI all, I need to round High & Low number of candlestick ( broker 5 digits) , as in this example High = 1.12346 Low =  1.12345 I need to obtain High = 1.1235 and Low = 1.1234. I’m trying to use MathRound() and NormalizeDouble() it work with High , but it doesn’t work with Low. Could you help me?...
Hi!  I am trying to build an EA based on the indicator posted in this article https://www.mql5.com/en/code/7116. I have difficulty in creating the trigger to open a correct buy / sell order when the signal is given by this indicator. I am assuming that bullish divergence signal is given when...
I downloaded the mql4 book and tried to print it but a have to print one section at a time. Is there a way to print it as a whole?   I also have a wide column on the left with *Preface *Table of Contents * etc is there a way to avoid this?   
Does anyone know of an add on that will rotate through all the charts, stopping on each one for a set time? eg switch to the next one every 10 to 50 seconds; selectable delay. This would save a lot of mouse clicking and you could watch the different charts without being right at your computer. If...
if(openmode1==true)  {  if(((H1usd1>H1eur1)&&(H1usd1>H1gbp1))&&((H1usd0>H1eur0)&&(H1usd0>H1gbp0)))   {//doAlert("多1");      if((usd2<eur2)||(usd2<gbp2)){//doAlert("多11");         if((usd1>eur1)&&(usd1>gbp1)) {if(!haveopenticket())    //check have ticket{           doAlert("eurusd...
1...442443444445446447448449450451452453454455456...1249