Download MetaTrader 5

MQL4 and MetaTrader 4 - page 918

To post a new topic, please log in or register
Can anyone tell me how to explicitly assign doubles to arrays elements? Pardon my ignorance but after 15yrs experience with C/C++ and a week reading the MT4 docs, I just don't get this language. pls see below Thanks for any help #property indicator_separate_window // Indicator is drawn in the...
Hello, Happy New Year! When I do a strategy test using Strategy Tester inthe MT4, it only goes back to Jan 9, 2010 even though I put June 2009. Whatcauses this to not go back farther in time using the strategy tester in theMT4? I am testing using EURUSD M15 and I have done the importof M1 to M15...
Hello all, I'm completely new to this language but have good programming experience, so most of my questions will be regarding the specifics of this language rather than a how-do-you-do-this (I hope I'm smart enough of figuring that out from the examples  ;-) ). So, my first question is: 1) You can...
Hello, I have this code that works fine if called from the same script. But if it is stored in a mq4 library ( mqr file library and a header). It does not copy the rates. How should I use or modified this function or declare the array in the calling script in order to get copied rates correctly....
Hello and thanks for the help in advance - if you would be so kind. The concept is very simple, but I need some help as I do not know MQL. I'm good with Excel pseudo code and can make any Excel spreadsheet look almost like Currenex on screen (I'm that good with Excel!) and I can get 'some' VbScript...
Hi,my name is Simon,I am glad to introduce the NiuTrader to you all. NiuTrader software can share your trading signal to all your mt4 accounts.Right now only has Chinese version,but sooner will has English version.Here is the demo video:
Dear Coders Do you have any idea how can i create a report file when my expert is in optimization mode??? i dont want to use the optimization report that mt4 creates, Im really hang on this :-( plz help
How do I set the indicator values NOT to be drawn in the window? I don't want/need the values to be displayed in the window. Currently I've got this: IndicatorShotName(""); but it's still drawing the values at the top left on the window. How do I set this up so it doesn't write these values in text...
I run an EA on Strategy Tester (eg: MA SampleEA) and it gets good results. When I "Save As" and rename it (eg: MA SampleEA-Test) and run it on Strategy Tester (with no code changes), the copy goes wild with uncontrolled trades. I even tried to start with building a new EA and copy/paste the...
?'m testing this expert on demo, it should open a buy pos and place a Sl when attached to a chart, it does not work int start() { OrderSend(Symbol(),OP_BUY,1.0,Ask,1,Ask-15*Point,0); return(0); } also, I have a problem with the follow this open orders in delay or it doesn't at all  int start()...
Hi I,ve been getting e-mail alerts from the Tools>Options>E-mail settings for some time now from several different computers and different SMPT login addresses successfully.(SMPT server: att.blackberry.net) Now I am getting no alerts and my Journal on several computers has the following message...
I have 16 charts opened, all with a EA running. EA are big, and print about 20 lines per minute (in total, not every EA) The problem is in the charts; I put charts tiled in the window and: no way to enlarge a chart by mouse or by menu no refresh: if I open for example expert properties in a chart,...
My goal is to always be Long or Short. For whatever reason the EA work for about 2 consecutive trades and then the EA will stop. Any reason why? thanks //+------------------------------------------------------------------+ //| xxx.mq4 | //|...
Hi all, We want to launch a new graphical environment / tool to create custom indicators. No coding or MQL knowledge is required. If you want to test it please go to: http://www.molanis.com/index.php?option=com_content&view=article&id=73 Registration is required (but it's FREE). The installation...
That pretty much says it all. But WHY? This isn't documented anywhere. Basically, I wrote a function to traw 32 (maximum) levels in my indicator, based on price range. It works fine, if the function is defined in the indicator. It has no effect, however, when defined in a library. I know the...
How to get Bid and Ask prices on historical bars of my EA. Only new quotes have Bid & Ask prices. Could someone help me on this issue...thanks.
  Gann MTF (1)
I'm trying to retool the Gann Hi-Low indicator to MTF so that I canfocus on one chart rather than 4. I've got the following two indicators: #MTF_RSI and Gann_alert_indicator #MTF_RSI uses an array to push timeframes thru RSI. I'd like to do thesame thing with the Gann indicator. My problem is that...
From my experience (with non-ECN brokers) it's relatively rare to get slipped, usually they just re-quote u. But I do remember cases where I was slipped by up to my specified slippage (I normally use 3-5 points, on 5 digit brokers). I have been going through my LIVE account logs but couldn't find a...
Hi, when you call a function that returns a value and assign it to a variable...and then use that variable in your code. Does the function get executed each time (the variable just makes the code look nicer)? Or does the function get executed only once, i.e. at the variable assignment, and then each...
I am trying to create an indicator to plot the change in gradient of the NonLagMA indicator as a Histogram. What I have done works fine when you first place it on a chart but gets messed up as soon as a new bar appears. Could someone please take a look at the code and show me where I am going wrong?...
I'm having some issues with iMA... it seems to give different results than the Moving Averages indicator for long periods. I'm also calculating the EMA using SQL - the SQL and the indicator agree on values (taking rounding into account), but the iMA function gives a different value... I would hope...
Hi, My EURUSD H1 chart is not getting updated. The terminal 'Expert Advisor' tabs shows items like: Ping failed. Not connected. Login. I am connected through a router. Quite too general info here, but anyone experience same thing? Im on ibfx mt4 mini-4. On win 7 64-bit. I will appreciate...
Here whenever I try to plot the MA the output is zero while the RSI plots easily. Any help will be appreciated as I have started using the MetaTrader only recently. #property indicator_separate_window #property indicator_minimum 1 #property indicator_maximum 100 #property indicator_buffers 1...
Hello, According the new FIFO rules of NFA the first open position must be closed first. At first glance I wrote this code: int ClosePositions(string symbol){    int orderstotal = OrdersTotal();    int orders      = 0;    int ordticket[100];        for (int i = 0; i < orderstotal; i++)...
  control live ea (11   1 2)
I've got an ea that I need to tweak parameters on WHILE it's running live trades. As there are a host of variables and arrays loaded with current data about the trades I don't want to shut it down and lose ea control over those trades. I can easily enough code an hourly or daily check of the...
I tired a couple of simple searches and it seems broke.
Hi! I'm just getting started developing EAs and was wondering how all of you put your finished EAs up for sale. Is there a good or bad way to do it? Are there any services that help out with the process? Looking for a mentor to take me under his/her wing...
If you compile and run the attached source code, you will see the "test() is called" output of Comment(). That proves that unlike C/C++ despite the fact 'condition' is set to false, test() DOES get executed. This causes a lot of confusion for the C/C++ programmers who are used to a different...
Hello I came across on of the best fibo indicators available in the market. The indicator gives out entry and target values very accurately. Need a coder to help me put this indicator into a EA Very simple EA will do You just follow the indicator signals with take profit /stop loss/trailing stop/...
Hello pro coders, When I tested my EA on the first platform for 10 years, it made 55 transactions. When I tried it on a different platform, it only made 17 transactions. Later on I found the chart of first platform does not have the bar for Sunday(American east time 17:00-24:00),...