Download MetaTrader 5

MQL4 and MetaTrader 4 - page 56

To post a new topic, please log in or register
Hi I need to have a backup for my curent Win 2012 r2 VPS server. So basically i am thinking of buying a second Win 2012 r2 VPS, and install a new MT4, and login on the same trading account as the other VPS uses, and use the exact same setup on my expert advisor as on the other VPS. **Note that my EA...
Does anyone know where I can find a Renko EA that will draw Renko blocks based on the CLOSE of the H1/D1/W1 timeframes instead of the M1 timeframe which pretty much every Renko EA uses? I've searched everywhere and can't seem to find one. Or can someone point me towards how to modify an existing M1...
Is that a way to let the indicator update the chart once, and for the subsequent, it will remember the old results rather than update every tick or candle? I am asking this question since I only let the start() run once with the following code: bool first=true;int start(){ if(first){ //my code...
For MQL4, will it include the .mqh header files multiple times (or does it matter?), if say one header file makes use of the header files we already included? If yes, how to prevent that?
Hello mql4 coders. I myself have some knowledge of this codes but I think have reached my limit of getting this EA to do just what I want. So am pushing it open to everyone who knows more than I do to help. Its kind of simple with plain words. 1. The EA is meant to buy if the last two candles are...
I setup my phone to receive push notification. This was setup successfully I even done the test. I coded support resistance zones with alerts, this alerts appear on my computer as requested. But I still not receiving such notification on my phone. What am I doing wrong? Can anyone help? Thanks
Hi Peoples; - Have irksome problem with personalising Profiles, Templates & Indicators etc.. Having changed chart to desired format with style, colours, Indicators etc - then saving the template... selected "black" background colour reverts to white default... I have several Indicator charts to...
Is there something like a stringbuilder (Java) or stringbuffer (C#) in MQL4 that facilitates fast string append?
https://docs.mql4.com/basis/function/parameterpass Heres the code above, 1st Method #property strict //I added this one, not sure its gonna mean something for thise sort of code but Im stil a beginner n wanted to add it in.//+------------------------------------------------------------------+//|...
  Deleting a pending order (12   1 2)
Ok.. i give up, I don't know what else I can do.. I have to SO many ways to do this, and i can't... so,, hopefully you guys can help me out on this one.. The thing is, I have and EA that opens 2 pending orders ( OP_BUYSTOP and OP_SELLSTOP) and all I want is to delete 1 of the pending order once the...
Hello guys, I hate asking for help like this but I've tried to figure it out myself but the only coding background I have is Fortran 77. I am looking to add an email function to this indicator that will zip out an email if a color change is happening from red to white or white to red. The code is...
Hi guys, So when I activate "show object description" in the chart settings, my lines will display a little text on top with the given desciption. Can i somehow change the alignement of these descriptions so that the text appears centered between start and endpoint of the line? Thanks! :)
Hello I am trying to understand why in example below my EA stops and I receive array out of range error (pointing that problem is in following line:  Print( "15 mins Rates time: ", mqlrates_array_15[0].time); My entire idea is to be able to refer to MqlRates of different timeframes of the same...
Hi, I was trying to install EAs on my VPS base in NYC. I cannot install anything. Even my VPS provider cannot fixed. I got this error messages all the time : 2017.05.15 17:18:11.853 MQL4 Market: failed parsing info about purchasing a product 'Tipu MACD' 2017.05.15 17:18:11.853 MQL4 Market: failed...
Is there an reliable method for detecting if an symbol does exist or does not? Curently I use this: boolean function IsSymbol(string SY) {double tmpTickValue = MarketInfo( SY ,MODE_TICKVALUE);if ( tmpTickValue > 0) { // This Symbol does exist return(true);} else { return(false);} Is It OK?...
Tsz Ho Chow
I am new of coding , this is good in the backtest to get the lots of buy / sell . but if i use it in demo account ,orders from other currencies will calculate into "dl" and "kl" , so i will have a wrong result , because i want ea to know to put it into individual dl / kl ( as a buy lot/sell lot)...
Hello, is there any documentation about MetaTrader4_Internal_Message?  For example if I send a msg with wParam == 2 it generates a tick that triggers start(). Could someone help me to find what does happen if I use, for example, other values? I appreciate every informations about that Thank you
Would this for loop work?  currentask = (MarketInfo(symbol, MODE_ASK)) for(int f=market_refresh; f<=3600; f++)       {         if (Ask / currentask > 1)         {            Market = "bear";            break;         }         else         {           RefreshRates();           Sleep(1000);         }...
Hello, I have this error when run my EA: This is my code to open #3 orders, where is the mistake? int ticket[];bool checkBuy = true;int i=3;               //numero ordinivoid OnTick()  {    if ( Close[1] > Close[2] && checkBuy) {      esecuzioneStrategiaBuy();        checkBuy = false;      }...
More MQL questions. Thanks in advanced to the answer. What is the absolute best way to lag free execute a sell right now from command line linux terminal directly/without graphical MT4 for better RAM usage? Need the code. Paying API Fees the only way? Meta lang mql.exe the best ? Independant...
Hello my friends, I've an indicator. I want to update my indicator to the new MQL4 Compiler. I already wrote the new code but I've on problem. When I add #property strict  -  the indicator vanish but when I delete it the indicator appears. Here is the code & I hope any pro here could help me. The...
  iBands (10)
I use iBands in my EA but I cannot seem to identify the middle moving average of the bends. Any idea on how to get the middle line value since iBands only uses MODE_LOWER and MODE_UPPER? I tried using iMA with no luck. Here is my value for the bends: iMA(NULL,0,20,2,MODE_SMMA,PRICE_CLOSE...
I have been all over the forum and read all the articles in Tester, but I can't seem to find much about how others may be achieving Walk Forward Analysis for their EA's with MT4. I know there is a tool by Easy expert forex, but this tool unfortunately has limitations. Essentially it only seems to...
Hello, I created my EA that open #3 orders at the same time when some conditions are true. In backtesting EA works fine and in Result I can see my #3 order with same open time: The issue is in DEMO. I see in Journal tab a time delay (seconds, until 1 minute) between Order Buy Market and Order Opened...
Hello everyone, How should I program this?   I can't see a way to get string "sym" to receive more than one enum value. Example: METAL selection is only Gold, or Silver AUD selection  is only AUD vs other pairing EUR selection  is only EUR vs other pairing GBP selection  is only GBP vs other pairing...
Hello, I don't know how to permanently delete indicator from MT4 software? Indicator, in my case Average True Range, is original one and NOT a custom. I would like to delete it from menu so from entire Metatrader software and not only from chart. This indicator is worst one ever seen - impossible to...
Hello guys, I am new to MQL4 programming. I started an EA using the indicator Slope Direction Line Modified. I checked the EA in very old post https://www.mql5.com/en/forum/178852 https://c.mql5.com/forextsd/forum/49/slopedirectionline_v3_1.mq4 SlopeDirectionLine_v3.mq4. Test on EURUSD M5, M15,...
Hello, I would like to add an alarm sound to this zig zag indicator Thanks for your help
Is there any existing implementation of list of string, integer etc. where we can add element, remove element directly, without caring of the size of the arrays?
I can't locate my pop-up price window. The last time I was able to see it I draggedit just above the task bar at the bottom of the screen. When I press f10 the MT4screen becomes inactive but the po-up price window is nowhere to be found. Re-startingMT4 doesn't bring it back either...any thoughts?