Download MetaTrader 5

MQL4 and MetaTrader 4 - page 262

To post a new topic, please log in or register
Hi guys, I just downloaded the attached News Trading EA , but it would not trade , probably due to some errors and warnings that i get when it was compiled  . Any help will be appreciated.  Thanks. 
Hello I acquired a free-to-download indicator for MT4 with no src code and no instructions on how to work with it in mql4 and I want to work with its output values in my EA.  Although I can see the extern value types from the input tab when I drag it onto a chart, I do not know what the indicator...
To the moderators, Can you reduce the number of fixed topics please. The web-page 1 of the forum shows 30 topics and 25 of them are fixed topics?? The oldest started 2007.
I have written an EA that I run on many different currency pairs. At the moment I must change the MagicNumber for every different instrument so that it will open new trades when there are already open trades on other pairs. I have started to write a bit of code to do this but it does not work,...
I'm looking for a kind programmer who could help me creating a round number bars MT4 indicator. An exact example can be seen here for NT: Trading Psychological Numbers - Free NinjaTrader Bar Type One bar represents a certain amount of pip movement (eg 100 pips) from round number to round number,...
Hello,   I'll explain better my question with an example.   When I open a trade, it asks for the exact level of SL or TP, for example "Set TP at 1.0542", which I find more tedious that setting the tp just "50 pips ahead"   Is this possible on MT? Thanks 
Supposed I were to make a program which would open countless small trades, not at the same time, through the day, sometimes over a thousand, would a broker be able to keep up? I'm asking because in demo trading it looks fun and all but I reckon some of you do have the experience with simmilar...
  metatrader not uninstalling (25   1 2 3)
When I use the uninstall feature with metatrader, then reboot, then reinstall the following happens. After I install and start metatrader my old profiles and some custom indicators are still in my files, even the last settings from my previous backtest, this leads me to beleive that I did not get a...
Does anyone know how to create a new folder in the Navigator Window? I have tried copy/paste on explorer several times but no luck. Thanks in advance
I am using iPhone 6 plus, and found out that I can not open a trade ,whenever I click the add button ,close button, nothing happens.it seems that the trading panel has showed somewhere else but I couldn't see it~~ any one help????
Hello fellow Traders. In a recent programming attempt I wanted to try out manual Take Profits and Stop Losses. I'd like you to tell me if I'm grasping this concept right or is there a change that is due. Note: In Take Profit I include the Spread which I have to in order to compensate for the Broker,...
Hi everyone, I have been giving myself a headache over this for several days and I really need some guidance. The code in question is a custom indicator that draws 4 lines on a chart. Two for high/low price of the last x number of bars, and two for stops placed a multiple of the ATR below the...
Hello fellow Traders, would this be the correct way to calculate spread? double BidPN; //Bid Price Newdouble AskPN; //Ask Price Newdouble SpreadC;void OnTick()   {      BidPN = Bid;      AskPN = Ask;      SpreadC = MathAbs(AskPN - BidPN);   }
Hi all, Having a bit of trouble with the OOP implementation - I will say this first, I am a noob when it comes to OOP. I want to define the following array as a global constant: private:    static const double FibonacciLevels[6] = {0.0,23.6,38.2,50.0,61.8,100.0}; Clearly, these values are immutable...
Hello, I would like to create a PROFILE where I will always find the chart windows (the tags) in the same sequence. Example, from left to right: the tags would be AUDUSD, EURUSD, USDJPY, GBPUSD, and I want to keep this sequence as it is. The same idea if one would like to organize them...
  StrToTime (5)
Dear Metaquote Users, My codes are below: string ExpiredDate1 = GetExpireDateFromServer(tanggal, Your_Id);    PrintFormat("FROM SERVER : %s", ExpiredDate1); ....PrintFormat("AFTER SPLIT : %s", ExpiredDate); StringReplace(ExpiredDate,"-",".");     PrintFormat("AFTER REPLACE : %s", ExpiredDate);...
This is a new problem I havn't had before. I havn't been active trading on the MT4 platform in sometime. Just been testing and doing some coding on the Demo. Now I can no longer go to the code base and download or even look at EAs or Indicators. I just Registered tonight on Metaquotes website. That...
As I think understand it, when you are in a trade in a pair, neither of which are your deposit currency you have effectively gone short your deposit currency. You are exposed to 'cross currency risk' that your deposit currency will change relative to one or both of the currencies that your trade is...
Hello, I have developed a EA System that makes good profit in sideway market. Attach is a backtest with my EA from last week trading EURUSD 5 min Chart, it has make more then 30.000 Pips with 0.1 Lot. If the market move to a trend the risk become bigger to loose, but I think it is also a good...
Hello,  I need to build an EA which will be running on one account and will obtain information from the second account like Equity level, Balance, Open trades, etc...  Any idea?  Thanks David 
APeng
Hi guys I got a simple question: How to calculate your average return? Given is ratio of successful trades (ratio):        60% risk per trade (risk):                             5% risk / reward ratio (R):                          2 My try:            ratio x risk  x R –(1-ratio) x risk...
I'm trying to classify trends with Zigzag indicator. But my code just classifies the market as a trend (UP/DOWN). But I did some research about zigzag here in the forum and found code similar with the below one. But I applied this code to EURUSD-5min from Jan,1,2015 - Jan,31,2015 - and it just...
Hi, I was wondering if anyone can advise me on what is going on.  I use MT4 to send PUSH notifications to my android phone. When the phone receives a notification it displays in the notification area, but when I then click on it to see the whole message inside the MT4 app, there's no message there!...
Hi All, has anybody a working experience of running Metatrader 4 on an embedded computer?    Mac 
ObjectDescription takes one input-the name of an object. What if I have multiple objects, each on different charts, with the same name? How do I distinguish them?
I’m usingMT4 build 675. I made an EA which opens  a market BUY and market SELL at the same time.Both trades have the same lot size. The BUYenters at 1.18436 and exits 1.18236 (20 pips loss). The SELL enters at 1.18431and exits at 1.18231 (20 pips profit). Spead is 0.5 pips. Now thestrategy tester...
I am looking for a functionality of Detaching/ Undocking the chart from metatrader terminal, so that the detached chart can be dragged to another monitor ( this is a multi monitor workstati I searched but couldn't find any script of fix for the issue. Can anybody guide on how to undock/ detach...
I've written my own EA over past few months and am now wanting to know if there was a quick way to determine whether or not their will be a conflict when applying this to multiple pairs?   I know this may sound like a daft question as demoing it first will highlight discrepancies and conflicting...
In order to calculate the total profit/loss of an open position, which one of the following equations is correct? double pl = OrderProfit()+OrderCommission()+OrderSwap(); or double pl = OrderProfit()-OrderCommission()+OrderSwap();
I have a problem in the terminology used my MQL4 book and documentation. What does "to close an opened order" mean? I understand what is "to close an open position", but not an order. As far as I know, one can have a pending order to either open, close or modify a position. When the order is...