Download MetaTrader 5

MQL4 and MetaTrader 4 - page 5

To post a new topic, please log in or register
Hi! I have some COT data that I want to plot under the main price window as an indicator. The COT data are external data, i.e. independent of the prices. So one can not write it like a traditional indicator calculated from the prices. Since I have all the data needed, I don't need to do any...
  Simba Trades (65   1 2 3 4 5 6 7)
1-I would like to post a few live trades..just to follow the example of my friend cementman ..and enjoy the discussion..if any 2-Every week I will summarize the results for closed and open trades..let`s start,position sizes are for an account size of 150k to 200k usd..Do them exclusively on demo.....
Hi, where is the RSI in the MT4 app? Cannot find it... Regards
void OnTick()  {   //Code should only be executed once per day (at the end of the day)   static datetime oldtime;   if(oldtime!=iTime(NULL, PERIOD_D1, 0))   {      stronger("EURUSD");                 oldtime = iTime(NULL, PERIOD_D1, 0);   }bool stronger(string Pair)// Function returns True if it was...
Hello, could you explain why as I scroll back in the history, value of Bars increases? From the description I imagine that it would contain all Bars I can go back to. But when I load my indicator, I can see around 250 bars on my screen, Bars variable is equal to 3000. I start scrolling back the...
What do I need to delete or reset to get the current build of metatrader to save all it current display settings so that when I close and open MT4 I still see all the toolbars and navigator windows setting I had when I closed MT4?
Hi..... sorry for my poor english language... this Script https://www.mql5.com/en/code/1252.....Export all Symbol in Market Watch in CSV format... I want in the last column in CSV file ...the Script Write RSI Value... this Script https://www.mql5.com/en/code/273 Create indicator value Is it possible...
I would like to simultaneously scroll multiple charts with one command. Same pair in different time frames/charts. Is that possible? 
Hi, I am baffled. I was looking for a way to get the broker's commission of a symbol without trading it. For an open or closed position I do have OrderCommission(). (But why the hell should I go through the whole history with the chance to miss a symbol as it was not traded yet) Can someone please...
Hi  I have written a very simple logic based on ADX that is shipped with MT4. Code: double adx_previous = iADX(NULL,PERIOD_M15,6,PRICE_CLOSE,MODE_MAIN,1); //Previous Candle ADX Double Value double adx_current = iADX(NULL,PERIOD_M15,6,PRICE_CLOSE,MODE_MAIN,0); //Current Candle ADX Double Value...
Hi, I'm a newcomer to programming and MQL4, and I was wondering if some could help me with a piece of code? I've looked everywhere and the book/articles/google don't help me. I may have stumbled across the answer but because the code is so complex, and not relating to comparing arrays, I'm having...
Hi in my EA MT5 there are differents indicators and everyone can to be false or true. There are two CCI. Every CCI have setup for line buy and setup for line sell. If CCI line cross linebuy... buy If CCI line cross linesell... sell Is correct this ? :  if(cci(InpCCIPeriod2)>CCI2LineValueBuy &&...
I'd appreciate if someone could help me. Instead of using market orders with the stop loss and take profit internally coded in my EA, I want to try with pending orders with the stop loss and take profit embedded in them. The thing is that the OrderSend() function draws an arrow when the order is...
  PLEASE HELP! (5)
I hope this will be easy question for some of you as I'm only a newbie with Forex.  I don't know why this occurred.  It may be because I attempted to debug a script file.  A few weeks ago I was debugging with MetaEditor (Build 1526), ... 1 - I "Compiled" the code.  Generated...
  HELP (1)
Ciao vorrei sapere se parli italiano e se puoi consigliarmi. Ho un pc portatile acquistato 2 anni fa con win.10 - ho una mt4 swissquote con vari indicatori e vari template salvati. Quando apro l'applicazione va tutto lentissimo, il pc si rallenta. Prima che io inserissi i vari indicatori e prima che...
Hi friends, I'd like to know how can I get the total number of indicator buffers I've used in my indicator. thanking in advance,
Is it possible to hide all the trade's related lines in 1 chart only? the show trade levels options impacts all charts. thanks.
I'm reading from a text file, inputting the data into a string array, and outputting one of the lines from the string array into a message box. I believe it's not due to using a string array because I created one separately, tried it out, and the new line character was read perfectly. Therefore, I...
How do I set up a live MT4 account to run alongside my demo MT4 account on one Windows 10 computer for my IG account?
Hi, i am totally new to forex and metatrader. I started to read a material about trading today and got stuck at one point with mt5. Obiviously i created a demo account using AMPGlobalClearing-Demo-CQG server. All went good, account created. I just want to check out the trade process (buy/sell) but i...
So, we start it. Because some people follow the trading signals and read articles. But I know that some people like to produce the signals and provide with recommendations and some people want to listen it and follow sometimes. As to me personnaly so I followed the trading signals during the 3 weeks...
Hello, I have a little problem with superimposed color rectangles. Only when these objects are overlapped area becomes black, how can I solve? // 1° RectangleObjectCreate("Zon1",OBJ_RECTANGLE,0,Time[0],price1,iTime(0,TF,index1),iHigh(0,TF,index1));ObjectSet   ("Zon1",OBJPROP_COLOR,Brown); // 2°...
  Close and Reverse orders (32   1 2 3 4)
Sometimes there is a need to reverse the trade that u open. The attached script will close all open orders that already running and will open a new orders with equal lots size. The scrip will close and reverse only the orders that the symbol() is equal to the one that the script is attached to.
Hi Below is my attempt at a trailing stop. Need help making it smarter and more reliable. I would like it to break even after 5 pips profit and thereafter trail by 5 pips. Please help. //+------------------------------------------------------------------+//| Expert trail stop order...
Hello Every one , I am not good MQL4 , Please help me .I want to open this order   : double Maxlot         = 100;  // double Lot              =  AccountBalance/10,000 ;    /// CASE 1 : example my balance = 900,000 USD , then Lot = 900,000/10,000 = 90 If (  Lot < Maxlot  )  ===> Sendorder () with...
I'm using NormalizeDouble() to round a number to the 5th decimal place but the problem is that it keeps all the zeroes at the end. For example: 1.2345600000. How can I trim the number to 5 decimal places, getting rid of the zeroes?
Im getting the following errors : 2017.04.06 14:48:37.843 TestGenerator: unmatched data error (volume limit 5704 at 2017.03.31 16:00 exceeded) 2017.04.06 14:48:37.843 TestGenerator: unmatched data error (low value 1.06736 at 2017.03.31 15:00 is not reached from the least timeframe, low price 1.06782...
  installing MT4 problem (32   1 2 3 4)
I am installing the Alpari MT4, and the program is installed, but when I try to run the program (click to MT4), the screen becomes transparent, and get a message saying that "MetaTrader stopped working". I tried disabling antivirus and firewall (NOD32), installing it in and out of program files,...
MT4 works at reconnecting when connection fails, only if its utilizing *the same device* to reconnect. Sometimes fails to reconnect automatically even if its the same device. We still have to manually reconnect, which is not viable for me. I live in a place where the connection  is really unstable....
Hi, I am trying to vreate an EA. 1 of the things the EA ust do, Is to close an order when the 3 over 5 EMA conditions are met on the open of a new candle. When I try this in the strategy tester, i looks fine, but on a live account it doesn't work.  Maybe it is a slippage issue? Or is the code wrong?...
123456789101112...1224