Download MetaTrader 5

MQL4 and MetaTrader 4 - page 8

To post a new topic, please log in or register
  Signals (3)
Dear all I have download MT4 in my VPS space. I'd like to copy a Signal but I cannot see the label "Signal" where I can find the signal that I like to copy... do you know why? Can you help me?‌
Hi, ‌Are pending (!) buy/sell stops with a stop loss automatically deleted when the stop loss is reached before the order gets active? R‌egards,
Hi ‌My code to download FF news don't work anymore since this WE ! Anyone using webrequest to download news has this problem ?? ‌result = 0 bytes downloaded.  No modification in the code since last week when it was always running well since months. ‌‌both webpages https://cdn-nfs.forexfactory...
Hi I‌'m attempting to debug an MQL4 EA in MetaEditor however I am not being offered the 'Start on history data' (or indeed the Start on Real Data) option under the Debug menu. It is greyed out despite me specifying a dataset under Tools/Options/Debug. U‌nder the Journal tab of the Toolbox I see the...
‌ ‌triling stop working with buy orders but not working with sell orders can any one help with that to make tsl work for both sell and buy ‌ thanks in advance‌ // Determining the TP, SL and TSL Levels void Set_Levels(){       double PP=MarketInfo(OrderSymbol(), MODE_POINT);    double...
Hello friends, ‌I develop and EA to open order base on multiple strategy.  C‌ode should draw a OBJ_TEXT on each new OP (Chart & snippet code as below)On the next Sell Order(same strategy), it should also draw OBJ_TEXT again (Sell Order), as marked in blue circle.so i figure out what's wrong, the...
Hi, ‌ I wanted to use the expiration date on pending order. ‌ void openShortLimitTrade_RSI(double value) { // TrailingStopDistance    int ticket = OrderSend(Symbol(),OP_SELLLIMIT,Lots,value,slippage,0,0,"RSI_EA",MagicNumber2,TimeCurrent()+60*60,Red);    PlaySound("alert.wav"); .... }‌ ‌ While...
Hi, ‌ I‌ have an EA which is have specified 2 time frames to run on (1 hour and 15 minutes) ‌ W‌hen I run the EA, do I need to open 2 charts with different time frames and run the ea on the 2 charts? ‌ W‌hat would be the best solution if I would only like to run the EA on 1 chart but the EA will...
  robot help (6)
Hi  I‌ purchased a robot off ebay and was wondering if there was a way to remove all the advertising usually positioned in the left corner when uploaded on a chart? its just a mess.
hi there ‌‌I am noticing that ChartScreenShot() is saving the files as empty (i.e. zero byte files), anyone noticing a similar result ? ChartScreenShot () function returns true btw and I am using the latest build of 1052. I am using the following code : int OnStart(){      long chartid;...
Hi, ‌‌Does anybody know the meaning of the following error: ‌EventSetTimer(xxx) error 1158 ‌‌ (‌xxx: time specified for the timer within the EA) ‌ T‌hanks in advance!
Hi, I've ‌got simple code to take screen shots of all my open charts: int OnInit()   {    takeScreenShot();    return(INIT_SUCCEEDED);   } void takeScreenShot() {    string filename = "";    long thisChartID = ChartID();    long currChart=ChartFirst();    int i=0,limit=100;    while(i<limit)    {...
  miscellaneous questions (88   1 2 3 4 5 ... 8 9)
Hi, #Broker Time   I spent few hours for reading some comments, but I did not figure out how can I set my Broker Time to my indicators / how can I set my indicators to my Broker Time. (maybe I confused) My Broker Time starts from 01:00, but all my indicators works from 00:00. So how can I solve my...
Hi, I'm posting a https request in my EA but the WebRequest returns -1 with error 5203 ERR_WEBREQUEST_REQUEST_FAILED. What do you think the problem is?   Thanks,  Ala 
Hello, m‌y situation is that, I have a indicator running in strategy tester in MT4 build 1045. Test begin on 2013.01.01 00:00:00. ‌ int OnCalculate(...) {     Print( "Test: ", iTime( Symbol(), PERIOD_D1, 0 ), " Highest: ", iHigh( NULL, PERIOD_D1, 0 ), " Lowest: ", iLow( NULL, PERIOD_D1, 0 ) ); } But...
Dear firends, I want to assign a name on a variable and I want the name to include the Timeframe or the symbol name of the current chart. As an example suppose that I'm running my indicator on "W1" timeframe so I want my variable name to be XYZ_W1 . I want to know is it possible in MQL4 to do so ?...
Hello everyone, I created a small loop for, to try closures equal by using a counter. Unfortunately this Vieve count performed every tick, and I can not get an accurate count. ‌       if(iCustom(NULL, PERIOD_CURRENT, "CCI", CCI_Periodo, 0, PRICE_CLOSE, i) > 60           && iCustom(NULL,...
Dears, can somebody check the below link and answer my quetion(how can i get the highest after orderopenprice was opened). http://www.forexfactory.com/showthread.php?t=307937
Is it necessary to build a start() function in an EA? If not, why I cannot find it when creating an EA using the MQL4 Wizard?
Can somebody help me with this code please How to get last open order sell or buy then open a new order at same entry conditions and to close at opposite // External variables extern double LotSize = 1; extern double StopLoss = 0; extern double TakeProfit = 20; extern double TrailingStopLimit = 0;...
‌ I‌ would like to index the last 5 minutes from any current point ‌ i‌f current minute is 50 (CurMin) then last 5  (N) by index:   ‌1 = 45‌ 2 = 46 3 = 47 4 = 48‌ 5 = 49  ‌ I‌t's just CurMin-N+Index ‌ But if current minute is 2 (CurMin) then last 5 (N) by index: ‌1 = 57 2 = 58 3 = 59 4 = 0 5 = 1 ‌...
Hi guys, ‌ I‌ have a master ea which consist of different EAs which can run over different pairs and time. I would like to know how can I create a customisable GUI (Pop up) for the user to make this selection. ‌ When the user runs this EA, this customisable GUI will pop up and the user will be able...
Hi All, ‌ I‌ recently started writing indicators using MQL4, and I could not solve the issues that I faced in the mq4 file attached. In this simple testing file, I wish to copy my MACD array to the Short Array, but it seems that the Short Array does not store any data successfully. H‌ope someone...
hello i have got this worning back :return value of 'OrderSelect' should be checked    i have to make a SP and SL in a order...the code is: ‌  {          TheStopLoss=0;          TheTakeProfit=0;          if(TakeProfit>0) TheTakeProfit=Bid-TakeProfit*MyPoint;          if(StopLoss>0)...
  Decode EA (1)
I have written an expert advisor. I want to give it to a trader. I‌s it possible that someone decodes the EX4 files.  V‌ersion of meta editor : 5 buld 1526
Hi, still working on my trader managed to fix my trade timer idea using a method combining HonestKnave and Wroeders help, so thanks guys! ‌ G‌ot another bit of it that needs improving where i currently crudely work out a lot size for a trade and it makes sense but doesnt work on anything other than...
Hello, it is mql script in mt4. I have finished open 1 long or short position till it is closed, how could I open order per bar only? once I modified my codes of opening order part, it always creates endless orders in one bar. Thank you
Gentlemen of MQL4, it takes me a great surprise to know only very recently, these two functions CopySpread CopyRealVolume It turns out that these functions are part of the "Timeseries and Indicators Access" feature set, but are not seen directly when we click on that "Set" https://docs.mql4...
  Window handle (7)
‌Hello, I have a question about chartGetInteger: Normaly and If I understand well how this function works, I can recover the CHART_WINDOW_HANDLE like this:‌ ChartGetInteger(0,CHART_WINDOW_HANDLE) and it works if chart id is 0, but if I try to recover the chart ID of chart B from chart A, it doesn't...
Hi all,    I'm testing my EA at strategy tester. The problem is I cannot get the price for  Open, High , Low , Close for weekly candle (PERIOD_W1) .  During the testing, I'm using timeframe M1, M5 and H1 . The debug code and result as below. As you can see there, for all other timeframe, I managed...
123456789101112131415...1218