Have some issues to get previous bar high price. I can not figure out how to shift it. int e; Print("Current bar for EURUSD D1: Time ", iTime(NULL,PERIOD_D1,e),", Open ", iOpen(NULL,PERIOD_D1,e),", High ", iHigh(NULL,PERIOD_D1,e),", Low ", iLow(NULL,PERIOD_D1,e),", Close ", iClose
[Deleted]
Hello, I am searching for an article in the code base of this forum that I have seen some time ago and cannot find anymore. The article describes some kind of a file interface for orders. You can write an order line in a specific format in a textfile, and an EA would periodically look into this file...
Can someone please explain to me what the purpose of using a "magic number" is? I understand that it's supposed to serve as a unique identifying number for each order but isn't that same function served by a ticket number? Why make up your own..just call by ticket number.I know Im missing the point...
[Deleted]
Hi guys, recently I build an indicator as shown in the picture. I want to add a function outputs two arrays "avgPositive" & "avgNegative", which show the average of the latest 100 positive & negative bars' value respectively. However I encounter problem at this stage. Please kindly advise me. I have...
Help me, pls! //+------------------------------------------------------------------+//| Test.mq4 |//| Nguyen Huy...
[Deleted]
Hi! I wonder if it is possible to get bar prices (open, close, high, low) that are in the past (e.g. the 10th bar in the past) and that are not of the current symbol (the EA is running in), but of any symbol I want. I would like to get last weeks prices of a bunch of custom symbols (e.g. all French
[Deleted]
Hi, I hope I do not a double post. I want to write the last weeks prices of a couple symbol into a file. So with price = MarketInfo(symbol1, MODE_BID); I can find out the current price. Thats good. But how can I find out the prices of the last e.g. 5 bars? Note that I cannot use the predfined "Bid"...
I wrote this simple gold script to set a stop and tp on gold at Alpari for an open long position. I set the values to 1,000 pips away - it still won't let me set, even though it will allow me to set the same values manually. How do I fix this? #property show_inputsextern int Stop =...
Where can I find the full list of changes on each build's edition of MT4 ?
I am new to Forex and would like to find a MQL4 EA with these features, Open a BUY trade in (XXXYYY) by choice That is able to work in timeframe M5, M15, M30 and H1 by choice All trades should have possible pips settings from 5 to -> pips Need it to lock at each change, when it is in profit (a...
[Deleted]
Can anyone make an EA for me with one of my indicators I have. If you can please message me @ Play2020vision@gmail.com
[Deleted]
Hello, I have come across a wierd bug where my data does not seem to load correctly into an array. Any help would be much appreciated. The attached code and csv faile are trimmed verision of what I am working with, but the error is still persistant in this example. What I am trying to do is load a...
[Deleted]
Hi friends, I am new to forex and want a very simple EA which should do the following: 1. Open a BUY trade in EURUSD with SL=40pips, TP=80pips, timeframe H1. 2. If the BUY trade closes in profit, open another BUY trade; if it closes in loss, open a SELL trade. 3. And when the SELL trade closes in
[Deleted]
When using the iFractals function of MQL4 I am getting some unexpected redrawing of the fractal moves when using a shift of 3 (I am drawing lines). Used in an indicator like so: int start() { int counted_bars=IndicatorCounted(); int i=Bars-counted_bars-1; while(i>=0) { double...
[Deleted]
Hi there I want to set up a MT4 alert that simply keeps ... going and going... the idea being that this is for a MA cross but I cannot be at the laptop all of the time :-) If anyone can help I'd be v grateful thanks !
[Deleted]
I've imported data via the History Center for EU M1. I can see the data, but it's not being accessed by my EAs when backtesting. Ever seen this before? What did I do wrong? Thanks.
Hi all, inside an expert advior I need to know the trend. Which is the best solution for this? Should I use two EMAs with different periods? Should I use just an EMA and check the current value against previous values? Should I use an indicator? Any recommendation? This ea is going to run in any
[Deleted]
Can someone help me find the best LEADING indicator available on MT4? Most of these indicators lag. Is there a high probablity indicator or expert advisor?
[Deleted]
How does one go about deleting an existing chart comment? Manually and programmatically?
[Deleted]
MetaLang.exe The file 'MetaLang.exe' has been determined to be 'MALWARE'. Our analysts named the threat TR/Crypt.XPACK.Gen. The term "TR/" denotes a trojan horse that is able to spy out data, to violate your privacy or carry out unwanted modifications to the system.Detection is added to our virus...
Presumably yes, but my cpu meter (i.e. task-manager) is running a lot higher than expected when I make the swtich from static binding (i.e. #include -> #import). Is this the case for everyone else too? Any recommendations on dealing with this?
what am i doing wrong here? why do i keep getting an error 130? am using fxpro and understand they use 5 decimal pip system... is there something else am not seeing? the code if for a simple RSI expert advisor... if the RSI is over 70 then a sell position is opened with a certain SL and a TP and...
[Deleted]
Hello Every one, Now a days I am undergoing trading course presented by Bill Paulos' forex profit accelerator. I wonder if some one has tried to create a program to create indicater or any robot based on his fundamentals? Thanks, Kailash Bisht
if an indicator has these lines Buf_4[i]= iMA ( NULL , 0 , 3 , 0 , MODE_LWMA , PRICE_HIGH ,i+ 1 ); Buf_5[i]= iMA ( NULL , 0 , 3 , 0 , MODE_LWMA , PRICE_LOW ,i+ 1 ); Should the value Buf_4[0] be the current value of the line ? or would i have to use Buf_4[1] to get the current value ? The
[Deleted]
Hi, If the deposit currency is other than USD, The marketinfo MODE_TICKVALUE is not giving de value in deposit currency for metals, indices and cfd. Working for forex only. Please correct this! If one can't change the MODE_TICKVALUE for inherit reasons, just create a "MODE_TICKVAL" for example
[Deleted]
The Bollinger Bands shown in the 1st indicator window, uses the Stochastic Oscillator (28,3,5) [levels from 0 - 100] How do I read this figure between 0 - 100 using the iBand() function? double BandTop1=iBands(NULL,0,26,1,0,PRICE_CLOSE,MODE_UPPER,1); BandTop1 between 0-100 The question is further...
[Deleted]
Hi, I'm new to MT4 and still trying to figure it out. In particular I'm wondering if it's possible at all for it to make a noise when a stop loss, take profit etc is hit and the trade executes, as I'm not really keen on staring at the screen until it hits one of the limits.
Hi, Is it possible to create a pending order that gets converted to a market order only after a pre-existing open order has been closed? That is, I want to create pending orders when my criteria is satisfied, but I only want them converted to market orders after a pre-existing market order has...
[Deleted]
Hi Guys, am new here and also to MT4 programming, i have the following idea but need assistance to program it, it's basically a Price Action setup, no inidicators required: - Run a program at a set time ie: click on the program manually to start it whatever time i want - speficy it to follow a...
[Deleted]
Hey guys, I'm stuck at a computer all day and I don't have MT4 here but I want to look at the .csv file for EURUSD 1Hr, could someone kindly export it and upload it here for me? Thanks a gizzillion

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.