Download MetaTrader 5

MQL4 and MetaTrader 4 - page 475

To post a new topic, please log in or register
I created a custom indicator where one of the lines is the result of a subtraction of another line  i.e. L2= L1[i]-L1[i-1]. The indicator works fine most of the time but occasionally gives a large +/- value. This is creating havoc to my EA and it is entering into trades spontaneously. Has anyone...
I tested EA which I made with myself. Test condition EA Name WPR-v3 EURUSDPro Every Tick start time 2013:06:17 end time 2013:06:23 M1 Different results are displayed when I test it under conditions of the above several times. How come? 
Hi, I wrote EA for 4hrs breakout system. I almost most completed.but still i must tune the EA for exact rules. As i am new coder i don't have idea to correct my coding. My questions are: 4hr TF 1) If current candle applied rules EA place buy/sell , till next trade day no order! 2) If current candle...
i want to use macd method on MA5 lines  and made code below ,but it does not work ,may you point the erro out ? thanks #property indicator_separate_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_width1 1#property indicator_color2 Blue#property indicator_width2...
can any one have a tarzan  non repaint indicator
Hi! Please advice on how to write  a function to delete a pending order if it has not been triggered for a specified number of  periods (candles). Thanks.
Hi, I am using: https://www.mql5.com/en/code/7673 for create graph no-standard time frame on MT4. I created graph 2min, inserted my test easy code, see below. Why fce. IndicatorCounted() always return zero?!! When I insert the same indicator in graph with standard timeframe MT4 (1min, 5min,...)...
Hi, I have several MT4 managers and am trying to find a way to get all of the positions for each currency pair into a single location such as excel? i haven't had any luck so far. Can someone tell me if this is possible in excel or if there is software available that can combine positions so that it...
my jounal reads like this during backtesting 1.volume limit  exceeded 2.high price not reached from the least timeframe 3.low price not reached from the least timeframe   what could be the possible fault/ does anyone have any idea?
Помогите пожалуйста. Как правильно записать OrderSend(…) на МТ4 при торговле опционами, стандартная запись ордер не открывает. Grand Capital позволяет на платформе МТ4 торговлю бинарными опционами. Открытие ордеров вручную.
#1   I have tried hard to look for an institute that offers true Direct Market Access service for fx trading, instead of manipulating the price, the institute hopefully truly pass the fast, accurate and true price spread to the investor, and add a reasonable slim fixed markup on the spread pips.....
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...
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...