MQL4 and MetaTrader 4 - page 14

To post a new topic, please log in or register
I can draw a vertical line from past date into current date but how to draw a vertical line into future date? I've been tried with this code but nothing happen: extern int FutureBars=100;extern int BarsLimit=1000;for(int i=BarsLimit; i>=0; i--){    datetime...
How can I connect with Android? Mainly, I need to find the IP address to remotely connect to the VPS.  Thanks
  Previous Bar Trailing Stop (39   1 2 3 4)
Hi, has anyone a trailing stop EA which moves the stop to the previous bar's low/high? Thank you!!
Hi, I use metatrader4 on my Phone and tablet. Both android.  On the Phone all works ok, but on tablet samsung galaxy tab s2 i Have a problem with rotation. Program works only on horizontal position. All other apps on tablet works ok also on vertical position. Where is the problem? Anyone can help me...
Hello traders! I need help for my code. I need to get the current order price on the market, according to the ticket ... This price: I attach a function that returns the number of the ticket I found here: https://www.mql5.com/en/forum/109180 int LastOpenTicket___(int magic_number ){// Function...
Hello, I've been looking all over the forums and documentation and I cant find any information on my problem. I want to count the time in hours since a specific action was taken. I want it to be easily reset able and manipulable. Is there a particular "Count Time" function that I can use?  I am...
Hi, is there a snippet how to find the current used Symbol? I want to do that if for e.g Symbol = EURUSD than do something. If USDJPY do something. How can i handle that easy?
Hello. I have 4 MT4 on one VPS and all of a sudden I can't see anything in the market tab. I am logged in to mql5 and can see my Balance in the upper right, but the window is just blank. I can't see any Experts or Indicators. Not in any of my 4 MT4 installations. They used to work before, because I...
I got this function that selects the latest open  order .Now I want to determine whether this order is a buy or sell, how do i proceed from here? Will this work? if LastOpenTicket() == OP_BUY ) the Do this...... ) My question is , will the programme be able to tell if the last open  ticket is a buy...
This is my first post!!  In the MACD Sample EA included with MT4, what do the Open Level 3 & Close Level 2 actually mean?  I have only been practiceing for 3 months and would to try an EA.
  EA work on Renko chart ? (13   1 2)
I am just wondering if there are any special code for Renko chart? I mean the same icustom is used for Renko chart? double Buff1=iCustom(NULL,TimeScale,"Renko indi",1,1);//buy In renko chart, how about TImeScale? If EA attached on renko chart , TImeScale =?? Also what about icustom shift?  Shift...
Hello, I've tried for many hours to figure out what's going on with my code on this. From my understanding, I can code into a customer indicator in *.mq4 format to open my *.ex4 customer indicator. If this is incorrect, please correct me.  So now, here is the code I have been implementing using...
Hello, I am working on an index indicator based from this one : https://www.mql5.com/ru/code/9780 I really need to get the HIGH and LOW's values (from the subwindow) of each day then i will be able to draw boxes (with OBJ_RECTANGLE). I know how to get it from the price's chart to draw boxes on the...
  Code help (3)
//+---------------------------------------------------------------------------------------------------+//|                                                                            HLHB Trend-Catcher.mq4 |//|                                                                            Copyright 2016,...
Hello every one, I am working on a indicator based on this one : https://www.mql5.com/ru/code/9780 I am modifying it in histogram version by changing : "DRAW_LINE" with "DRAW_HISTOGRAM" . My problem is that my code, drawing all histogram bars in one color dependig on the current candle's color...
I know that this question has been asked before, but I can't get it to work. I hope someone can help. From my custom EA, I want to programmatically add my custom indicator to a subwindow of the chart the EA was added to. I've managed to do this in MQL5 with ChartIndicatorAdd. So, I have my indicator...
How to write a new line in Comment() MQL4 question thanks
I would like to kindly ask you about the broker´s side of Meta Trader 4 - I mean the server.  As I wouldn´t like to have any troubles with the brokers in terms of overloading their server/servers, my question is: Can I send tens of orders (eg. twenty times 15 lots) to the broker´s server in the time...
My mt4 doesnt work in windows 10. My windows 10 has update, and i use the version mt4 Activtrades. I tried reisntall, but doent work. What i need do to open my mt4?
Is there a way to set the account number in my mq4 file so it will be locked to just a specific account number when compiling the ex4 file? So, if I want to share one EA with someone and lock it to their account number. I guess it should be a short line of code, but couldn't find anything about it.
I try to execute a script and after the message SUCCESSFULLY LOADED it gets REMOVED. Why?
why these candles appear in meta quotes demo account ? is it normal ? but we test many EA on this account and we found much differences when we  use another brokers one
Hello everyone, I'm looking for a function in MQL4 that returns a color of a specific indicator's buffer. Something like PlotIndexGetInteger(plotNr,PLOT_LINE_COLOR) in MQL5. I know there is a constant indicator_colorN but if I change the color in the input window (tab colors) the indicator_colorN is...
Hello, everyone, I have met a problem when coding EA and I was wondering whether you could be kind enough to enlighten me. The internet connection to the server here is sometimes lost and reestablished automatically. The following is my understanding of EA working when internet is lost and...
I have been using the MetaTrader 4 app on my android for over a month, worked great for what I was using it for. One morning, I logged in around 7:00 am, worked fine. Tried logging in later that morning around 10:00 am and I got the error, Authorization Failed. I contacted the broker to see if...
I'm testing an EA in the strategy tester. To get a graphical representation of it, I also added an indicator, a simple indicator that warns me when the bid price breaks the lower or upper limits of a donchian channel. In real time, the indicator works perfectly, but in the strategy tester the...
Hi, Hi need to preserve a string variable from reset when I change TF. GlobalVariableSet is not a solution for me because I need to apply more times the same indicator on the chart with different properties, so to work correctly the GlobalVariable should have a different name for each indicator...
  Deleting a pending order (13   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...
I want to backtesting my EA with the period of weekly or monthly, but I only can find the period selection only from M1 to Daily !
Hi all, I have a custom indicator and I build an EA from it. I would like to know is there any chance to put the indicator into the EA so I would be able to sell it via the market? Iam not talking about the iCustum function, I already use this to use it with my terminal, but nobody would be able to...