MQL4 and MetaTrader 4 - page 23

90.58 ms speed so far how can i lower the latency and improve it
Hello I need your assistance in debugging the following code to implement the logic below, I've tried many times but I am stuck. Your help will be appreciated: logic is open with buy and sell pair as per input.. when tp hit then reverse with opposite trade when loss then hedge at desired pips
  Platform issue  (2)
Hi, I coded an EA that work perfectly fine on my Platform but not on my friend Platform. The Platform have the same version and built. The source code doesn't include or import anything. Just pure MQL4 code. But can figure out why the isn't working properly on my friend Platform. Do you have an
I want to read HST file with real time updates I wonder when does MT4 refresh these files? Can I keep them up to date in real time
Hi, fellow dev At the moment I use a CSV file in the common folder to help 2 MT4 instance to communicate together. But it's too slow, generally above 3 sec I need something faster in the milliseconds order Does someone have an idea? Thanks
The following post provided very useful mechanism for EA communication through Win Socket . https://www.mql5.com/en/blogs/post/706665 In the post, it uses WM_KEYDOWN as a message word to let OnChartEvent() receives a message with there is a packet arriving throught Win Socket. if (
Hi there, I encountered below error, my EA can't load or be used. 2023.11.11 22:41:53.426 cannot load 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\B8436F3574D3ACEB6E3E4DD147B9416D\MQL4\Experts\Market\EA Thomas PRO.ex4' I have been using this for 3 weeks or more. Other EA from same
When I try to add my KOT4X account in MT4, I go to add account and the only option there is MetaQuotes Software Corp. I cannot search anything else. If I just hit next, the only option to log in to is the Demo. I've gotten the login to work on the mobile app and the webbased platform, but I'd like
I have been trying to write a function that calculates the maximum lot size allowed on my account based on my account balance. I am entering a market order so there aren't any stop losses, I put those on after the trade has been entered. I am only trading one position at a time so I can use the full
Hi, I had a developer make me an MT4 EA, and long story short it works fine when tested, but when I check the optimization box and optimize any sort of parameter it always spits out 0. Can someone tell me what could be the issue
Im looking for the swing high low support and resistance indicator from Patternmart on trading view for MT4. I assume it would already be developed for Mt4. Where would I be able to find it
Hello everyone, Do you have any ideas about the using custom indicators on the MT4 Web Terminal? I wonder how I can use my own indicator on it
  Ex4 file to vps  (2)
Hi i have been using a free ea on my pc lately and i have now purchased a vps. So i emailed myself the ex4 file and pasted it in the expert folder but now i cant drag it to my charts. It tells me it cannot load the ea but everything always worked fine on my pc. Is there a way to fix this? Note that
This is a phenomenon that occurs occasionally. The profit in the results window is -12.02, but when printed from the source, it comes out as -8.84. [Code] for ( int i = OrdersHistoryTotal() - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_HISTORY) == false ) continue ;
How can i calculate the lot maximum size based on the limits of the free margin?
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
hi guys its my first time coding mql4 and im still practicing. I have a problem on my project, I have 10 open trades on buy. i want to get the average of my entry price on buy, is that possible
  Zone Strategy  (6)
Hello guys.. last days I am really struggling with my strategy and I don't know how to work it out.. so I want to ask you for help. This strategy is that we have zones... let's say it starts at 0.100 and ends at 0.200 and so on and so on... At the lower boundary of each zone a buy trade is opened in
[Deleted]
Hi guys, how are you? I have an Excel spreadsheet that I use to register account numbers for MetaTrader 4 clients. I need to automate the process of sending these accounts to the EA code, as every time a client asks to register an account, I have to do it in Excel. In Excel, there’s a formula that
this source code is not tradeing and all i get back is send order failed [common error] please take a look and tell me what i need to fix please and thank u
Hello I want to Disable / Enable Expert (Auto Trading) button programmably as if i click on it to enable or disable Expert according to condition. I am searching MQL4 code to do that but i did not find. Any help please.
Where can I get a rank chart for mt4 that has an ATR setting. Don't want to use a standard brick size
  Pollan's indicators  (1755   1 2 3 4 5 ... 175 176)
As your see, IP (BBS-m).v8 and IP (BBS-index).v8 seem popular for last days. They are not repainting. However it is a great work done by a great coder. You can check it. А такой рисунок видели? - MQL4 форум А такой рисунок видели? - MQL4 форум Pollan wrote (a) >> He received a lot of questions about...
  Login with mt4  (1)
Has anyone registered for a demo account. Received an email confirmation. Except the login is the email address rather than numbers. If so, how did you solve this problem
I do realize I am doing something stupid, but I'm not quite sure of what and why. I want to get the average size of candles. So I take say, the last 500 candles and measure their bodies with MathAbs (Open[i] - Close[i]); I add them all up. Then I divide that sum by 500. Additionally, I calculate
Hello friends. Thank you for guiding me. I have a strategy that I want to have a Bollinger Bands on the chart and add an RSI. Then I will add a Bollinger Bands on the RSI again and set my conditions for the signal. (Both were above the Bollinger Bands, the buy signal and vice versa, the sell
Hi guys. I use WebRequest function, did add URL to Expert Advisors, and it works. But, sometime MT4 warning me: "Add the address xxxxxxx in the list of allowed URLs on tab Expert Advisors", alothough I added it. (Watch image attached) Anyone know what happened????? Thank you.
Hello everyone, I've been struggling with the error for some time now, and I can't seem to make it work. I'd appreciate if someone can help. This is my code: void Writer( string body, string filename, bool ShouldBeEmptied){ int handle; while ( true ){ if (ShouldBeEmptied){
Hello, I would like to secure one of my ea in .ex4 so that when I share it the people who would like to use it would have to identify themselves. And I would like to make it impossible to decompile it in mq4. Is this possible and what are the solutions
Hi, So I'd like to get the value of Only Shorts , Only Longs, Both on my script. This will help me a lot to take decisions on my EA. I've tried the SYMBOL_TRADE_MODE but it says it's FULL_MODE not the current mode. Does anyone would like to help me? Thanks in advance! MQL4