Download MetaTrader 5

MQL4 and MetaTrader 4 - page 426

To post a new topic, please log in or register
I like to know from you what you think is more important it is about news from forex factory calendar at newstime i make an indicator like i had done before for the dailyfx displaying vertical lines i wanna have also a line for the start of a bank holiday the color of a line will depend of the...
Hello all, let´s say I have a list with about 200 - 300 manually taken trades with the open and close (date, time, Asset (ISIN, or CFD DAX, DOW etc.) price etc) datas. Now I want to check which scenario would have been the most profitable...like setting different SL, TSL, TP etc. I hope it is...
I always thought there are more problems with M1 due to missed ticks etc. But I can display all 8 currency strengths of my indi fine in M1 and M5 (with some occasional missing bars in M1.) Only 1-3 currencies, flatlined, in H1 seem to be displayed, even after a full day. M15 has occasional problems...
this code is giving me previous to prvious week high but i want just previous week low and high value double WeekHigh=iHigh(NULL,PERIOD_W1,1); Print("weekhigh",WeekHigh);
Hello Guys, I want to export data from MT4. Maybee I want to run it in Linux Wine. What are the methods to export few data. File/ Tcp ... I want to have Software which takes the data for further use. Thanks! Flo
int iTBT = iBarShift(NULL,60, triggerBarTime, true), //<< -- Wanting to use this triggerBarTime date and time, to find YESTERDAY's date, and then yesterdays high...   iHH = iHighest(NULL,60, MODE_HIGH, iTBT + CandlesBeforeBiasObtained, 0);      Print(" The TriggerBarTime is: ",...
Hello: I know Bars returns the number of bars currently displayed on screen.  However I'm trying to retrieve several pieces of data across various currencies and am unable to do so.  For example I'd like to export all open, close values of various currency pairs from Jan 1 1990 onwards through one...
Hi guys, I terminated a function of double type in a complex program without any return value, what is an obvious mistake. The function call ( 'test()' ) is triggered from inside a loop (while or for). The function test() doesnt return any value, so the variables a and b can never have any value....
  OperationType (2)
Hi everybody, I'm making a software who works with metatrader, just now I have sended all history at my database, property OrderType is between 0 and 5 but I see who there is other values. Value 6 like a deposit and 7 like a bonus, have you the complete list of values? In attachment you can see a...
Hi, My problem: Why happend? Uncertainty, that occurs when good. Thanks in advance for your time and assistance. Bye void start()   {  if (!not_first_start)   {    GlobalVariableSet("T_AutoClose", 0);    GlobalVariableSet("T_OnlyClose", 0);   }........and in other i request value:int...
Hi everybody, I need to quit from MetaTrader4 by script. I have searched the right command but I don't found it. There is a saint who knows this command? I have need of it because I'm making a software to manage of more account and I do login by file Start.ini who contains the credential to log, I...
Hi, I am new to MQL4 but have been coding and playing with EA's for the last six weeks. I am trying to view a chart of the TICKS in the eur/usd as they appear and play with that data. I am new enough to not know if there is an easy way to do that. I am stubborn enough to try and do it myself. I...
Is there a way i can take the values of open and close of every minute from 0000 to 0015 and then for next 15 minutes and so on. without writing a loop with a difference of 15 mins. Is there any such function in mql4. pardon me for my ignorance.
  unistall (2)
I want to uninstall gone to control panel as normal will not let me unistall
Good Day... I just would like to ask if anyone have tried to compare a certain price (eg. EURUSD) from 2 different sources using scripts or EA? Thank you very much.
Hello, Is there anybody on this forum that is aware of a script that will allow me adjust the size of the candlesticks in a greater degree than the standard setting of mt4 allow? Thanks, Irv
Does anyone know a way to read the Size by default, shown below, into an EA?
Hi, I'm looking to calculate data from an indicator (daily high/low). Just trying with iCustom but... I'm not so good at MQL4. Does anybody have any suggestion?
I have Master an Slave EA, and i Need if is possible to change something or add in Slave a place where to select TP, and do not close it until it reach TP. Because it open trades and close it between -0.1 and -0.8. So i Need to be able to set TP on it. Can you help me?
Hello all, I attached my code below which is a mixture of codes found on this forum and an adaptation of the indicator from this page http://www.earnforex.com/position-size-calculator. I'm using a 5 digits broker with 30 pips of Stoploss hence the Stoploss * pips2points. The account currency is...
hi everyone, So i am working on this code. I am looking to get the prices over a period of 24*60 minutes on a minute by minute basis. Now the iclose function takes symbol, time frame and shift as inputs. i was wondering if there is any way to make this shift a variable. something like run shift[0]...
  grail.mg4 (6)
i have one indicator but dont play . please help me. the indicator is grail.mg4
Hello, I have a data source online which I am using as an indicator to trade with. It is provided through JSON, and has a simple timestamp,value format. This JSON file sends the entire historic data, so it is a fairly large file. The problem occurs when I try to run multiple of these indicators at...
Hi, I need to use normalized ATR (Average True Range) indicator that oscialtes between 0 and 1 in my EA. I searched but could not find such a function written in MQL language. The logic must be something like below as I found from google: (ATR of last bar – min ATR in last n-bars) / (max ATR in last...
Hi, Does anyone know of a script that will evenly divide 4 charts vertically on an MT4 Platform (meaning side-by-side instead of window wise)? Now I still need to do this manually every time... Cheers, Dutchie
Hello everybody, I'm trying to add a moving average to stochastic. Graphically is quite simple, I just need to drag the MA from navigator list to the Stoch window BUT... I was looking to do that coding and I'm not so good at that. Given that when I do that dragging it, I need...
I do not speak good English, so this is a translation of google, sorry. This is my first EA, it compares the price to one hour with respect to past and it sell to future hour. I know it's not perfect, but understand that I am not a programmer. My problem is that I need to sell the position at the...
  Backtesting (8)
Hi to everybody. I tried many backtest using the Simple MACD but I have a question... Using the Tester In Expert properties there are some Inputs of Variable Value Start Step and Stop How this values change the behaviour of Expert Advisor? When I drag and drop the Expert the program don't ask this 4...
Hi, It's probably kind of a basic problem. I am coding a table with lot of objects to write different values. I don't know exactly what I changed but suddenly all objects disappeared, switching timeframes etc. didn't help. Then I found out that if I change the object name (add or delete one...
I am a US trader and I want to use a foreign broker but I am concerned about latency issues. Is there a delay in quote data, open/close times if the brokerage is in a foreign country?