MQL4 and MetaTrader 4 - page 618

To post a new topic, please log in or register
Hello to all in the community, I am a newbie be to forex trading. Please I need help with any indicator that can place the chart of two (or more) different timeframes of the same commodity in the same window i.e. a kind of overlaying. Like Place a EURUSD 4hr chart inside EURUSD 1day chart. Thanks.
Hello, For a while now, I have wondered if there is a way for an EA to add objects to a chart that does not have the focus? For example, let's say you have 6 different chart windows open, and then another window for your Expert Advisor... I would like the EA to cycle through each of the 6 windows...
Hello. My expert advisor uses an external dll library, which in turn loads external data. I need to draw some of it on a few charts. I guess it would be easiest to make an indicator that simply reads arrays of values from the expert, using something like an inverted iCustom. Could you tell me what's...
Hello, I am completely new to this forum. I am looking for a place to report the following bug in MQL4: Consider the following simpliflied code: //*************************************************************************** #property copyright "Copyright 2012, MetaQuotes Software Corp." #property...
Folks, I am trying to make a moving average alert such that when price hits a certain exponential moving average, I get an alert. Say for example, on a 15 min chart, I plot 10,20,30,40 EMA. So everytime the price "touches" any of the EMA, I get an alert. Can a kind soul help me to develop this...
  Magic Number? (7)
Hello, i need a little help. I use the code you see below. I use drag this EA on different instruments (currencies) and timeframes. I use the following timeframes: M15, M30, H1, H4. Everything is working perfect. The only thing is, if i have a MA cross on the M15 timeframe the EA closes ALL other...
Hi There. Iam rather new to this forum. Iam not a large trader but been spending last years just study indicators and patterns mostly . While many may trade with their systems i spent a couple of years study different indocators systems etc etc and feel abit bored becouse i just couldnt come to find...
I'll start by saying, I'm very new to programming and mql4 with limited experience, but am doing my best to read through documentation and practice implementing simple strategies to improve. Unfortunately, I've run into a snag with an EA that I have written. I declare a global variable outside of...
The indicator contained in the attached file produces no output. But if I changethe following code diff[i]=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0); to diff[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i); then I can see the output. May I...
Hi all, I use this code below to open and modify order, but if i use for multi pair, it can modify SL after open new order . I get message error : OrderModify error 1 Please help me to repair this code. Thanks a lot . int iTicket;           if (OrdersTotal() > 0)      {         OrderSelect(0,...
Hello All, is any one have indicator that can put 2 macd in the same sub-window? Is there anyone can help me to make a a indicator like this one at http://www.forexfactory.com/showthread.php?t=163700 two macd in the same subwindow, with same with the SAME zero line? and color and the option for...
One of my broker open an order itself in my trading account, they set the stop loss themselves and the order hit SL. loss was $ 3500. and now they are saying that we didnt do this . I want to know the IP address of that order . Can i kow this ?
How to set 2 digit ? Ex. ObjectSetText("Close Price","Cl = "+Close[i], 10, "Times New Roman", White); Result : Cl = 1310.64200000 want : Cl = 1310.64 Thank you
ex. Print(MarketInfo(“EURUSD”,MODE_ASK)) output is '1.3044' It seems to be rounding of the pipettes. Is there a way to fix this? My boker(Oanda) displays 5 digits after the decimal. Thanks for the help! if any.....
Hi, Does anyone know if there is a way in MQ4 (programmatically) to set trailing stops? This would be like mimicking right clicking on a currently open order and selecting the number of PIPs for the trailing stop. Thanks, Neil
Hi, I am placing buystop\sellstop order and want to modify their sp\tl. For this i want to check whether my pending are order are filled or not so that i can specify tp\sl value. How can i check pending order execution ? i am using following lines of code but it is not really working ... Thanks...
Hi all, I am using iHigh and iHighest etc with no major problem in a script. It seems time can only be referenced relative to the current time. (shifting) I realize I can program around this by testing current time to the times that I want to do whatever. Is there no way of specifying a range...
MirTD
just want to know whether the Brokers are aware of the message shown under 'Experts' and 'Journal'?
Hi, Say if I'm in a 1-min chart, is it possible for me to refer to variables in a 5-min chart, either it is: 1. in another window 2. in the same chart window Hope you can understand what I'm trying to ask. I try to search around but don't think I have phrased my question correctly for a close...
Does anyone have a simple instruction how to download and add indicators. Have downloaded DailyPivotPoints from MQL4 codebase and compiled. Can see this in indicators list however when try to add nothing happens. When pop up appears it shows the inout as having value '0' (zero). Can someone help a...
1PM to 4PM for example, I know that I need to use : High[iHighest(NULL,0,MODE_HIGH,20,4)]; but instead of from 4 and 20 what should I put? Thanks..
MirTD
in the above linear regression indicator,i want to access LRLBuffer array values viz LRLBuffer[1] and LRLBuffer[2] from an EA.can anyone tell me how and what parameters to pass to the icustom() function from inside an EA?
I am use to coding in AS3. Is there an equivalent of ".pop", ".push", ".name", or "(substr)" functionality for array items? i am trying to create two arrays. First an array of closing prices, and the second an array of int variables which is the index numbers of the in the first array. Then I want...
Dear all experts, Just wonder whether there is a simple indicator which can display the following info on main chart / or sub-chart:- 1. The spread; 2. Day low and high + distance (in pips) 3. Average day low and high (in pips) That's all, no other information is necessary. It would be very...
HI TO ALL! GOOD MORNING. Though i am new, i am learning myself to write a important code. i struct here unable to get the idea. Any one suggestion or help please. highly appreciated.
Hello, At the moment I am back testing a EA which I wrote. I haven't changed anything to the code itself but i keep getting different back test results when i change account. I am testing with Alpari Clasic 2 which gives back good results, and with Alpari Mico 2 which gives very poor results. Can...
So if one uses iOpen(Symbol(),Period(),Shift), for multiple pairs, how can you know that you are getting results for the very same bar? Say that you have an EURUSD 1H chart open and at the opening of the new bar you want to load the bar open quote for EURUSD and GBPUSD. double OpenEURUSD; double...
Hi i have created the file mq4 in metaeditor compiling is zero erros i can see the file in navigator window of t rading terminal as well as in metaeditor but i cant see it in c/programfiles/metatrader/experts i have checked. but one thing about the mq4 file is when it try to search the file in...
  Closing Times (1)
Hello, I am new to MetaTrader. Using a daily chart, What does MetaTrader consider closing time? Such as open, high, low and close. What time is close? Thank you
Wouldn't such an EA be impossible? Like trying to find perpetual motion or free energy? If there really were consistently profitable ea's that would mean those ea's could be made to rack up profits exponentially and spiral to infinity in no time. If such a thing existed all the money in the forex...