Download MetaTrader 5

MQL4 and MetaTrader 4 - page 221

To post a new topic, please log in or register
I'm trying to follow this article about forecasting. But when I ran my indicator in a chart it was supposed to plot a trend line and n periods of prediction, but nothing shows up.  The code is originally made for MQL5, but when I compile it in MQL4, no error messages are shown, so I thought...
This is the one that i created, which does not work properly.  The thing is, it has to open 2 positions sell and buy at the same time, after every hour (no matter what) (every new H1 bar). In case if you need it anyway : TP is 100 SL is 50. Any replay and advice will be accepted and appreciated! You...
Does anyone have any suggestions on how i obtain a mq id so i can post a job for a ea. I dont use a mobile device but only mt4 desktop, can anybody help?
Is that possible? Im talking about the same object. Greetings.
The documentation for print (https://docs.mql4.com/common/print) says: "It enters a message in the Expert Advisor log." Where can I find this log?
Hello, I want to create OrderCollection class, which represents list of Order instances and which I can iterate. I have this code: class OrderCollection {     public:         Order orders[];         int pointer;         int size;                 void OrderCollection()         {...
Guys, how can I avoid open orders with ffcal newsfilter on "All Day" high news like below? Is this happen when <forecast/><previous/> have empty values (see below) f. ex.if(MinToNews<=MinsBeforeNews &&  ImpactToNews>=MinimumImpact && forecast==NULL && previous==NULL)<event><title>Eurogroup...
Hi, I am new in the forum. I have problem to bring Pivot Point indicator to MT4. When saving the Pivot point on my computer, the file type for source is not given me the correct format. I am trading using ETX CAPITAL MT4. I need your help. Placide
any help is appreciated when I click download and it opens in metaeditor, a box comes up "application not found". I took a screenshot of how it looks in metaeditor.....a few red coded figures with a black number 4 in the middle. (I've already tried to copy paste into file) http://gyazo...
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...
1...214215216217218219220221222223224225226227228...1245