MQL4 and MetaTrader 4 - page 24

  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
[Deleted]
Hello, im new here at MQL4 Forum. I have a big Problem and i dont know how i can fix it. I habe my own Addons for MT4. I have a website, from where i sell these Addons. After a customer buy a product he gets a license-key via email. I made, that i can see the license-details via an specially URL
Hi exist example or tutorial for create and interact with .Dll , but extremely easy ? like simple Hello world? thanks
Hello, I have written code to output a custom value using the Strategy Tester in MQL4. The following is only part of the code which failed (calculating R2), it seems to go already wrong with calculating Y (total profit). It correctly calculates the number of trades (so correctly excludes all
Hi community, my boss trades with Metatrade 4 and he asked me if i can create an smartphone app with FLutterflow (low code app builder) that consumes the data from the Metatrade API. Is that possible? how? thanks so much
My account stopped trading after 23rd Oct and I just found this issue. I had just contacted with my broker and my broker said there's all good and let me ask to MQL5. From my VPS side, everything looks good
Hello geniuses I have a button on my chart The button is to get permission from the user, which is basically stop and start. I designed the button and also used the OnChartEvent() function. So, at next step, if the user clicks anywhere on the chart, I want to give the information of that part In
Hey guys, On MetaEditor (MT4), when I do "Start debugging on real data (F5)", it will always pull up the EURUSD(H1) chart. But now it's on weekend and debugging is not working. I added break points to a few lines but couldn't observe the expressions of certain variables due to no tick data coming