Download MetaTrader 5

MQL4 and MetaTrader 4 - page 187

To post a new topic, please log in or register
If I have the name of an object, how can I program opening the object properties window, like for HL: https://scr.hu/MweRn2
Hi Guys! I am on MT4 and have about charts for 20 currency pairs. How do i set every chart's candlesticks to have similar length in terms of pip value? What i meant is that on some charts per grid is about 50 pips while on others per grid is about 100 pips. How do i set them to be the same on all...
Hello, i need to decide if to close or not an operation of buy/sell after 10 more sticks appears after the buy/sell operation.   I want to take an average of that 10 new sticks so then i decide if i should close the operation or not. I know how to do with the previous bars before the buy/sell...
Hello people i need your help , I m using a linux ios and i d like to run mt4 in my virtual machine windows 7 in virtualbox but when i install mt4 and trying to run it the terminal in the process crash i don t know the problem I ve change a lot of ios but the problem is the same the terminal crash...
Hello everyone,  for a few months, I was trying to do some backtests and I realized something (I also search the forum but other topics are different than my problem): Yesterday I did some backtest, close my laptop etc and today I tried to run one of profitable results but with same parameter that...
I got in the '.log' file with 'Print()' and on screen from 'Comment()', number with double like this: 6.807918429796922e+016. I got the value without the decimals with 'DoubleToStr(,1)' as: 680791842979692216.0.  My problem, and because it's kind of unknown to me how that number is translated into...
  trade copier (3)
Hi, would it be difficult to create a trade copier software? I've seen there are some programs available on the internet but I'd like to create one myself and I couldn't find any resource on that, like dedicated books, articles etc. How can I get started? I mean what kind of knowledge do the...
Hi cant seem to make my indicator work if i have an inside bar , i want the indicator to display on graph the number of times price hits the high and low of the candle before it reaches its target of 1:1 R:R  atteched is i want it to work and the indicator i tried to write, its a problem with...
Hi Folks! Facing an issue when trying to run the code attached via backtest. Getting a array out of bounds error and a failure of the backtest saying that a critical error had ocurred in the pass. Debugging does not show this error for some reason. NoTradeOnDates is a variable containing a comma...
Hi all, and thank you very much for keeping this awesome website. I am learning about exchange data between some platforms and now i am with excel. I am trying to download data of metatrader in real time (this step is succesfull) I am trying to plot data of excel in mt4 (Not succesfull) Maybe, this...
Hi all, i want to ask one question. I still cant solve my problem and i saw much code but nothing like what i try, or i did not see correct the codes. The problem is that i want to do calculations of other timeframe when bar of current timeframe close. For example, text with close bar of first H1...
Hi guys There are any way to Open orders in MQL4 in asynchronous mode like MQL5 function OrderSendAsync
Good morning all. Totally though i'd gotten the hang of it then started receiving the following issue... 1. Just for general awareness: I've elected for the current bar to be the value of IndicatorCounted () - and consistently refer to this as "i" - therefore, the oldest bar on the chart is always...
Hello all, I've been searching throughout the internet on a way to call an indicator's value that has registered after an elapsed time and my search has been confusing and fruitless. The reason is because when calling an indicator in your EA, it gives you index values but in actual usage, this...
Hi everybody I would appreciate if you could help me know if it is possible to install meta trader offline , I don't have direct connection to internet on my computer at work . I was thinking it might be possible to copy source file and specially use editing environment . Ciao
Hi all I am desesperatly  looking for historical data of binary option pairs for the broker GDMFX (not the forex pairs, the binary option one, with the bo extention in the name). I need the one minute candles historic data, for as many binary pairs as possible (EURUSDbo, GBPUSDbo,...), for as far as...
please give me a link for standalone (offline) installer for MetaTrader 4 please DO NOT ask "why do you need this", and many other questions, and answer exactly what I asked (i read similar thread in mt5 forum with no answer but many reasonings about why would you need this) if I asked, then I need...
Hi, Is it possible to move the text label to the left side of screen.             if (Monthly==true)          {           TimeToStr(CurTime());           ObjectCreate("PivotLine", OBJ_HLINE,0, CurTime(),MN1_priceH);           ObjectSet("PivotLine", OBJPROP_COLOR, Magenta);...
I wrote an indicator that shows Open of current candle is equal to Close of previous candle. but I don't know how to change the color of High/Low shadow for bullish and Bearish candles. Is it possible to change the color of each candle in for loop? is it possible to change the color of High/Low...
  Pin Bar (5)
Hi guys, I have a problem with the code. I want to find the Pinbar (1) as in the picture excluding the Pinbar (2). I would say that the length of the shadow must be> = 3 times the length of the Candlestick Body. I wrote this code but it does not work.    ....... myPoint *= 10;...
how does one send data from MT4 to Email, example Ask, Bid data...
Hi, With the help of Mr. GumRai Code I try to modify the code to get VLine when iMA Crossed. First I would like to know about professional coder opinion. Is this the right way for writing code? Second I have question about the VLine.  How to stop the line to not drawing in subwindow? int...
Dear everyone! I hope you are fine. I am writing an indicator that uses another one as resource, called "foobar.ex4". The calling indicator is named "FooBarScanner.ex4". #resource "\\Indicators\\FooBar.ex4" int OnCalculate(const int rates_total,                const int prev_calculated...
In a static StrategyManager class I want to have a static array of Strategy Singleton classes who's functions i call depending on the current market's behavior. The static functions like OnInit() in the StrategyManager class are being called in the Expert's mq4 file. When I try to compile this, the...
I know this is a common thread but I'm trying to modify my market order to breakeven (adding a stop loss to be equal to the order open price) when I make 100pips profit. Everything is NormaliseDouble'd & there's even a mechanism that continues onto the next order select in the pool when a stop loss...
Since build 900 allows us to make parametrized classes I was trying to find a way of creating a Singleton base class. There is nearly no information about Template classes so i tried to mimic c++ kind of template classes. template <typename T>class Singleton{private...
New article Calculator of signals has been published: The calculator of signals operates directly from the MetaTrader 5 terminal, which is a serious advantage, since the terminal provides a preliminary selection and sorts out signals. This way, users can see in the terminal only the signals that...
I can set the levels -150 +150 default within the code? //+------------------------------------------------------------------+//|                                                          CCI.mq4 |//|                   Copyright 2005-2014, MetaQuotes Software Corp....
How to convert a single char string to keycode? For example for the string "q" I want to get the value 81 (as the keycode described here).
I've seen a few threads about this and tried one of them, but it doesn't seem to be working.  The specific one I've referred to is:  https://www.mql5.com/en/forum/133366. The code that I'm using is: static bool IsNewBar;static datetime LastBarOpenAt;int start(){ if(LastBarOpenAt == Time[0]) // This...