Download MetaTrader 5

MQL4 and MetaTrader 4 - page 106

To post a new topic, please log in or register
Ok, So I have this issue, my one click trading doesn't work. I run Windows 10 Ver. 4.00 build 1010. When you open chart and you right click on it you should have one click option there except it's not there at all and never was. So I go to Tools/Strategies asnd allow one click trading, restart my...
New article Working with currency baskets in the Forex market has been published: The article describes how currency pairs can be divided into groups (baskets), as well as how to obtain data about their status (for example, overbought and oversold) using certain indicators and how to apply this data...
Need help figuring out why one-click trading isn't working on MT4. I go to tools>options>trade> and check one-click trading, it gives me a box, I accept, and then I right-click on a chart, click one-click trading, and it doesn't show up. I don't understand what the problem is. Trades don't appear on...
Hello,  I'm writing an expert advisor and I want it to be FIFO compliant. Note that I can have various instances of the EA running on different pairs at the same time. Also, there could be various instances running on the same pair (on different charts), each with a different magic number. When I...
The tester will make one final entry at the end of a backtest:   AUDUSD,M1: 12233929 tick events (238505 bars, 9663402 bar states) processed in 4:39:18.345 (total time 4:39:22.807) What does each part mean? 12233929 tick events, 238505 bars, 9663402 bar states processed in 4:39:18.345 (this is the...
hey guys, im looking for a simple Indicator which shows an Object like a square somewhere in the chart. And its color is depending on some other indicator like moving average. For Example: MA30 falling => red square MA30 raising => green square I hope someone knows the solution :) greetings !
Can I find affordable software, or else that would perform suchtasks?   1.      To startwith: Placing a Pending Order for 2 or more contracts  at a specific price with a stop, as it’s donebasically on MT4. 2.     When theprice is reaching my choice of a Targeted Profit: -take profit on 1 or more...
Hello, fellow coders! I have been working on my Multi - pair trend indicator and so far the code looks like this: //+------------------------------------------------------------------+#property copyright "GW"#property link      ""#property indicator_chart_windowint tframe[]={43200,10080,1440,240,60...
Hi there, I recently downloaded the trading platform MT4 with a demo account. I think it's  a great platform, but I've troubles with some charts. I'm searching for the charts of Eurostoxx 50 and USOIL in MT4, but can't find them. When I click on "market watch" and then click with the right mouse...
hello all, please,  It is possible to modify this code to Buy_TP and Sell_TP be equal to the opening price of the current candle? Thanks. CODE: [SELECT ALL]  extern double Buy_TP=1.3000; //Here be open price current candle extern double Buy_SL=0; extern double Sell_TP=1.3000; //Here be open price...
Hi!  I have custom expert with some input parameters and some customizable variables, which i enter through CEdit objects. I wish to combine all this parameters and to open my custom indicator(like i'm opening it when I drag-drop indicator to chart) on CButton.Press() change The general purpose is...
Hello Here is the code: https://www.mql5.com/en/code/8181 I' m very interested by this indicator and i' d like to be able to use it on MTF, but my programming skills are not strong enough to modify it. Please help me. Thanks
Where to place properly place RefreshRates() to prevent re-quote/off quote? Should it be before or after? Are these right? Where else should I place RefreshRates()?          RefreshRates();      double ask   =MarketInfo(Symbol_1,MODE_ASK);           RefreshRates();      int ticket=OrderSend(Symbol_1...
Basically the error is like this and it spreads across many, many clients after recent update of Win 10. I am not yet sure which one, since on some clients with Win 10 it works , on others not. A client has an .ex4 file with resources inside. Suddenly it stops displaying any images or working at all...
I would like to run my ea on GMT input time. it shows error while i used following codes. please support me to fix the error? int Today=-1;extern Hour=12;extern Minute=15;datetime GMTtime = TimeGMT();int hour = TimeHour(GMTtime);int minute = TimeMinute(GMTtime);if (DayOfWeek() != Today && hour ==...
I am writing an Indicator by Trade Function OrderOpenTime() I get the Time in Seconds, I want to convert the output  into a string of "yyyy.mm.dd hh:m:ss" format. how can I do it?
Hello All,  I am trying to call the value of the Stop Loss from my previous trade and then have a condition whereby the stop loss of the next trade can not have a stop loss of the same value. I thought I would add a variable PreviousStopLoss and set it equal to the Stop Loss of that trade, like...
Hi, I am trying to create a custom indi to draw simple horizontal lines at specific prices. I will enter those prices manually. Would you guys pls help me on this. I hope this should be very simple for the person who can code. I can continue working on it. Many thanks in advance :)       
Hello All, I am creating a MQL4 script which imports a C++ DLL to access some functions. The imported C++ DLL is created by me and it invokes third party licensed C++ libraries  to perform some mathematical calculations. I am able to run the code with out any issues and I get the expected output but...
Hello guys,  I wonder, how relevant and how well are tests done by StrategyTester in MT4, whether I can rely on that tests (I test on ticks) And I'd also like ask, whether I can test on Week timeframe on MT4 somehow, thanks!
2 beh12zad 2016.09.29 20:11 DE I need an indicator or EA to set all opened Charts Panel to minimum Lot Size automatically when I open MetaTrader 4. is it possible?
Hi, I have many profiles on one of my MT4 platform, and I want to export all of them to an other MT4 platform. How I can do this please? I tried to find in the documentation and the forum, but I didn't find. Thanks in advance for your help.
  Initialization problem (20   1 2)
Hi guys, I found an issue: There is a MarketInfo(Symbol(),MODE_TICKVALUE) query in my indicator's OnInit() part. It works good, except one: if the indicator is already on the chart when I start the MT4, the tickvalue gives 0. So, I think there is something wrong with MarketInfo in OnInit(), when...
Hello,  Is there any difference between   double dev = double  iStdDevOnArray(0, 0, MODE_SMA, 0, MA_LENGTH, i);  AND    double dev = double  iStdDevOnArray(0, MA_LENGTH, MODE_SMA, 0, MA_LENGTH, i); I don't see the point in calculating the standard deviation on the whole array if I can calculate it...
How I can write a code for a candlestick pattern indicator ?
Hi,   I developed an expert. As far as I know, the expert starts running when the price change. However, if the price change again, and my expert does not get to finish, the expert do not continues and another expert run starts. This happens when the market is under strong variations. So, under...
Hi, I'm using Strategy Tester and OrderSend is returning error (148 - The amount of opened and pending orders has reached the limit set by a broker.). My code is ok, I have variable controlling maximum number of open positions and getting errors when I set it grater than 500. How to override limit...
This is just some information, rather than a question, but I thought I'd share it since I've been wondering how to do this for some time. The standard BITMAP and BITMAP_LABEL objects allow us to load bitmap images on to the chart, but do not support 32-bit images (with alpha channel). This means if...
Since latest mt4 update, when I compile my EA I am getting the 'i' - undeclared identifier error but cannot see which part of this code is causing it: void CloseOrderSell(){    if ((Ask-Bid) <= MaxSpread*PipValue*Point){    int orderstotal = OrdersTotal();    int orders = 0;    int...
Hey Guys, I can imagine that here in the forum are a lot of threads like these. But my problem this time isn't that I don't know how the iCustom Methode works rather that it doesn't work... The parameters for the  iCustom Methode are:  double  iCustom(symbol, timeframe, name,...