MQL4 and MetaTrader 4 - page 54

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
I was thinking if there was a way to code forward tests in MT4 into OnTester() function. It's a pain having to do it manually while optimizing. Does anyone have any idea if this could be done? 
I tried to have a whole tickchart, I enlarge it but it didn't fill the whole canvas like for this guy https://www.youtube.com/watch?v=j4gN_0T8PIs Did I miss something ? I'm on MT4 V4 Build 1380
Hi all .. sorry becaouse my english is bad .. i wanna ask , how can I use value extern string Input_Indicator ="20.0,0.0,0.0,0.0,50.0,0.0,0.0,0.0"; // I wanna give value "Input_Indicator" from the input coloumn , use comma saperated but I dont know how... if (iCustom(NULL, PERIOD_CURRENT
1.It seems that the problem of being unable to download and install MT4/MT5 on a German zone VPS has not been resolved. I had posted to report this 2 weeks ago. I have recorded a video for you to see the real problem. If you need to investigate, you can contact me. I will provide my VPS IP for
Hi; Wrote this code to display two buttons that represent an OFF/ON switch. They work as intended. With both buttons set to OFF mode they are the same exact size. However when I press one of the buttons to change its mode, the button clicked seems to appear larger and is no longer in exact alignment
Dear All, I'm trying to install MT4 on Debian 11.7 using Wine. I'm following the instructions given on this page, but I'm receiving an error message about the wrong Windows version ("Upgrade to Windows 10 or later". The Windows version set in Wine config is 10, but no effect, re-login to the system
Hello, Prior to build 600, I wrote a C# DLL that worked perfectly but it seems that build 600 broked my EA calls. The C# DLL define some functions like this (using RGiesecke library): [DllExport("loadAllDatabase", CallingConvention = CallingConvention.StdCall)] public static bool...
HI everyone, I am new to metatrader, and I have heard great things about it and decided to give it  a try.   I went to MT4 home page and clicked the box that said "download MT4" ,  however, it downloads MT5. Can anyone tell me why this is happening?  I have looked and looked for the answer however,...
[Deleted]
Hello, Please any one tell me, that how to edit and run EA on Mt4 with screenshot I'll very thank full to you...??? and suggest me that which EA b est for trading ..?? Than x every one .
Hello, I dragged my TimeFrames toolbar out of its line in the toolbars bar, now it is a disattached box in my screen like in the picture. I tried deleting it, moving it, closing many times the MT4platform, I got like 6 hours trying. I need help. I don't know what else to do. Thank you
i am looking for an EA or trading tool in market section in terminal of mt4 what i need is, i like to open multiple position at a time without clicking market watch in the terminal i need some panel or trading tool which allows me to open multiple position of any pair with stop loss and take profit
is it possible to calculate the total risk in mql4. simply calculating the loss in $ when ALL stoplosses would be hit
Hello, please can someone help me to find the solution for the problem, as you can see in the Print screen that the EA SL and TP targets are different than the Values printed in the logs (which is circled in Red and Green). then i noticed that there is difference in the price that the EA took in the
how to get the handle of MT4-Terminal tab? i wanna modified Terminal tab's rec size programmly by the function MoveWindow() in "user32.dll". Thank you
[Deleted]
Suppose an EA begins the init process and realizes that the "ABC_abc" indicator is not available in the ..\experts\indicators folder. How would the EA "shut itself down" and remove itself from the chart