Download MetaTrader 5

MQL4 and MetaTrader 4 - page 395

To post a new topic, please log in or register
hello everybody, I have a problem, which may be easily corrected. In a EA I started to program I use the command line just to test buy signals in general. the mode is "every tick" and "visual" TicketBuy=OrderSend(Symbol(),OP_BUY,0.1,Ask,20, Bid-Stoploss*Point,Bid+Takeprofit*Point); Now when I use...
Hi guys, Im a believer ofBINARY OPTIONS. <Removed by moderator>
I want to create a string name e.g. string name = A+B and then define a double variable with that string name e.g. double name = x+y Is that at all possible?
Hi, I just realized s.th. unexpected. I have an Demo-Account with XY-Borker and created for back-testing the fxt-files and the hst files by the EA (b628) /portable loged in at XY-Broker and Birt's script!! I do have an account with Metaquotes but the EA wasn't logged in with Metaquotes as they...
Hi, please, beginner needs some help: after having updated MT4 to MetaEditor Build 914, all functions like iHigh(0,0,1), iClose.... have the value 0. i.e. : Highbar1 = iHigh(0,0,1); ---> HighBar1 = 0 ---> Error is 4054 (Displayed Chart is EUR/USD, H1) (Before updating, these function were...
any close at equity and rise after x pips ea pleace
Hi, if I draw a rectangle from Sunday (e.g. 09th March) to Monday, the rectangle is drawn already on Fridays last bar. Its a bug? Maybe its a problem with no quotes on Sunday with some demo-accounts? Regards Burkhard
Hi, I have MT4, build 625. I have tried installing an EA indicator, that uses an executable file (.exe) to install into my MT4 platform. The installation of the executable file went successfully, every time, but I can't find the EA anywhere in my MT4 Platform. This EA does not come with a .ex4...
Hello, I found this script off web, all thanks and copyrights to that guy.. I dont understand coding, but could someone please let me know if this considers "SPREAD" while closing out orders? Here is the copy paste of code Because i dont know anything about coding or rules, I am not deleting any of...
Few (such a RSI or Standard Deviation) indicators  that come with MT4 installation has the option of choosing "Apply to First Indicator Data". Is there a way to look at the code of these indicators. I want to add this option to other custom indicators that I have. Thanks.
Hi, hope you can help me on this. Is there a function that calculates the Lowest Low of a EMA (exponential moving average) for X number of periods ? EMA30 = iMA(Symbol(), 0, 30, 0, MODE_EMA, PRICE_CLOSE, 1); For Price I can with: Low[iLowest(NULL,0,MODE_LOW,5,1)] . Any similar formula for...
Hi, how can I speed up multi order to get most orders in a short period? I wrote the function below to open 10 positions:   int i = 0;  while(i < 10) {    int ticket = 0, lastError = 0, n = 0;    while(true) {      ticket    = OrderSend(Symbol(), OP_BUY, 0.1, Ask, 30, 0, 0, "", 300, 0,...
Hello. I want help about a problem on a High-Low Routine. I have write the following one that works excellent on MQL5: bool FindHighLow(string Pair, int Periods){   double PHigh[], PLow[];   ArrayResize(PHigh, Periods);   ArrayResize(PLow, Periods);   if (CopyHigh(Pair, PERIOD_M1, 1, Periods, PHigh)...
  help needed (19   1 2)
hi. I wrote the code and it was good. but somehow now there is a warning about the "OrderModify" and I can't find the problem. it writes "return value of 'OrderModify' should be checked". does someone know what this means?
  I need help (17   1 2)
void OnTick() { //--- int TicketYear=TimeYear(TimeCurrent()); int TicketMonth=TimeMonth(TimeCurrent()); int TicketDay=TimeDay(TimeCurrent()); if(TicketYear==2013 && TicketMonth==8 && TicketDay==28) { Print("My Month is",TicketMonth); } if(TicketYear==2013 && TicketMonth==6 &&...
Hi. I had a freelancer create this EA for me and it is not doing something that it should be doing. It uses the an alligator indicator. It will not turn off trades when the lips or jaws are in the middle. Here is a part of the code. I think that this is the part that has the error somewhere in...
Hi, If I draw a trend line on a particular currency and then go into another currency and then come back to the original one the trend line has been deleted. Any suggestions as to what setting I need to make to restore it to saving the trend line when switching between currencies? Cheers
Hi, I need metaeditor version. How can I get it programmatically?
More than 30 of my EAs stopped to work correctly on my live account after upgrade to 6xx build. I figured out that the sorting of order history was changed. In older version the sort was by orders ticket and in the newer version it is sorted by close time. I could not find any note or description...
The Goal is to insure that the data is current and up 2 date before a Copy Rates. is Executed ....I been reviewing this article. https://www.mql5.com/en/docs/series/timeseries_access and would like 2 use some thing similar 2 CheckLoadHistory(InpLoadedSymbol,InpLoadedPeriod,InpStartDate); But I...
Please help on: OrderSend error 3 This is the code: //+------------------------------------------------------------------+//|                                                        Ma13.mq4 |//|                      Copyright © 2005, MetaQuotes Software Corp....
Hi my friends, I don't know how to deal with this problem. I've written a code by use of Arrays but I don't know why it doesn't work or compile on the graphs. and the most incredible thing is that I was using some other codes look like this but now it doesn't work !! it print in journal " array out...
//+------------------------------------------------------------------+//| Initialize program's function                                    |//+------------------------------------------------------------------+   void OnInit()   {         if ( Digits == 3 || Digits == 5 )      {         Slippage =...
Hi After upgrading to 600 build I am experiencing issues with my function that otherwise work perfectly. It returns a 1004 code and records in the log: "Error when calling InternetOpenUrlA()" Here is the code, can anyone please help: #define HTTP_QUERY_CONTENT_LENGTH 0x00000005#define...
Hi All, I looking for some advice on how to go about marketing a MT4 indicator that I have just got coded. I have a User Manual to go with the tool... Any help on where from here, would be greatly appreciated! Regards Daryl
I am under the impression that I should use ArrayCopyRates to obtain the current tick data. Is that correct? How could I call that information from within a DLL? My mql4 and internet searches haven't quite gotten me there yet. Can someone point me in the right direction?
Hi, while backtesting and optimizing I realized that something must have changed the way mt4 uses/handles the fxt-file - am I right? I have created the fxt-file myself (Birt's script) and first I launched the mt4 by Tickstory Lite and I get what you see in the left column: Modeling quality: 0.99...
Hi all, can anyone provide me simple instructions to produce 99% modelling quality for MT4? Thanks much :)
int init()  {//---   string arr[3][2];   arr[0][0] = "";   arr[0][1] = "";   arr[1][0] = "";   arr[1][1] = "";   arr[2][0] = "";   arr[2][1] = "";      int handle = FileOpen("test.txt", FILE_TXT|FILE_READ);   if(handle>0) {      FileReadArray(handle, arr, 0,...
Hi, I would like to use old datas (6 month) in UT 5 minutes but i can't use functions like : iOpen(NULL,PERIOD_M5,i) before January. it's important for me to use UT5mn in order to have fixing values at 17h35 PM each month. is there an issue ? thanks for your answers, a new french user.