MQL4 and MetaTrader 4 - page 517

To post a new topic, please log in or register
Hi, I'm not a coder, just a user, so please help me understand why we are "stuck" with 5 min or 15 min time frames or 1 hr and 4 hr in MT4. I know we can create out of the ordinary time frames offline, but "live" candles are what I trade with. Does someone in this forum have an application (for...
First off, I know Raptor that you have raised this issue with me before, but I cannot remember where you wrote it, and, more importantly understand where I am going wrong? As far as I am aware I was writing it correctly so that the EA attached to any corresponding Pair will be able to always work on...
Hello all, First post so please direct me to the right place if you need to. Im not sure if I need a script to do this but please let me know if I do (and provide solution if possible). I am trying to create a simple mql4 program or script that will place trades based on the MA. There is an...
As of last night I noticed my trade signal alerts sent push to my android phone stopped coming through. If I open up MT4 on my phone, sometimes it will give me the alerts but all the past alerts come through at once. Never had any issues with this before. Any thoughts on what may be causing this?...
may we use more than 8 buffers or arrays in an indecator or EA ?
Hello I have 2 codes, that look almost the same but the results on backtest are 100% different. Can somebody tell me what is wrong with 2nd code because that is the one that is broken. 1st code: int start(){               double MA_1_t=iMA(NULL,0,FastMAPeriod,0,1,0,0);double MA_2_t=iMA(NULL,0...
Hi MQL4 community, I was wondering if anybody knows how to change the display of the following oscillators: MACDRSISTOCH from there standard display placed at the bottom of a chart, to example shown in the image I have attached to this post? Please do let me know! Thank you so much in advance....
Hi, Here results of work of the program above which I worked more on a year. Advantage of the program is work at all brokers, and an opportunity of loss of the deposit never. I have already created that program in which is assured. I have received 22% profits for a week of work on real but it not a...
programandomql
Hi, I'm planning an EA, which will send a series of orders if trend develops well. The latter orders depend on former orders. And orders's sizes are not the same. The very first order's size, especially, is quite different. So, I'm thinking: what if MT4 re-connect? ----even if I try to keep it...
I'm using MT4 4.00 build 509, but this bug has been around for quite some time. The attached program draws Daily cycle lines using DRAW_HISTOGRAM to draw vertical DOT lines. The desired line style is DOT, which works when zoomed out, but if one zooms in to the 2 closest zoom levels (5th or 6th),...
Hi All, Please see attached mq4 file. I have modified this to display charts in 4 TFs at once in the same window, from the original (correctly working) mq4 that only displays one chart at one time, as here: http://www.stevehopwoodforex.com/phpBB3/viewtopic.php?f=45&t=629 no. 2 in Post #1 (Currency...
Hello, I am trying to send an order with this function: OrderSend(currencies[i], OP_BUY, 0.1, MarketInfo(currencies[i],MODE_ASK), 10, MarketInfo(currencies[i],MODE_ASK)-0.0005,  MarketInfo(currencies[i],MODE_ASK)+0.001,"Sell", Peru); For this one I am trying to set a stop loss of 5 pips and a...
Hi, Looking into ZigZag code, there're 3 parameters: extern int ExtDepth=12; extern int ExtDeviation=5; extern int ExtBackstep=3; What do they mean? Apparently it's not what I'm thinking ---- for example, when price moves more than 30 pips, it begins to draw a swing high/low. But from a beginer's...
MirTD
  icustom calling (17   1 2)
I have some doubts regarding calling of icustom function from within an indicator.the documentation does not state anything in this regard.even it does not state whether EA can call custom indicator using icustom function although it is possible.any clarification is welcome.. thnks
It's starting with a template that has some indicators and I don't know why, why isn't it starting with the default template with just the prices in OHLC like it's usual? It's using a template that has a bugged indicator, which I already changed, but it keeps using the old settings, and so it...
  Struggling with GV code (13   1 2)
Hi all I am trying to get a variable form one chart, into an ea on a different chart, really confused by usage of Global Variables(platform variables). Here is what I have tried.(deleted init etc for clarity) string haLow = "GV_haLow";int start()  {    double testhaLow...
Hello I have a problem with requotes and need your advice. When I send an open or close order to a broker, he sends me requotes so many times that it throws a TOO_MANY_ORDERS error. How do you guys handle that error? I mean, I have created a function that resends the request to him again and again...
Hello, I have a EA that I found on the forums that had some math errors and such, but once corrected works on the Demo server without any problems and does what I want. When I try it with a live account it just sits there with a silly smiley face in the corner but not doing anything. Anybody have...
Hello MetaTrader-Team, why are in the Version 4.00 Build 509 the results in the strategietester canceld. In the older version the results are displayed. 2013.08.18 13:29:26 There were 6 passes done during optimization, 6 results have been discarded as insignificant Thanks, Andreas
  Robot Trading (1)
Why is it when I subscribe to a robot trader - it has no problem opening positions but it doesn't close them. It shows that it closed its own position at a profit but I am still sitting in the trade.
Hi: I am wondering what's the difference between using an include file and a library file. As I understand, a library file is compiled and the code of an include file is included in the ea code and then compiled. In term of the execution efficiency, which one is more efficient please? Thanks
Good Day.. I develop an EA on 2 simple moving averages to which it will Open/Close trades when 2 sma's crossed. The only problem is that, sometimes, the 2 sma's almost cross each other but after a few ticks it will not eventually cross and for that instant, trades will be Opened or closed according...
Hi all, I write a indicator to determination candle breakout between 2 top of point. I write a trendline from Top of point A to Top of Point B . But i don't know how to get value in this trendline at Point C ( between point A and Point B). Like picture in below. Please help me . Thanks a lot
Hello! I have a point on H4 TF and want to catch that point on other TFs as well. When I write: 240 * j / Period() where j is the order of the point on H4 TF (e.g. if it is the current bar j = 0, for the previous bar j = 1, etc.) I obtain the correct results fot D1, H4 itself, H1, M30, M15, but not...
  Problem with EMPTY_VALUE (21   1 2 3)
Hello, I have a problem with EMPTY_VALUE constant. I have created an indicator which assigns a value to an element in a buffer or it assigns an EMPPTY_VALUE, but when I check the value in expert advisor its value is 2147483647.0000. So in the "if" statement if(value == EMPTY_VALUE) resolves to...
I am a bit new to forex trading. I have heard of an Algorithmic Forex Trading strategy to maximize profits. Could anyone tell me more about it? Thanks
Hi, I have following:       if( MathAbs(Bid - h1000) < Point*10 )      {         Print("Bid: ", DoubleToStr(Bid,8));         Print("h1000: ", DoubleToStr(h1000,8));      }      if( (Bid - h1000) > 0.0)      {         Print("Bid > h1000");         res = DoBuy();         return;      } The first...
Whats wrong with this code? I get previous day high/low/close and start calculation. To get previous day high/low/close i got simple code here. just added some code for previous day low,close and calculations. when i compile which shows error message [' - array index is to be an integer Here is the...