MQL4 and MetaTrader 4 - page 28

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
I'm new to mql4 language. I want to get the first price close of the current day. For example, tomorrow at 00:10 of 9 november i would like to have the price of EURUSD to store inside a variable, that i need to make other calculation
When I add a horizontal line from the drawing tools menu, I can drag that line. When I add a horizontal line from an EA, I can't drag it. How are they different? Why can I drag one but not the other
Hello, One of my MT4 account is running EA and the account is hosted by MQL5 VPS. I would like to create a signal on MQL5 but the credentials (broker server + account# + investor password) doesn't seem to work. I have this message " Authorization failed. Please check trading account data. " Do you
Hello All, I have an EA for market. It works fine in my back testing AND in my Live account. But for some reason I can NOT get it to verify in the MQL5 testing. I am using pending orders and only trading once a day. I have attached the errors I'm getting. So it seems to work on GBPUSD but has issues
Hi . I have just start to learn the MQL4 language . and I need some help. thanks'. it any one can help me to right correctly a code for MT4 . the issue is the time candle . so . I am trying to right a code . to A candle at specific time like 10:15 and ask to add an horizontal line at the highest