Download MetaTrader 5

MQL4 and MetaTrader 4 - page 482

To post a new topic, please log in or register
Hi Everyone, I create a custom indicator on a separate window, which has a range from 0 to 10. Could you please help me to put  1 comment on the left handside, at the level 5.0.  Thank you for your help.  HHC  string short_name = "indicator at 5.0";IndicatorShortName(short_name);
Hi guys, I wrote EA, I need read data from extern files. EA in tester mode return error 4103: ERR_CANNOT_OPEN_FILE When run the same EA on demo graph/market, reading is ok. Tester mode cannot file operations...???   Thank you for answer. 
Can anyone tell me how you can see which of the EA's opened an automated trade. I have 2 EA's, but can't see who has opened the trades.  Thanks,  Steve 
I have been trading the USD majors on a discretionary basis pretty well while using a systematic trend indicator. Essentially, the goal of this indicator is to determine whether we are currently in an uptrend/downtrend. From that I use support/resistance, and feel to time my market entries/exits. I...
Hey guys, with the latest 509 version, you can see when dragging the TP / SL the pips and the TP / SL win or loss in your deposit currency. But what annoys me is that after the dragging of the TP / SL line the info is gone. Is there any option to keep the info visible at the line? regards naik
Hi, I'd like to add just another question to the iBarShift discussion: e.g.  iBarShift("EURUSD", PERIOD_H4, D'2013.06.21 14:10' , true) currently returns 62. I would have expected it to return -1, since there is no bar in PERIOD_H4, opening exactly at D'2013.06.21 14:10' . So when would it return...
New article Graphical Control of External Parameters of Indicators has been published. How often do you have to set or change external parameters of indicators? Many of you must have once thought of moving them to the chart to be able to conveniently drag an icon or an object to the required...
Please forgive me, I'm relatively new to using the Strategy tester. I'm trying to test an EA I've written to implement a strategy on GBPCAD.  But when I click in the "Symbol" box on the Strategy Tester Settings, I get a drop down list of Symbols, and GBPCAD is not there.  I see no options for adding...
New article Social Trading with MetaTrader 4 and MetaTrader 5 Trading Platforms has been published: What is social trading? It is a mutually beneficial cooperation of traders and investors whereby successful traders allow monitoring of their trading and potential investors take the opportunity to...
hello everyone, is there a way one can combine two expert advisors using different magic numbers? I know I can write them all into one file, but as they are, separate is there a way that they can be combined, without writing them into one file?? thanks
hi, i have a string array such below. Is there any code to show string variables from array in data window? string pair[28]= { "EURJPY", "GBPJPY", "AUDJPY", "NZDJPY", "CHFJPY", "CADJPY", "USDJPY","EURUSD", "EURGBP", "EURCHF", "EURCAD", "EURAUD", "EURNZD", "GBPUSD","GBPCHF", "GBPCAD", "GBPAUD",...
Dear all   here is my code:   //+------------------------------------------------------------------+//|                                                      testing.mq4...
Is there script that can set a stop loss to close only a percentage of an open order?  I have a position that I want to hold open but would like to scale out of in the event price action begins to move against me.
I have 28 arrays. Every array has double values. How i code to compare these values? For eample i want to find the second value from 28 values for every order(secondvalıue[i]) Please show some simple codes. Thanks.
Good morning, I write a simple indicator for stochastic cross with the arrow is either above or below the bar. However, I want the arrow to be at the bottom of the chart window, say 0.5 inch above the lower border of the window. I don't know how to do it and I wonder if you can help me.  My code is...
code:    Print("wtf ", iBarShift("JPYJPY", 1, Time[0], true));    Print("wtf ", iBarShift("JPYJPY", 1, Time[0], true)); output: 2013.07.05 10:49:29    test GBPUSD,M1: wtf 0 2013.07.05 10:49:29    test GBPUSD,M1: wtf -1 as you can see, giving ibarshift incorrect symbol produces inconsistent result.
Hi, I have graph, when bars start no standard time, example: TF 15min: xx:05; xx:20; etc. I wrote easy code script: int start()  {  datetime time=StrToTime("2013.02.25 09:00");  int StartShift = iBarShift(NULL,0,time, true);  Alert(StartShift);  return(0);  }  Why function iBarShift don´t return...
Hello Everyone! I'm new to the forum and new to MQL -- so please be patient with me.  I am looking to write a program but am unsure if MQL4 easily supports the kind of functionality I'm looking for. What I want is a program that continuously monitors the net value of two or more manually placed...
I'm looking for simple EA, that buy whenever CCI break it's own MA on the way up, and sell whenever CCI break it's own MA on the way down. I looked at some samples, and didn't find one that is simple. this should be simple.   please help,   thanks,  
i am using demo acc when i open strategy tester before it was possible to select start date and end date . but 14 day back start date is selected and enddate when selcted optimization beomes checked  in and w cannot select end date attached file clip pl help
Hi all, I'm looking to get a function where once total order profit get say $10, if it bounces back to $5, our open orders are closed. I'm try to make use of the follow code, but can't get the result expected. Is that possible get some help to put me in the right direction ? extern double...
New article Testing Expert Advisors on Non-Standard Time Frames has been published.It's not just simple; it's super simple. Testing Expert Advisors on non-standard time frames is possible! All we need to do is to replace standard time frame data with non-standard time frame data. Furthermore, we can...
Hi, unsure if this is possible, 3 screens up on the monitor, 3 different time frames, move the mouse over one and it moves over the other 2 as well, for example move mouse on the 4 hr chart (history) and this will show me where that is in the 1hr and daily charts I'm terrible at explaining this :(...
Hi all, Using the following code am looking to close orders once the TotalOrderProfit gets equal or less than TrailedPrice. I have put a print to check why is that not working and what I see is that the price do not come down. Could you show  me what am doing wrong ?     void...
Hi, I've got a strange problem where I want to edit a source code but MT4 doesn't let me do it. When I click on the icon that looks like a yellow diamond with an exclamation mark (or shortcut F4), it is non-responsive and does not open up the source code like it used to. I tried uninstalling the MT4...
  help writing a file (12   1 2)
hello, i"m learning the mql4 for a while. and i just cant understand what is wronge with my code. trying to write a file with this code :   extern string FileName = "testfile12.csv";extern double candle_open_new,candle_open; int init()  {//----  candle_open   =  iOpen(NULL,0,1);  //----...
HELP :: I need to add a pop up window and sound for this indicator.....
Hallo, ich kämpfe mich gerade durch das MQL4 Tutorial. Die ersten einfachen E.A. laufen. Doch immer wenn ich ein Skript laufen lassen will, kommt folgende Expertenmeldung: 1.   2013.07.05 12:27:22 probe EURUSDm,M15: loaded successfully 2.   2013.07.05 12:27:22 probe EURUSDm,M15: uninit reason 0 3....
  Code inquiry (1)
Hello everyone, I was wondering if anyone has coded an EA or indicator to have the display and history chart bars reset to its allowable minimum to avoid sluggishness without restarting MT4. All help and input will be appreciated. Thanks in advance, David