MQL4 and MetaTrader 4 - page 719

Hiya all, So I had made this -for me - really handy EA. If you load it, you can chose from the four pending order types, and three lines are drawed on the screen: the Triggerline, TP and SL. As soon as the price gets triggered the order opens; the TP and SL can be changed realtime: The TP and...
Good night everyone, I have a little problem with one of my indicators. It works fine when just loaded, in real time and in visual backtests. However, when MT4 closes and opens restoring the charts previously opened, the indicator goes nuts and one buffer (the last one) is always storing EMPTY_VALUE...
Guys I am looking for any EA which can trailing profit. I mean when I set trailing 10$ and set trailing step 3. this mean when profit goto 10$ EA set 2$ as trailing. when market reverse EA take profit 2$. Is there any type of EA in this forum.   Please help me.      
I am running MT4 & EXCEL 2010 on Windows 8 64bit. I cannot get the DDE link to work, EXCEL just hangs when i use the formula =mt4|bid!eurusd I have activated the DDE server in MT4, Checked "transition formula entry" in EXCEL' and installed MT4 to a folder outside program files but none of these
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...
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
  bug on iBarshift  (8)
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...
SPAM removed
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
  Protect Profit  (7)
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...
  Triple Screens  (1)
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 StartToTrailPrice()
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);  //----...