Download MetaTrader 5

MQL4 and MetaTrader 4 - page 974

To post a new topic, please log in or register
  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),...
Hi, I am a newbie and please around help to the following problem. I have a live account with another broker (no MetaTrader). However, I would like to change to XTB broker and the MetaTrader. But I have found out that the representation of the indicators are shown with the same setting absolutely...
Hallo allerseits. Bin Anfänger und suche eine Erklärung für folgenden Sachverhalt. Ich habe parallel ein Liveaccount bei einem anderen Broker laufen. (kein MetaTrader). Da ich aber begeistert vom MetaTrader und XTB-Broker bin, möchte ich zu dieser Plattform und diesem Broker wechseln. Mir ist aber...
Hi, can anybody help me on this.I would like to see more charts on my second monitor and cannot find the functions to do this. Tks.
Hi I need an ea that automatically open a position (buy or sell) every 60 seconds and place a stoploss  can anyone help me ? thanks !
Hi All Some questions For testing purpose i write one EA that I want attach to EurUsd 4 hours period. The question are: _Suppose that now we have candle 0. The Macd Main and Macd Signal values are the same on all tick and change only after 4 hour (new candle) or the two values can change between "2...
Hi all, in my strategy, before openning a trade of a pair (say gbpjpy), I need to look up the price of eurjpy. Currently, I use marketinfo function but this function does not work under backtesting. Is there any other way to get price of a pair int the past in mt4? Thanks in advance for your time...
Hi all I want to Change the way the volume histogram is displayed on my charts. Rather than the standard method of the colours changing depending on whether the volume is either higher or lower than the previous bar. I would like to see it so the volume bar is green when the close on the price...
hello, is it possible to open a indicator window (or similar) with a EA? i would like to draw all the information in this subwindow so that the chart-window remains untouched. hope one of you can help. btw, realy nice documentation and codebase. took quite a few indis from here.
  MathMax (3)
Hi, does anyone know how the MathMax function in MT4 is calculated/works? How can you get a maximum value for two static/fixed numbers without a formula? And how would you get a MathMax for three numbers (the MathMax in MT4 allows only two)? Thanks in advance. :)
On the UnitializeReason() documentation page: int UninitializeReason( ) Returns the code of the uninitialization reason for the experts, custom indicators, and scripts. The returned values can be ones of Uninitialize reason codes. Sample: // this is example...
zainteresowanych zapraszam na: http://www.allegro.pl/item899894055_mql_programowanie_strategii_inwestycyjnych_mt4.html W przypadku pytań napisz na mail: polska.waluty@gmail.com
Hi all Does anyone know of a way of finding out how many pixels there are between the maximum and minimum prices on the chart window? All I can find is WindowPriceMax() & WindowPriceMin(), which return price units. CheersJellybean
I will appreciate your comments.
I am a new programmer,I have been able to write some code but instead of the EA to either buy or sell automatically, I only got alert of either buy or alert of sell whenever my trading conditions are met. Also I tried to optimise and backtest it but with nothing. I would be glad if anybody can help...
COULD SOMEONE HELP ME FOR PUT BUY AND SELL ORDER TO THIS CODE???? I DID NOT MANAGE IT....
Does someone know how to set-up a windows Scheduled Task to run a script or expert, is there a way to do this, I've gotten the terminal to open through the scheduled task feature but have no idea how to get a script to run. Thanks, Seb