Download MetaTrader 5

MQL4 and MetaTrader 4 - page 680

To post a new topic, please log in or register
Hi, Does anybody out there know of or even better have experience using non-deterministic trading algorithms? So just to be very clear about what I am looking for: A trading strategy that implements an element of probability/chance. So such a trading strategy if backtested on the same historical...
Dear All, I'm having some serious problems printing Russian Cyrillic characters in MetaEditor 4. The Russian displays correctly inside the editor, but when I attempt to print it, it comes out as gibberish. It's the same also when I do "Print Preview", i.e. it also shows it as gibberish even before...
Does the number of Bars on the chart constant. In other words when a new bar forms does it take out the oldest bar and shift all the values?
Moving Moving Average
double open() { if(Period() > 240) return(0); int shift = ((Hour()*60) + Minute())/Period(); // if the market open after Midnight then... while(TimeDay(Time[0]) != TimeDay(Time[shift])) { shift--; } double value = iOpen(Symbol(),0,shift); return(value); }
I need an EA that replaces the latest closed order in my account with a pending order of the same price, volume, SL & TP. It should ensure there no duplications of pending orders and should delay placing such a pending order if the current market price doesn't allow the stated SL or TP. Happy to...
Hi, to all the experts on this forum. I am quite new to metatrader and mql4 but i have some programming and trading knowledge on other platforms. I made some sample EAs which uses stoplosses but they wont be executed as expected in the strategy analyzer. The execution will be done at the exact...
Hello, it is a simple question but how to make to delete what you have wrote in the previous call of the Alert function in order to see just the update information, sincerely.
  EX4file (8)
Could anyone help in this matter, if I send the EX4file of my EA to another user of meta trader and they upload this to their platform, will this mean they can use the EA as long as they allow dll imports ? in short I would like for my EA to be used by others without having to send the open code, if...
Hello everyone, I have been trying to use behavioral theory and pattern recognition to come up with an intelligent algorithm and I am almost there. I have attached the test data . please feel free to bring in new ideas and help me to make this even better.
Hello, I programmed this EA to lock in profit at various levels. The idea is to have a jumping stop when certain profit levels are hit. Once 61 pips are hit then a trailing stop is activated at 70%. I am finding it difficult to code the logic to stop the EA from moving the stop backwards. I try...
Dear All, You will get daily forecasting of with stoploss 1) gold spot (XAUUSD) 2) Silver (XAGUSD)
Vytautas
Hi, simple question, is it posible to write account balance in percentage? why for egz. this : if (AccountBalance()<90%) lot=0.02; cannot work instead of this: if (AccountBalance()<300) lot=0.02;
hi there, I am not 100% sure, but I think when inside of an EA or Indicator there are too many calculations i.e. too many FOR cycles with double multiplication and division inside them - and it looks like the EA is runing out of time - calculations are not finished and OS or MT$ framework or...
Hello, my name is kevin I am looking to get the code that would allow my lot size to increase when the equity in the account increase.. Any suggestions? email me at alwaysincreasing1@gmail.com Thanks
Hi guys, On testing the newest EA I see some strange things, e.g closing order inside StopLevel zone with profit and without getting an error in the Jourlal. This should not happend IMHO. Any reason why I can e.g close sell at 10 points below openprice, when stoplevel is in fact 20 points ? In this...
If I am making an indicator based on the distribution of the closing price of all the bars on the chart, If i were to make an array of size Bars-1 and update it for every new candle, will the mt4 freeze on particular time frames where there are a lot of bars particularly the 1 minute time frame? Or...
I am using arrays and resize them with each new bar by calling a user function to do this. I have the impression that this function is interrupted when a new tick is coming in, with the result that the arrays have incorrect information. Generally visable when changing charts or timeframe and only...
hi ...the following code snippet i created to close orders if the total profit of orders reach 500.....these orders are of many different symbols...but this snippet only closes some orders, not all ...why this happens??....and i even tried the same with while loop instead of if, but that closes all...
Hi everybody, I'm using a 5 digit broker. When I use the function Print(Low[0]) I see 4 digit, for instance 1.3147. If I write string value=DoubleToStr(Low[0],5);Print(value) ; Low[0] is 1.31467. My doubt is: when I write Low[0] in an expert, the returned value is 1.3147 or 1.31467? Thank you!
Hi, I'm writing an expert on M3 offline chart. I need to recall a double from M3 offline chart. I'm trying with the following code but it doesn't work... int handle; double varray[1]; handle=FileOpen("EURUSDM2.hst", FILE_BIN|FILE_READ); if(handle>0) { FileReadArray(handle, varray, 0,...
Hello During yesterday EURUSD market, at 16:00 GMT, I predict price would go down for at least one candle. But my local time was 10:30 at night . Hence I cant trade and I lost a chance to get 35 pips. I like to to know if there is a script or EA that can close all opening trades after recent candle...
I'm receiving the error code 4023 when using a DLL (only occasionally), but can't find any information what this code stands for. Anyone from the MT4 crew who can answer this?
So here the idea : I get 2 vars on a CSV file. "date" : 15.01.2013 and var "time" : 18 (ie the January 15, 2013 at 18h). I can put this format as I want. I wonder if anyone knows a way to know how many times in minutes it rest before that date from the current date? At least know if it's possible...
  Mail or sms by -X profit ? (22   1 2 3)
HI HI how do you do when it comes to certain profit to get a mail or sms? I've tried it but I do I come on. http://www.xpworx.com/download-free/mt4-tools/xpmail-metatrader-send-mail.php Thanks
New article Custom Graphical Controls. Part 3. Forms is published at mql5.com: This is the last of the three articles devoted to graphical controls. It covers the creation of the main graphical interface component - the form - and its use in combination with other controls. In addition to the form...
New article Object-Oriented Approach to Building Multi-Timeframe and Multi-Currency Panels is published at mql5.com: This article describes how object-oriented programming can be used for creating multi-timeframe and multi-currency panels for MetaTrader 5. The main goal is to build a universal panel...
i have some question about history data,and cannot found in forum . 1/if my MT4 always opened, is it necessory to download the data,is the data auto restored in the fold ? 2/which fold of MT4 restored the data ?what is the file format ? ........ .doc .text 3/may i delete the data or copy...
MQL5 YOU SONS OF CHEAP 5 DOLLAR BITCHEZ
Hello there ..does anyone have an Adx with these features on board.? please dont hesitate to contact me if is a yes. kind regards AMBITIONZ