MQL4 and MetaTrader 4 - page 676

  Generating the MagicNumber  (13   1 2)
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,...
[Deleted]
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 
[Deleted]
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
The previous episode is here . The rules are the same
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????
[Deleted]
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,...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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
[Deleted]
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 
[Deleted]
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...
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!...
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...
[Deleted]
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();
[Deleted]
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...
Hello, do you have a plugin that allows me to quickly open a position? (Metratrader 4) Choose: Long or Short. Choose how many lots.  Choose how many pips take profit and stop loss to be below and above the current entry price.  Thank you 
[Deleted]
Hello, I'm new to mql4 so I have some confusion. I want to get the total profit of all orders closed in my last trade ( i have a hedge trade). I know that you can get the profit from OrderProfit but how can you select the trade to get its info if the order is already closed? Please help...
[Deleted]
I was curious as to how I would set up a signal line on the MACD chart? I have not been able to find it.
I am trying to trade from an automatically updating CSV file. The file is updated with the newer entries being appended to the bottom of the file about every 15 minutes interval. The resulting file is a record of several rows of data by date/time and value as shown below.  // filename: EURUSDxx.CSV...