MQL4 and MetaTrader 4 - page 78

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!
  Update HST File  (2)
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
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 .
is it possible to calculate the total risk in mql4. simply calculating the loss in $ when ALL stoplosses would be hit