MQL4 and MetaTrader 4 - page 487

  [MT4] Limit orders  (12   1 2)
Why is it that when I send a limit order in at market prices (e.g. current Ask for a Buy-limit) it only fills on the next tick or after - never instantly. 
  please help me  (2)
Good evening at all. Can anyone tell me why when I go to test this indicator in the STRATEGY TESTER, do not you draw me on the charts? Thanks to all the boys in the community
Hi at all! What's syntax for create a note for a method ??? If it's exist... FOR EXAMPLE: "int value = 1; //this variable =1" when i write code, in list of variables, when select "value", MetaEditor view: "this variable =1" There's a way for create a method description? Visibile when i call this...
After downloading history data, when we press refresh button, journal displays a message "xxx" bars downloaded. Can anyone explain what is happening behind the scene? Does it mean that history data had gaps and refresh button brings in additional data to fill in the gap? And if so where that is...
I really want to release my EA into the wild soon but I need user feedback on the UI and the properties menu. I cant test all the different combinations that people would possibly prefer so I made a free version available to the MQL4 community to just go wild with in exchange would you post on here...
[Deleted]
Hi everyone,  I need to compare elements in an array with the last element.  I am trying to compare a current swing high, with previous swing highs that occurred periods ago, and stored in an array. This is in a bid to identify swing high points that occur on the same price zone.  All the while I'm...
Hi I am trying to write an EA based on the Binary destroyer but to trade forex. My problem is that no matter what I do the EA is not placing trades. It compiles correctly and loads as an EA but it is not executing trades in strategy tester or in my demo account. I am getting no errors in the expert...
Is there any function under MQL what we can insert into Expert Advisor or Indicator which refresh the current chart screen every 60 second without logoff and login or restart Meta Trader?
Hi guys! Context: I am currently using past data to do some profound analysis (Just started out using SQL) and of course using excel. Problem: Specifically, I am looking at NZD retail sales. It is clear that some years it is at 00:45 and other years at 01:45 ... and I am looking at summer months so...
I code a simple RSI alert, i use M15 timeframe, if the RSI value of last bar < 40, it display box and alert sound. I tried to code but it not work. Anyone could help me to fix it. Thanks so much! double MIN_LEVEL = 40; double actualRSI = iRSI(NULL, PERIOD_M15 , 9 , PRICE_LOW); void OnTick()   { if...
Dear fellow trader, Let's say I have a list of value {1,4,9,6}. How to get a random value from this list? Thank you very much!
Hi guys, I'm not a developer, but we have hired a development team to create some WordPress plugins for our website. The issue is they haven't worked with MT4 before. Ideally, what we want them to do is pull the Live Feeds from our MT4, and place the data on a widget. To get them started on the...
I had few VPS for my bots and even they were very low on memory (2gb) I could run unlimited number of mt4 terminals. I rented the dedicated server with 16gb of ram and it is limited by the total amount of ram. When memory usage goes to 16gb (around 25 terminals) new terminals just don't start with...
  Read Log file  (3)
Hello Good time I'm going to access the phrases that by methods Print printed in the Mql4 / logs file is it possible by methods FileOpen, FileRead, ... access the log file in a way? Because Meta 4 does not have access to files outside the Mql4 / Files folder Can it be Locate the logs folder come in...
On a blue highlight all my trade record from April 2017 are gone and it show as Archived.  How can I get all my trade record back.  I'm not sure that it a feature from my Broker or from MT4. Thanks.
Please there is difference between  one alert per signal and Alert once per bar. Please any help on the code snippet for indicator to alert once per signal and not once per bar if(iTime(Symbol(),0,0)!=0){Alert();iTime(Symbol(),0,0)=0;} This is for alert once per bar. What of Alert once if only the...
I don't know if the expression "reset" is appropriate. The key is that I want to execute the same process as when I open the setting panel and click the OK button. Some programs, especially MTF indicators, often appear distorted at startup. However, if I do this, I can make it normal, as also you...
When I compile an .mq4  EA or indicator in the metaeditor it does not generate an .ex4 file. I have new Windows 10. I also cant download ex4 indicators or EA  files from various forex forums for some reason. It asks me to choose a program or app to download it. Any ideas?   Thanks. 
hi all,  when i optimize for my ea using strategy tester it gives a list of passes with profit and other results like drawdown. but most importantly it gives the inputs used in the pass. so when i use those inputs in the ea why does it not produce the expected profit? If anyone can help i would be...
I have a small problem with the addition of 10 charts in my indicator. In OnInit () I added this code to add 10 assets but first delete those open except the first one. Created buttons work but if I click to change assets, the 10 assets are deleted then added but then back to the second graph and...
Hi guys/&gals, Having a massive problem with my EA, instead of just opening 2 trades with the same magic number and then closing those ones at a set profit target my EA goes nuts and just continually opens the same trade over and over again until I turn off auto trading, I have tried everything and...
I have set an EA for sending positions with currencies , and that allows to import functions from the librairies . It checks the Hour and the Price Bid before sending Buy Orders with the selected currencies with the settings . Here is the EA :  #import "Conversion_Datas_To_Mql4.mqh"char...
  Add max order  (6)
Hi I'm new to programming and have been trying to code some ea but struggling with getting max order. would be glad if someone can help. Thanks // External variablesextern int MagicNumber = 23310;extern double StopLoss = 0;extern double TakeProfit = 0;extern double TrailingStopLimit = 0;extern...
Hi, I made an expert and now run into a problem. In my code I use: if (( iClose (Pair,PERIOD_M1,1) < ArrayLevel[1][i]) && iClose(Pair,PERIOD_M1,0) >= ArrayLevel[1][i]) this if-statement was true and actually it couldn't be true. I know this because of my logging: the arraylevel[1][i] => had the
[Deleted]
What code can I put in my EA that will completely Restart it.. Like reload EVERYTHING... Reload the externs, init()and start() functions .... Aswell as reload the chart... Thank you very much
Hello, I have spent a lot of time working on an EA for someone and I am worried that when I gave him the ex4 file for testing, he might decompile it and then won't pay for the work I have put on to it ! I'm not very sure that it's even possible. Wikipedia says that the new builds are impossible to...
  Help on TL!!  (2)
Hi all, I set my Trendline Channel aka Equidistant Channel on MT4 but it is bothering me that it looks awkward as shown on the picture i have attached. How do i have the Channel Rays only extending on the Right side instead of the Left too? thank you!!
I want to check if total orders are not zero, then, if buy order exists, I want to set the variable "buy_order_exists" to "1" if sell order exists, I want to set the variable "sell_order_exists" to "1" But my code doesn't update the variables when the orders are exist.  if (OrdersTotal () != 0) {...
[Deleted]
Hello, can you suggest decision how to manage large data and trade with Metatrader 4. I have an EA that records in csv file in Metaeditor/File folder quotes and some variables of symbols in Market Watch. However when recording data becomes very, very large - above 1 million of rows, and if EA just...
Hello, I need to add displacement between the price and arrow