MQL4 and MetaTrader 4 - page 149

To post a new topic, please log in or register
Hi everyone, Can someone help me to write a condition for an indicator to send alerts only if the candle's open time is less than 59 seconds for M5? Thank you in advance!
I have a binary options ea I want to use to trade MT4 binary options on Grand Capital MT4, but with that broker the expiration time needs to go in the Comment field in the Order Window (such as 1 for a 1 minute expiration). The broker allows 1 minute expirations and higher. But if you leave the...
Why some times even if I have download full hystorical data 1 min, followed any suggested indication from the author , the test of a well known EA free version give me no result? I know that  I am a newbie but.....tests from EA works fine....test from other don't work..... Any tip? ‌
Hi, Why when I tried to copy something working into another EA‌... It doesn't work. ‌ Please Help.‌ ‌ It says 'SplitString' and 'ArraySize' - declaration without type. But it is coded like this into many EAs. int init()   ‌ SplitString(PipsDeclencheur,";", PipsDeclencheurArray);...
Some one can help me with this ? I want close the pending order when the candle close. I would like to close the pending orders of this EA when : Close buy: Bid<Low[1] and The actual candle closes; and Close sell: Bid>High[1] and The actual candle closes;‌...
Hi, ‌ I‌ would like to pass out my EA which is compiled to some friends however I would like to have a pop out box for them to key in their lot sizes for the EA. ‌ A‌s I do not want them to know my EA, hence I would only allow them to key in their lot sizes when they run the EA on their own. ‌ How...
H‌i All, ‌I am a self taught mql4 hack needing a bit of assistance to get a complex (to me anyway) data type defined - and have been trying for several nights. A bit of help would be greatly appreciated. I am writing an EA to apply a trading methodology that uses a combination of M1, M5 and M15 time...
Hello guys I'm currently trying to make an EA which will get the value of a certain indicator using iCustom. This indicator is auto fibo, I want to get the values of each fibo levels and set it as the takeprofit, Do you have any ideas how to do that? Btw. I tried using this...
I want to add the expiry check in the OnInit() section and if returns false , I want to prevent it from going ahead. And I want to stop the code. ‌‌I have written this: int OnInit()   { //--- if(expirationdate() !=true) { Alert("Expired!!!"); return(0); } } ‌I wrote the function: bool...
HI, Can any one comment as how an indicator in cobe base as above can be recoded or modified to work in Current MT4 tester? Appreciate your Help Thanks ‌
Hi guys, I‌ am a newbie and trying to understand how strategy tester calculates profit. Screen shot is below. ‌Take profit at 1.10167 after buying at 1.10017, Why profit is not $150. It gives me $139? Testing account currency is USD and symbol is EURUSD! So I am expecting $150 USD. Right? ‌
Hello, I am interested in making the switch to MT4 or MT5. I have read some articles / blog posts and wondered if a moderator or someone who actually uses MT4 / MT5 in the following manner can verify whether or not MT4/ MT5 has the following functionality : 1. Is it possible to create an automated...
Is there any EA/ indicators to make custom Timeframe on mt4 like 10 sec chart, and can u apply indicators on the 10 sec chart
Hello everyone! i'm newbie trader and I want to learning code EA!‌ I have a question want ask everyone! I want to get point OrderOpenPrice and OrderClosePrice of orderclosest but I don't know right way??? Please help me!‌ ‌ PS: sorry, I speak a little English! Thank you so much!!!‌
Can someone tell the difference between NULL and "" Thank you in advance.
Hi. I have my iCustom indicator. When I run my Expert include my indicator I got the message : "indicator is too slow, 3323 ms. rewrite the indicator, please" What should I do to solve this problem   Thanks Meir 
Hi, As a beginning programmer, i wish to use an object orientated programming approach using MQL4. I am compiling with metaeditor version 5.00 build 1526. I am using inlude files from Andrew Youngs "Expert Advisor Programming for Metatrader4".  In the trade.mqh file wrappers are used calling the...
Hi,  I added the myfxbook EA to a chart and did a full sync to the mql5 vps.  I also enabled debug mode in the myfxbook ea.   When I download the Journals I see it has been removed: 2017.03.02 10:00:40.024 Myfxbook EURUSD,H1: Myfxbook EA Version 1.86‌‌ 2017.03.02 10:00:40.024 Cannot call 'Myfxbook...
  Text ON chart (3)
Hello I‌ placed a text object on chart B‌ut only a part of my text is shown on the chart. ‌ And it only occupies halp of the chart width. ‌ ObjectCreate(objname3, OBJ_LABEL, 0, 0, 0);    ObjectSet(objname3, OBJPROP_XDISTANCE, x3);    ObjectSet(objname3, OBJPROP_YDISTANCE, y3);...
Hello, Is it possible to code (I would order a Freelance job if so) a plugin that re-runs MT4 (genetic) test results 1 by 1 and either save the results in excel or open the tabs in firefox? The problem I have while strategy-testing is that many results are given as similar but when I input the...
I'm really a newbie but please have a look at this: Every time i run a strategy testing the first time i obtain different result from the next ones without changing anything even if the platform is disconnected from the broker to avoid spred problems!!! From the second pass everything goes ok.  It...
Hi all, I am new to MQL5 and MT4, I am a little surprised by the simple layout, for example at the order window why aren't the current orders with a profit green? I tried to change this but couldnt find the right place. Could someone help me out, if it is possible at all. I really hope so because I...
dynamic trader is software that has additional fibo systems that are very helpful and exact . very helpfu in trading, i know mt4 has rettracements, expensions and timing . but nothing like dynamic histogramm, this one is very very helpful in finding exact times of turning points . asking if there...
Help needed, I tried to use the .ico format file with the #resource but it is not recognized. However .bmp is very much used with #resource. Question is: how do I use Resources to append the icon file (or better still use .bmp to create an icon) so that when the program is distributed or moved to a...
Sometimes the market watch window is showing only the last few seconds of price fluctuations, and sometimes several minutes of ticks.  I understand that it is some sort of cache that needs to be filled, but : 1 why isn't it consistent, and 2 how can I reset it? 
This was fine before new mt4 builds but is throwing up "cannot convert type string to bool" when I try to compile now, any ideas? if((bool)response.getAttribute("error"))
Script being discussed: NettoTrading - I will keep this as brief as possible. - I prefer to Buy/Sell with OneClickTrading(market orders) and have it automatically subtract/add/close my current position. Similar to a DOM   with NinjaTrader/Futures platforms. - So I use NettoTrading on MT4 with my...
  pending order (2)
I need somebody to help me how can i put some pending ordrer at the same time. I want a put all the following orders at the same time.  I put the  first 2   OrderSend("GBPJPY",OP_BUY,mul*0.5,Ask,10, 0, 0,"My order");  OrderSend("GBPJPY",OP_SELLSTOP,mul*1.0 ,Ask-Zone,10, 0, 0,"My order");   but the...
Hello, I got an EA from a friend, but I do have problems with the Error 131 which I learnt means, that the calculated trade volume is not allowed by the broker. Is there somebody who could fix the .mq4 code an add in a trade volume check before the OrderSend function is executed. I am not able to...
Hello, My EA has different types of order and with some of them, if I specify a colour in OrderSend() and OrderClose(), it creates a big mess on the chart with repeated trades opening and closing. Therefore for some orders I need a colour and for others I need nothing.   My code is as follows:...