Download MetaTrader 5

MQL4 and MetaTrader 4 - page 461

To post a new topic, please log in or register
Hello folks, I am attempting to code an Custom Indicator but to arrive and the final value for putting into the IndexBuffers I need very much more than 8 indicator_buffers. I have created a set of Arrays and in the Init code:    ArrayResize(bufferVolgv, Bars);   ArraySetAsSeries(bufferVolgv, true);...
I installed the MT4 App on my Dell Venue tablet to access my FOREX.com account. When I go to the login screen, the app says it can't find the FOREX.com servers. I get this error message - "Ask your broker to contact MetaQuotes and we will add this company to the list shortly." FOREX.com support...
  Error 1 on OrderSend (20   1 2)
Hi guys, Error 1 on ordermodify is an old issue with a well known cause, but i'm getting error 1 on opening an order. I searched the forum and the internet with no avail. Has anyone encountered similar problem? Thanks.
Below is my trail stop code, its work with JPY Pair which is like 1.33867 (EUR/USD) trail stop can work 98.60 (USD/JPY) trail stop can work 1.4137 - can't work What is wrong with my code that EUR AUD cant work with trail stop extern int TrailingStop=9;extern double StopLoss = 0;...
Hi there, the grid in mt4 has an distance of x between horizontal lines. This can change automaticly. Is there an calculation behind the distance? J
hi friends, I've written an EA and I anytime I test it by ST-tester it gives me a correct result but when I execute it in Real-time Market I take a different result.(even in a same day and date) does anybody know about the problem and its solution?
Its work okay with EUR/USD which is 1.34261 Its work okay with USD/JPY which is 97.887 But it does not work with which is EUR/AUD 1.4204   I added this line myself       if (MarketInfo(OrderSymbol(), MODE_POINT) == 0.0001)       {      PointValue = 0.001;      }   double PointValue;  for (int i =...
Hi all, I need to get pause in back test by code to verify some things, I don't know how to do. Can anybody help me? Thanks
Hi Im comparing different brokers for live trading and i have noticed that the logs are not written the same The first is showing the current price "at 1.33218" but not on the other Anyone know why,? Iim using exactly the sam EA:s on both...
Hey All, Starting off very broad here, but is is possible (maybe with the help of a third party app) to pull the closed trades in the history log automatically into an excel spreadsheet? Cheers, -Dom
  MarketInfo return 0 (20   1 2)
hi, I use MT4 demo account. double bid =MarketInfo("EURUSD",MODE_BID); Print("bid number is ", DoubleToStr(bid, 4)); but just return 0 I can only get double Price = Bid; Print(Bid); This is ok. The reason I use MarketInfo is that when my EA is attatched to a chart, I want to read tick data...
Hi i got an urgent problem, my CHINKOUSPAN from the iIchimoku indicator is not working... I tried it on several pairs, and with several values at the "shift", but no matter what i try it will always return 0 as a value. double CHINKOU =iIchimoku(Symbol(), 0, 9,26,52, MODE_CHINKOUSPAN,1);...
Hi Friends, Please refer above warning message. Please help me to get out of this warning message. Thanks, Kcfve123
  Superfast SL (2)
Hi Forexfriends! Is there a good and very fast auto SL ea for allready opened positions? This is why; Hedging the news. Oldschool technique. I open 2 positions, 1 buy and one sell. It has to be very simpel and excuse me if this is a very simple question! I use Markets.com as a broker and they have...
//+------------------------------------------------------------------+//|                                                 send_pending.mq4 |//|                      Copyright © 2007, MetaQuotes Software Corp. |//|                                       http://www.metaquotes.net/...
#import "shell32.dll"//int ShellExecuteA(int hwnd,int lpVerb,string File,string Parameters,string Directory,int ShowCmd);int ShellExecuteA(int hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);#importstart() { ....// init:res=ShellExecuteA(NULL, NULL, "c...
Hi guys, I'm developing an EA which is based on Moving Average using H1 time period, this EA generates +339 pips/month. But this EA gives negative result during flat market condition about -280 pips/month. Do you know what kind of strategy or logic to avoid the EA making trades on flat market...
Hello everybody, I would like to ask a few question concerning a separate window (subwindow), I have read it some were in the CodeBase that we could find out what the height of the subwindow attached. Is it possible to code and used the height of this panel as value instead of using the calculated...
HI can you please reduce the number of top-fixed threads again and keep this number low? I would suggest to install kind of folder for e.g. mq5-topics... Thanks in advance, gooly!
Hi, I've done an EA that is supposed to open a trade when the MA's are a certain distance apart and then close the order when they cross. But the EA misses some crosses and closes at a later cross, sometimes even missing 2 crosses and closing on the third cross. int direction = 0;int prevDirection...
Hi Guys, When the new candle generates, I would like to get the last one and last two iHighest. My code is double lasthi1=iHighest(Symbol(),0,MODE_HIGH,50,1); double lasthi2=iHighest(Symbol(),0,MODE_HIGH,50,2); if(Close[2]>lasthi2 && Close[1] > lasthi1) { return(true); } But it...
Hi I want to read a newsFile, it exists and can be opened, but it is read only about 20%??                 // Open the file                hdl = FileOpen(newsFile, FILE_BIN|FILE_READ);                if (hdl < 0){                        Print("Can\'t open xml file: ", newsFile, ".  The last error is...
New article MQL5 Cookbook: Indicator Subwindow Controls - Scrollbar has been published at mql5.com: Let's continue exploring various controls and this time turn our attention to scrollbar. Just like in the previous article entitled "MQL5 Cookbook: Indicator Subwindow Controls - Buttons", all...
I have a strategy which involves manually trading the M1. It's fast moving and it's during the day and I am at work. In order to prep support and resistance lines, i want to create about 20 lines a day in as short a time frame as possible. it looks like there is no keyboard shortcut for...
I have the regression channels indicators along with the auto fib and the super signals v3. Where or how can I add an alert when price approaches all 3 say on a hourly time frame? Thank you.
If you want to change the color of the buffer, not based on turning points like usual (when the slope changes from negative to positive the color changes from red to green & vice versa), but on inflection points: when the first derivative changes signs, how would you code that? This is a start, but...
Dear Experts, I am looking for an EA for this breakout level trading. This EA had given 100+ pips constantly for the Last 8 months. 1. It counts last 4 hours high (buy entry) and Low (sell entry) in London or Asain session...... 2. Sets the TP/SL as the spread of that High and Low ( 20 pips) 3. It...
I refer to history data on a pair that does not have a window open, the EA runs on another pair. Is the history data updated continouisly on that other pair or do I have to have a window open on that other pair too?
There is any "ready to use" function to print the current expert advisor configuration just like it's presented in the "input" column in the "optimization results" tab?