MQL4 and MetaTrader 4 - page 278

To post a new topic, please log in or register
Hi there  This question might sound foolish - my apologies!  I have 3 types of params in my EA: int, bool and double. I'm backing everything up during runtime in a csv file, using an array of type double.  This is how  I'm doing the backing up: saving all the params in the array and then storing the...
Hello, i want to calculate the high and low of the previous day between 6.00 in the morning and 20.00 in the evening. I wrote a script to do that. But when i´m running the script for the 1st time, the alert shows the low of preday by 11434. That´s a false result. When i run the same script 2...
I searched on web and found histdata.com.  However, I can not download the data successfully since some un-known issue although I can open the web pages. Do you have the same experience and how to download successfully? Or is there any other source for free history M1 data in good quality?...
I have been developing an EA but after a few backtest runs it now goes really slowly. It runs fast on my other computer with the same broker like it used to do where it runs slow now. It has nothing to do with my EA code and I have cleared all the log files, caches or any other files related to the...
Hi,  I just start learning mql4 . I am here trying to code a simple EA that start with: 1- Check if no orders opened, i open 3 orders ( 2 buys and one sell). Each order has a specific magic number so i could select them easily. 2- Check if opened orders < 3 orders then i check which ones are...
Hello is there an easy way to get an Array[27][4] on a chart for real-time monitoring? I was well under way with Comment() but ran into a maximum. The idea is to show these variables and also to have some headers. Ideally negative values in red etc. but definitely in the category 'nice to have'....
hey,   how to get metatrade 's tick value,can i get previous history tick ' data or recommend any third part tick provider    
Hi. At the moment I can view my account history in MT4 and see all the winning and losing trades with the final total at the bottom of the list. What I would like to do is to be able to export a statement which has each trade listed and then next to the trade it has the "running balance". It seems...
Hello All, What functionality does mql when it comes to multiplication of Arrays?  Can I try 10*a, where a[x][1]?   Cheers! Cryptex 
After the LiveUpdate updated my terminal to the build 830, the client crashes every time I run it. Anyone knows what causes it? This is the log file on the day when it still worked: 0    08:18:02.795    MetaTrader 4 at FOREX.com build 765 started (GAIN Capital - Forex.com UK Ltd.) 0    08:18:02...
Does anyone know other OpenSource trading system which can connect to brokers for trading and have similar EA system? I know few private companies have simpler EA and inductor system, such as: //The code draw three MA lines in your indicators (almost no limitation for drawing lines)Short :=MA(Close...
If your programmers could speak in English, What would they say this error message meant?
MT4 for my Samsung Tablet is missing buttons  I downloaded the latest version for Google Play today.  There is no TRADE BUTTON on my MT4 on my Verizon Samsung Tablet - at least I don't see it and can't find it. Where is it? 
Hi How can I modify this code so that it draws painted candles instead of only colouring OHCL?  I have read about drawing histograms but I could really do with some help please.  This is the TTM Trend indicator, I really like it but I really would like it to use and colour the CandlesSticks....
hi all   Attached robot is not working on real account , could you please any of one help me to activate this robot on real.this robot is high earning robot, on demo in one day o.o1 lot with 8 pairs he gave me 750 usd only from deposit of 100 usd Regards Uzman 
Here's a problem that I've been struggling with for 3 days now: I have 2 separate MT4 platforms: one on my VPS and another on my laptop, and both have become unresponsive in an odd way:  -certain currency pairs (USDJPY, USDCAD along with SPX500 and US30) will not auto refresh the charts, and the...
How to explicitly release memory, pointed by a variable, or delete the variable itself?
  Question? (2)
Is the UK forex market opposite from the US forex market ? For example if the UK sells NZD/USD does that mean the US buys NZD/USD?
While using "or" for say 5 statements, if the first or second return true will MQL4 still check all 5? Thank you. 
  data mining (10)
hi every body i want to try data mining and have some questions: - is data mining do-able with mql4? or i have to try other softwares -is there any sample of data mining codes? - is there any reference to help me with important points which i should consider? and i thank your kindness for your...
soubra2003
Hi, I am a new in this forum and I am very happy to join it 1st, I have been opened a forex account with a company called (tradect ltd) they are in England and they have that site(www tradect com)  They have the metatrader4 MY QUETION: IS THAT COMPANY A REAL COMPANY OR A FRAUD? NOTES: ALL IP...
Hello, Can anyone help me with the following? I'm currently learning the MQL4, but so far I've never seen anyone talk about how to set a take profit once the candle closes in profit.  for example: EA opens a buy order at a certain price, after a few candles we are finally in profit and I'd like to...
Why is there no way to preset a stop loss with the one click trading?  There should definitely be that option in case the market moves hard one way between the time the entry order is filled and the time a stop-loss can be placed.
Hi all,  I've just registered my demo account and tried to practicing trading. I finished my registration on my laptop but when I tried to log in on my mobile metatrader 4 app using the login name and password, it said that it's an invalid account. But I can still place orders from my laptop. Is it...
Hi, I looked into documentation and I only function to delete indicator to a chart. My question is : How can I add from mql4 language an indicator to a specific chart? Thanks 
Hi, i want to open an order of every new candle lets say on H1. i wrote this code, but it always wait for close on opened order. I mean i want open 24 orders per day (H1 TF).   //+------------------------------------------------------------------+//|...
Hello, I'm trying to call the "Cycle Period Indicator" ( https://www.mql5.com/en/articles/288 ) from an expert by the below code. It doesn't give the the right value but gives "EMPTY VALUE" after 2 bars.  I realized that the major issue is refreshing of the indicator when I try to test the indicator...
Hello. Can anyone shed some light on this? I`m geting zero divide error when my EA calculates lot size. It only happens in Strategy tester on EURUSD and USDJPY when testing in tick mode ( control points works fine)  This is the code I use: double lot = MathFloor(((risk / NumberOfOrders)) /...
I made sure to put the Max bars at 99999999, tested and nothing. Made sure the chart was able to go back on my selected time frame. Make sure the EA was set to the correct time frame too. Then I went to History Center and downloaded everything for EUR USD, restarted PC and still nothing. Reset the...