Hi. I've been trading for years, but I spend a lot of time doing things that a monkey could do. My system is essentially to trade both ways on a market, close at a profit and open a new position when the market moves a certain distance from the previous unclosed position. Is that possible to
Hello, I am using the followin setup: 1 Master account 15 clients account In order to keep things tidy I was thinking to separate the clients under two different Windows User on the VPS. So on User #1 I have the master and 8 clients, so I installed 9 times the MT4 platform under different folders
Hello, I've written this partial close function but it's not working as it's supposed to. I need your help in correcting the bug so that it can work in my code and help in closing orders partially after certain % of pips has been achieved. void ClosePartial() { if ( OrdersTotal ())
Hello I am a beginner, i just try to say: for ( int j = 1 ; j <= 900 ; j++ ) if (Close[i] > Close[ 1 +J]) It is mean that close 0 is above all closes of the last 900 candles, but i need to say that close 0 is above close 1 or above close 2 ... to the last 900 candles! when i write: int x= 1 || 2 ||
Hi, I am new in MetaTrader Help me to find original Indicator Name
Hi, I've created an EA for MT4 that scans all the Forex pairs and all timeframes looking for engulfing patterns and pinbars. The code runs on a timer, every 10 seconds. The code works fine most of the time, but I've noticed that when I use "iTime" in the following code, it returns dates from the day
Hello friends, I want to change the size and direction of the arrows in the command below what should i do Improperly formatted code removed by moderator
I tried searching for C++ Keycodes but nothing came up for C++, just different languages. I noticed the MQL4 help manual offers some examples, but I couldn't even find the ones that match up with the following example in the help manual: #define KEY_NUMPAD_5 12 #define KEY_LEFT 37
Hello everyone, Here's my problem: 1) All my terminals were running on Terminal Build 1353. After some time, the terminal could not connect to the internet and broker, and I couldn't trade. A message appeared in the terminal: "Old Version." 2) I tried everything to update my terminals, I even
Hello, I hope somebody can help me with my problem. The problem concerns to mql4, I don't know that is a good place of this topic. I have open several charts and on each of them is working EA. If EA will open or close position I'm doing screenshot. To do this I need to bring chart to top using this
I would like to make the following two changes to the EA in the attached MQL4 file. (1) In the case where this EA already has a pending Stop order or Limit order due to an EntrySignal, If the EntrySignal is raised again when the bar is newly opened, I want to cancel a pending order with the same
Hello all Right can anybody shed any light on the reason as to why MetaEditor is telling that I have unexpected tokens where correct syntaxes have been adhered to, in addition to the `'return' - semicolon expected diagnostics-data-002.mqh 203 4` message appearing when there is literally a semicolon
Hi people.
I'd like to know where could I get a free or buy an API that could be used to copy trades from an MT4 platform directly to a website. I bet there is one already made? If not, could someone custom code it or give any other solution how this could be achieved?
Thanks in advance!
Hello, How can I update the H4 HST File via code? As you can see the file sometimes doens't get updated even for days. Even after many candles have closed in MT4 and History center reflects new candle data. Cheers, Eashan
[Deleted]
Hello, I had yet ask this question, but the answer didn't work. I'm making Money Managment for my EA and I need to know/calculate total profits for the current day only and total profits for all previous days (from the begining of the month) I need also know/calculate total balance day per day for
I have the below trailing stop loss coded, but it seems to be affecting all the open orders the same way, making all of them converge to the parameters of only one (the most recent) and it always prevents older orders from reaching take profit . How can I best change this code so that Position
[Deleted]
Hello, CopyFileA or CopyFileW not working any advice? //+------------------------------------------------------------------+//| testCopyFileW.mq4 |//| Copyright 2013, MetaQuotes Software Corp....
hello and good day to all! I have a problem concerning MT4 Strategy tester. My EA works fine when Optimizing via Strategy tester (gives really good results in terms of profits and low drawdowns in a 2 year period) . The problem is when I try to test a set of inputs separately it doesn't work at all
Hi Friends, I'm using the Broker Ava Trades platform MT4 -LIVE, migrated to MQL5 VPS for months now. The past 5 Days, there is nothing more to be seen. The AVA Trading platform plus VPS all vanished. Nothing more to be seen. I've tried to reinstall the Terminal, but there is no connection to Broker
Hello I have a snippet of code which should send the Standard Deviation of a currency pair to Print() & SendMail(). Having correctly formatted the figure, having correctly declared the variables, and having included the correct source files at the top of the EA, I fail to see why I get the following
... Improperly formatted code removed by moderator. ... My indicator is not deleted, but weirdly got error but it shows 0
could you please some one help me to create a simple indicator code to stop the ea on specific time Thanks in advance
Hi, Does anyone know how to spot in MT4 logs if a trade was manually placed or placed by an Expert Adviser ? Assuming there are no comments against any of the trades? Regards Paul
Hey Guys, My MT4 history center the data record seems to a be a little weird with some symbols. I loaded the Data for GBPCAD (5 minutes), the data is shown as 5 minute intervals however the base time is 00:02. instead of 00:00. For example what i would expect is an interval like 17:00, 17:05, 17:10
Hello everyone, I am looking for some small tips and helpers to optimize my terminals and improve performance. I have noticed that the terminals on my VPS start differently. In some of them, the trading tab is already selected, but unfortunately not in all of them. In most cases, the article tab
I have a MQL4 program that sets an extern string. When I save the template it does not register the modified value. Is this possible
void DrawOnNewOrderExecution() { double arrowPrice = 0 ; if (OrdersInThisTrade == OrdersTotal ()) { if ( OrdersTotal () > 0 ) //An Open position has been executed { if ( OrderSelect (OrdersInThisTrade- 1 , SELECT_BY_POS, MODE_TRADES)) {
Hello! I have one question, I have this EA, and OnTick() running time is 375 msec when all functions inside are used . Is it good is it slow? What do you think? Thanks
Hi, I'm trying to use these functions. For example this one: https://docs.mql4.com/dateandtime/day // This will take broker time and turn it into format DD.MM.YYY string GetTime() { int nday = Day(); int nmonth = Month(); int nyear = Year(); string sdate = IntegerToString (nday) + "." +
Please someone should help me, I want to know how to disable any kind of order on mt4 or 5, I want all both manual and auto trade be disabled if an account is down by a certain loss %. That means that the trader can not trade on the account again after the set loss % is reached. I need suggestion

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.