Download MetaTrader 5

MQL4 and MetaTrader 4 - page 441

To post a new topic, please log in or register
I want to import some data from an Excel file. In the first column are some ticker symbols, the second column of the CSV-file contains some numbers. How can I import this data and process it in an EA? Thanks for your help!
Below code comes from an indicator's code, and I think the red codes and blue codes are the same, but in the fact very different. i=Bars-MAPeriod-1;   if(counted_bars>=MAPeriod) i=Bars-counted_bars-1;   while(i>=0)    {   ind_buffer[i]=iMA(NULL,0,MAPeriod,0,MODE_SMA,PRICE_CLOSE...
Just now I test an EA on USDJPY history data. when I select 'optimization', I will get the complain in 'Journal' that "There were 1 passes done during optimization, 1 results have been discarded as insignificant"; but if I never select 'optimization', all is normal and OK. so i don;t know what has...
hello coders, i wonder if its possible in mt4 with a script/tool to make usage of the alert/alarm window... ( looks kinda like this: http://newyork.wyfxco.com/wyfx-nitro-metatrader-alert-wyfx.png ) what i would love to have is a possibility to click on like the pair it alerts me when it pops up and...
Help: In a code for chart window indicator, is possible to change the size of an arrow ?
New article Lite_EXPERT2.mqh: Expert Advisor Implementation Examples has been published: In this article, the author continues to familiarize the readers with the Lite_EXPERT2.mqh functions using real Expert Advisor implementation examples. The article deals with the idea of using floating pending...
When I go through a list of currency pairs in MT4 (broker FXDD) inserting S/R lines, the lines appear on some of the other pairs. For example, when I inserted the lines as shown below on the NZDUSD chart: They also appear in the USDCHF chart as below: Both lines have the same titles i.e. Horizontal...
1. a question about adding text on "K" line chart by text tool--"A" on MT4 when I add the text--"Words on Test" on "M15" line chart as below: then I change to "H1" line chart, and I get the below image: in the fact, I add "Word on Test" on "M15" line chart and just want these words showed on...
Hi i`m curious how the MT4 compiles the raw data into candlesticks.And by that i mean how it merges M1 data and makes H1 from it.What are the logical and programming details about candlestick merging?
I was making the candlestick price pattern indicator, but the text (supposed to be created by ObjectCreate) didn't show while back testing. (it does show when I simply apply on the chart.) I also noticed my indicator doesn't really update by just compiling. (The other indicators, I can see the...
  Delete Sunday candles (12   1 2)
Hi, I created a simple EA that works on high & lows of candle shift 1 but here in Italy my mt4 make a little candle every sunday night at 11 pm. How can I delete this candle to make my EA work monday without consider the sunday candle? The strin I founded here in documentation doesn't work. thank...
I want to copy trades from one of my account from other broker to other account.So i need a auto trade EA or VPS or any type of web sites. Can anyone suggest me.
Hello. I am researching about Trading Volume these days. I understand that the volume provided in mt4 is TICK VOLUME not ACTUAL VOLUME but both volume are near about similar. But still I want to look for daily ACTUAL VOLUME for pairs like EURUSD, GBPUSD as well as Dowjones 30/US 30. So, is anyone...
Hi, I'm trying to refer to a piece of data just once every minute. Something like if time>time[1] ... In mql4 how would I write that condition? I've tried multiple ways and can't get it to work. I've looked through the documentation all morning (and searched the internet) and cannot find this...
any pyramid ea any one know
Hallo, I need the code for calculating a sum. not: d=a+b+c Thanks.
Hi, I just want to make sure I'm not missing some important feature on MQL4 because I've never been so frustrated in finding basic programing info than with MQL4. I'll give an example and maybe you can tell me if I've overlooked something. The word Tick for example. I'm trying to find out how I can...
Hi, this is a print out which shows the time over to the right (ignore that number 6). I thought I told it to only print when the time if unequal to the previous time. (part of the code is below) But as you can see the time is being printed the same time multiple times. Over to the left you can...
Hi, All I need is a very basic and common piece of information that once again cannot be found easily in the documentation. MQL4 did a horrible job with basic info availability imo. This is just one more example. Print. A person that prints needs to be able to find what was printed. Below is what...
  Smiley (8)
Hello to the experts, I work on a Mac and have the problem that appears in No Smiley activated EA on the chart but only a small rectangle, also arrows are only shown as a rectangle. What can I do? Thanks matthias
Hello. Is it possible to combine Bar check and Tick check in one EA? I mean one variable to be read from previous closed bar and another one to be read from tick while price changes before the close of the present bar. Example Var1 = iCCI(NULL,0,3,PRICE_CLOSE,1) ; // from previous day bar, which...
Hello, Does anybody know how different installations (coming from different brokers) of the MT4 terminal can use different amounts of RAM while running? Example: I download and install 2 terminals. One from BrokerA and one from brokerB. I register accounts, limit the amount of bars on chart and...
Hi, Below is the standard moving average strategy that comes with the system. Can someone show me how to modify it slightly. I see no profit target, and I'm finding it difficult to even adjust the parameters of of the buying and selling levels. I assume the two orders at the bottom are for the...
Hi all! Does anyone know/experience that the price was hit with much distance of what you set, for example, a sell stop pending order set at 1300 but it was finally hit at around 1293. (OMG that's 700pips!!!) Adding to above, i am talking about a quick drop during news release. Is that normal or...
Dear Sir I observed the values displayed in Metratrader is wrong. For ex.g NSE_Nifty values are wrong (high, Low, CMP). Looks like these are modified depending on some calculation and CMP value. Pls let me know is there a way to edit values Regards sreedhar
Hello, Is it possible to interrupt the line of an indicator? I tried setting it to null at points, but I get vertical lines. //--------------------------------------------------------------------// hight5bars.mq4// The code should be used for educational purpose only...
I'm trying to run back test but it's only going back for two days, even though I have it set to go back almost a year. I'm using tick seting. It finished the test in about 1/2 of a second too. any ideas? thanks
Hi, after 15 minutes of searching for the account window that would show, balance, profit etc. I finally gave up. Really? 15 minutes to find the account window? Who designed this? I'm a relatively intelligent human being, and I can't believe they would design a system that requires and extensive...
Hi Dear Friends, I just want to add the trailing stop code to my ea. Can you please help me to know exactly where should I add code. If possible help me with trailing stop code. my ea is as below. Kiran
Hello, I am trying to use the follow code in an EA. Any alternative code ? SetIndexStyle(0, DRAW_NONE);SetIndexBuffer(0, ExtMapBuffer0);SetIndexStyle(1, DRAW_NONE);SetIndexBuffer(1, ExtMapBuffer1);SetIndexStyle(1, DRAW_NONE);SetIndexBuffer(2, ExtMapBuffer2);IndicatorShortName("ShortNameHere");