Download MetaTrader 5

MQL4 and MetaTrader 4 - page 772

To post a new topic, please log in or register
IsConnected() is not working! I find that this functaion always return ture! in case I switch off my network!!! So.. still have this bug!! seem is in carzy!
Hi! As a long time trader, I'd like to recommend an online service that I personally find helpful (even as an experience trader!) there are many excellent learning forex resources online: my personal favorite is XXXX have several learning presentations and a trading simulator- pass and receive $100...
int AnalyseOrders(int Type, //OrderType { example: OP_BUYSTOP }                  double Price)// Order price we are searching for  {int Ticket = -1;   for(int i=1; i<=OrdersTotal(); i++)                  // Order searching cycle         {         if (OrderSelect(i-1,SELECT_BY_POS)==true)      // If...
Hi, Cannot download input.dll https://c.mql4.com/forum/2009/03/inputbox.dll mentionned here https://www.mql5.com/en/forum/115707 Why, Thanks.
Is there standalone api for trading on metatrader4 server? All I need it connect, disconnect and basic trade functions... without running the whole metatrader4. I need to create a program with 100+ connections.
Hi, Given a such condition, how can I close all the BUY, or all the SELL, opened orders at once? Example: It must look for all the Buy opened orders, each one matching with a list of different magic numbers, and then, select all of it and close all of them at once. This must be valid to opened...
Does anyone know how to trade these instruments in MetaTrader4, EU, GU, AU, NU, XAG/USD, XAU/USD I tried to find it on the market watch but I all I see is the normal pairs GBP/USD, USD/CAD etc...
The following is some trailing stop loss code that compiles ok but then when i run the EA on backtesting it just doesnt act to put a trailing stop loss on. The trade just runs off into "infinite" profit actually, as when I open the trade I dont specify a TP value and at simulation end the trade is...
I have an interesting problem. I wrote an Indicator that uses the Standard Deviation as a denominator in an equation. When I use the value but not to divide something else by it, it works fine by which it implies it is a non-zero value. However, when used as the denominator, all lines (not just...
What code do I have to put in my EA to run on London Time I have some strategies that I used in NY eastern standard time, but I want to use Pivot Points based of London Time. Pivot Point lines are Calculated based of the closing characteristics of the Previous day to determine pivot point lines for...
HI, I'm trying to use this EA as a risky type of Advisor, based on a martin gale 6steps trading mode but, I need him to fli the 7th trade to the opposite direcction,I'm Having a real Hard time trying to incorporate the 7th trade so if the 6th sell didn't make it the 7th goes double on the opposite...
Hello, I'm looking to find a way to pass on a value to my EA. Similar to the MessageBox command. But instead of a "YES / NO" interaction with my EA, I'd like to pass on a value (input field). I have difficulties to find a MQL4 command which supports an action like this. Any ideas or suggestions?...
Can anyone tell me how to back test an EA that uses multiple currency charts? Example: EURUSD, EURCAD both at the 5 min. It could be any combination of pairs... and may be even up to 3 pairs.
I want to measure the difference once bar at the time of an EMA to determine if it is increasing or decreasing. My problem is I can't seem to figure out how to store the newer EMA value until it becomes the older value, so I can compare it to the later EMA value. I know it must be simple. In the...
Hi all, i am trying to fix this indicator but didn't have success yet. Can anybody help me? The problem is that it not refreshes automatically. Here's the code Thanks...
HELLO GUYS... FOR EXAMPLE... A BROKER THAT PAYS 10.3 FOR AUDUSD LONG ROLLOVER... AND ANOTHER BROKER THAT CHARGE NOTHING FOR AUDUSD SHORT... ON A 200:1 LEVERAGE.. THE SWAP VALUE IS EQUAL 3% OF THE MARGIN REQUIRED ON THE LONG POSITION. ITS ABOUT 60% MONTH. SOMEBODY HAVE SOME IDEAS HOW TO AUTOMATE...
DEAR ALL AM NEW TO FOREX TRADING AND I REQUEST YOU TO KINDLY SUGGEST ME A BROKER WHO IS OFFERING DEMO ACCOUNT FOR NICKEL AND OTHER BASE METAL CFD'S THANKS IN ADVANCE REGARDS INDIANBULLS
I really don’t understand why my expert buy and sell the same symbol in 2 or 3 seconds, there is no reason for that in my formula. But, for sure I’m doing a mistake, I only don’t know where. Can you help me out with it? Thanks #property copyright ""#property link      ""//---- EMAAngle indicator...
I tested an ea using two different settings, the results were attached. Please kindly help me to analyze the results to know the best setting in performance. Thanks in advance. Oladapo.
Hi all, could anyone let me know a soloution, when I run a stratergy test my EA is programmed to take out both a buy and sell, so all is good there, however, when the EA is on the demo account it only makes one trade, a buy or sell, could anyone help with this problem, I am not governed with the no...
hi all, i just came across an info about running mt4 platform on blackberry, does any one know how reliable this is?,and what kind of blackberry can accomodate mt4 platform. also i would like to know if one would have access to all the regular (not custom ) mt4 indicators on the blackberry version...
  WPR based ea (3)
Hi everyone, pls i need help to code an ea based on Stochasctics (5,3,3) and WPR (14) i want to plce buy order if Stochs is in upward trend and WPR is less down 20 and it should plce sell order if Stochs is in downward trend and WPR is greater down 80, buy order must be closed immediately WPR is...
Im looking for an EA that will execute a trade as soon as the candlesticks' price has been closed. Has such an EA been made available to download?
hi how i can use a mql4 api in java ? please help me thanks
I have just written my first EA and have done some back testing which looks promising and am running it on a demo account with one broker. I have heard that EA's can perform differently at different brokers so have opened another demo account with a different broker. I have placed the EA and its...
Patrik Polak
Hello, i have problem with magic number. I need use 2 diferent EA on the same pair. If i use only one EA, the magic number is set on 0 and EA work right. But for 2 EA, i must set diferent magic number. But, if i set the magic number under real price (for example: 1), EA only sell. If i set the...
Hello fellow MQL4 fans :), I am fairly new to the Meta trader and MQl 4, but allready liking a lot if I see al the possibilities! Wondering if anyone might help me out with the following.....selected the ADX indicator and trying to put a Moving Average ( MA) true the ADX indicator..... So trying to...
Does anyone know where to find a spread differential indicator. Tradestation has a custom feature that will take the difference of 2 currency pairs. If GPBUSD = 1.5669 AND EURUSD = 1.3616, the indicator will return a value of .2053. Is such an indicator available. Any help would be greatly...
Hi people i have problems to set in this EA the MAXOPENTRADE function. Because i want to open some positions at once instead only one. Someone could insert that function for me? Thanks in advance...here is the code extern double stopLoss = 50; extern double lTakeProfit = 20; extern double...
Hi All: We have DEMA, TEMA, AMA and etc on MQL4 Code Base but not the Double Weighted Moving Average which I think is very useful as well. Can someone shed some light on coding this Double Weighted Moving Average? In addition to that, I not so sure about the calculation phase but is the Linear...