MQL4 and MetaTrader 4

The MetaTrader 4 platform update will be released on Friday , March 1, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
The MetaTrader 4 platform update will be released on Friday, February 23, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
This topic will discuss undocumented ways of working with the mql4 language , examples of solving certain problems. It would be desirable that this branch would be closer in content to the FAQ, than to the discussion. I suggest that all experienced programmers share their solutions and programming
Below are step by step instructions, of how to subscribe to a MΤ4 signal: 1. Register a MQL5 account: https://www.mql5.com/en/auth_register 2. Open your MT4 platform and go to Menu >> Tools >> Optios and click on the Community tab. There you put your Login and Password of your MQL5 account
Hello, I am making a code, If Buy Order reach above 30 Point from Entry price, close Sell Order If Sell Order reach below 30 Point from Entry Price, Close Buy Order. int gRangeClosing_Automatic = 30 ; if ((LastOrderPrice(OP_SELL, gSellMagic) - Ask) / Point > gRangeClosing_Automatic) {
I haven't used MQL4 for a while , when i just get to use custom indicator when trying to get the method CopyBuffer , It doesnot exist among the built in functions, I guess my memory is not bad , It was there !! Is there the other way to get MLQ4 indicator buffer values
Please double USDCADOPEN = iOpen ( "USDCAD" , PERIOD_D1 , 0 ); double USDCHFOPEN = iOpen ( "USDCHF" , PERIOD_D1 , 0 ); double USDJPYOPEN = iOpen ( "USDJPY" , PERIOD_D1 , 0 ); double AUDUSDOPEN = iOpen ( "AUDUSD" , PERIOD_D1 , 0 ); double EURUSDOPEN = iOpen ( "EURUSD" , PERIOD_D1 , 0 );
Hi guys like a title exist a free indicator for show me How much leverage am I exposed to? immagine i open a trade and i want know every time I open a trade and they increase I want to know how much the leverage is now i use by hend this calculate The exposure leverage calculation can be performed
Hello, OrderDelete(OrderTicket(), clrViolet) , I am using this code, it should create an arrow mark object on chart with Violet but it not creating. Full code : void CloseOpenAndPendingTrades( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) {
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
Which will be more effective, reliable and faster? Code 1 : void CloseOpenAndPendingTrades( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) { OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol () ||
  MT4 Push Notifications  (12   1 2)
Hi guys, I have been reading around but unfortunately I can't find any solution to my issue, so I would like to ask you for help. I'm currently using MetaTrader 4 Build 1090 under a Demo Account and for some reason I can't seem to get my custom indicator to send me Push Messages to my Xperia XZ. I...
Hi Guys, sorry to bother you with so "simple" question, but I can't find [for good time already] any way to move one [or more] indicator windows, up or down below main chart window without closing it and re-opening in desire order. By closing one indicator window and re-opening it I have to...
Please how to display the price that fibo has ? //--- установим количество уровней ObjectSetInteger (chart_ID,name, OBJPROP_LEVELS ,levels); //--- установим свойства уровней в цикле for ( int i= 0 ;i<levels;i++) { //--- значение уровня ObjectSetDouble (chart_ID,name
hi i want to change red color of high to low line in Fibo tool to none-color in mql4 script. how can do it ? thank you
//--- * short trade if (trade_ok==true) { if ( ( Ask- SMA_10day < buffer* Point *K ) && ( price_above==true)) { ticket1=- 1 ; ticket2=- 1 ; while (MarketInfo( Symbol (),MODE_ASK)-MarketInfo( Symbol (),MODE_BID)< 4 * Point *K) // spread < 4 { Alert (MarketInfo(
Good morning, I find it absolutely absurd that if I don't log into my vps for a while I can find myself with mt4 BLOCKED because it doesn't update. Incredible, that is, do I have to risk my experts not closing my operations just for an update? Are we joking? but who is the genius who decided that
//+------------------------------------------------------------------+ //| | //| Comprehensive MT4 Bot Code | //| |
Hello everyone, I have coded an EA and when I test, it keeps giving me a weired error: It seems like it is MT4 bug and I cannot do anything about it, I know how to reproduce it and I hope Moderators can help me. I can share the code, it is a very big EA, but I can send the code for any Moderator or
  MT4 download  (17   1 2)
I want an MT4 download link, I do not want to use MT5... Most people want MT4 so why push users towards MT5? Why should I go through a broker? Stop annoying a lot of people and provide an option!!!
Does MT4 has a function can convert upper case to lower case and vice versa? Itcould be very handy. cheers.
  MT4 Purchases Not Showing Up  (11   1 2)
Hi, I am having trouble with the 'market' tab on MT4 after I login to community, I am unable to see all my purchases on my account to download my products I have purchased, and this started occurring after I reinstalled metatrader, but also checked a different installation I have on MT4 on a
In my MQL4 code I am able to send plain text from mt4 to telegram with ease. However, I am having difficulties adding telegram emojis to my code so that it outputs within telegram. I have searched high and low and all of which I found were examples using php and or python. Tried using plain unicode
Hello, The last weeks I have been struggling to get my strategy tester to run simulations in the way I want it to happen. Basically, I want to test an EA from the TFs M30 up to H4 but when strategy tester is loading the data it only takes the M1 and sometimes the M5 to do the simulations. Did anyone
Hi! I've downloaded tick data from Dukascopy and whenever I try to backtest any of my EA's in MT4 I get the below error "tester cannot calculate prices". If i remove all the data from Dukascopy and simply get the historical data from my broker (IG) I can backtest the EA just fine, although just the
Hey guys, I have an issue with my EA/server (I don't know where the issue is from...). Last couple of months, I've used an EA through MQL5 vps service. The EA + 1 custom indicator worked fine (I could backtest normally) and it did work fine for a few months but then it stopped taking trades (without
0 19:00:00.105 '229232': instant order buy 0.02 NAS100 at 18386.9 sl: 18351.9 tp: 0.0 0 19:00:00.105 '229232': instant order buy 0.04 NAS100 at 18386.9 sl: 18303.5 tp: 0.0 0 19:00:00.105 '229232': instant order buy 0.01 NAS100 at 18386.9 sl: 18303.5 tp: 0.0 0 19:00:00.105 '229232': instant order
I got this error message: "12 leaked strings left" when I remove my indicator. What do I do wrong? Thanks for your help