MQL4 and MetaTrader 4 - page 686

i need to count the total open orders by all charts ... can I use simply? bool countok = false;if (OrdersTotal() <= 3 ){ countok = true;}
Ok, I'm not sure if this is a dumb question or if it has been asked often, but here goes. In the Metatrader terminal program, you are given DIRE warnings when you download history data that it might not match that given by the broker. if you have a look in the folders  there is a history/downloads...
I purchased an expensive signal and indicator package from a US company.   Just by chance i opened two MT4 platforms up to check some settings i was horrified to discover that the platforms had completely two different readings, one of them had given a buying signal too.   I then went on to open 4...
Currently, I am exporting all the historical data stored in MT4 into a script by reading off the data stored in the iOpen, iHigh, iLow, iClose, and iVolume arrays.  The problem I have is that it may be the case that the current period's data (which is already available) is not written for some...
Hey traders, Is there a way to get the Orders original Pending Price?
Dear all i am trying to let Excel get information from MT4 . by this code in the script, i have the live Bid price : ExcelSetValueCell(2,3,MarketInfo("EURUSD",MODE_BID)); But now i am trying to get the LIVE High & Low prices into Excel but it didn't work. any help please? This is what i used but...
I know that mt4 is commercial server. But I think it is quite not right, because lot of people are looking for for api, trying to implement communication with languages for statistical purpose and research. I think should be released some limited or  lightweight version for testing purposes.
Hi, I am new to MQ4 coding. Can somebody please guide me for writing a code for following:   I need a Custom moving average indicator which would plot moving average line based on chart timeframe. e.g.: If M15 chart is open, it should plot avg line using Linear wt avg method on Open price w/o...
Suppose I want to run a scan through all markets available with my broker to look for favourable trades. Say I want to look for any stocks that have reached a yearly minimum. Can I do that with MQL4? I note that the technical indicator functions all have a symbol parameter, so clearly they don't...
The charts seem to open up many days back. Which means I need to swipe forever just to get to the current trading window. Why is the default not the current candle as to me that would make more sense? Is there a short cut in Metatrader 4 android app so that a chart opens to the current trading? Or
[Deleted]
  MT4 usage  (2)
I have a question regarding a possible function in MT4. Is it possible if when one order is closed, the other should automatically open. Its more like the 'opposite' of OCO order. Thanks!
Dear all,  can someone help me how to code or what is the code for displaying max allowed total order of broker ?   regards 
The history data has been exported successfully from TickStory to MT4. However, after the testing when you open the chart, the chart only can display those data available from my broker for a short period. For old data, the chart can't display then how to analyze the testing
Most, if not all, MT4 brokers close down their servers earlyon Fridays and start up late on Sundays. His means 4 one-hour bars are missing from the data.   What I want to do is have a script that I can apply at theend of Friday that will add 4 dummy one-hour bars to the chart.   My knowledge of...
Hi, I'm a newbie to MT4 so bare with me please. Is it possible with MT4 to excute a Expert Advisor script that uses multiple timeframes in order to create trading signals? If so, how do I achieve this in code? Timeframes such as 1min, 2min, 5min etc. Thanks for your help. 
[Deleted]
Noob issue   one click trades no longer display horizontal line on live charts. Any suggestions appreciated.
Hi, is it possible to transfer the trades of a html-Statement (produced on an other computer by the tester) into a chart on my MT4? Maybe there is a script that can do? Thanks für help, Klaus
[Deleted]
Hi, I have for a while tried to figure out how can I change the time frame over multiple windows (Charts) in Metatrader4. What I mean is that when I for example change from hour to daily then I want both XAUUSD and XAGUSD to change simultaneously. Because as it is now I need to mark XAU to change
[Deleted]
Hi   I try to adapt and customize a code and I still have three errors Quye I can not seem to correct, the block of code in question : //+------------------------------------------------------------------+//|add char at beginning or end of...
#include <CustomChartingBacktest.mqh> and at the very top of the void OnTick() function add the following function call: if(skipFirstTickOnBacktest()) return;   //+------------------------------------------------------------------+//|                                       CustomChartingBacktest.mqh...
[Deleted]
Hi all, I had an EA which worked fine. As I needed to avoid to open position on calendar events, I've added some more code into my EA. In order to test it, It simply opens a long position if EURUSD market rate is above 1.1300 and opens a short position if the EURUSD market rate is below 1.1300. It...
I just installed MT4 for the first time and playing with it using demo account. A few questions. 1. I placed GBPUSD order having volume 0.01 by clicking on "Buy by Market" button. Now how do I see at what price did I buy this? Like some sort of order history. 2. I didn't enter any value for "Stop...
[Deleted]
Hi, My EA is using custom made indicators (e.g. Keltner channel from https://www.mql5.com/en/code/8445). It is looking on multiple timeframes  using iCustom where the second parameter is set to different timeframes.  In the strategy tester, if I select the Period to be H1 and press the start button...
I try to find configurations. I find some configurations, but not for This problem. So, how to create a configuration file, to start the terminal with autologin to mql5.community (Preferences->community {Login:Password}). Thanks.
  params arguments  (9)
Hi,  I can't seem to find an example of defining a function with an arbitrary set of parameters, just like Print(...)  is defined.  How do I go about declaring and then accessing a parameters array?   A code example, or a link to a documentation would be greatly appreciated, Thank  you.
[Deleted]
Dear MQL4 Forum members, I'm new to mql4/mql5 and this forum. I've a question which I couldn't figure out by reading documentation or searching the web/this forum: Is 0 (zero) a valid/possible ticket number? In other words is it possible (although unlikely) that OrderSend returns ZERO as a valid...
[Deleted]
Hi all, I was wondering if there is a pace holder similar to the 'Pass' in python, that allows the code to compile so you can compile as you go? Thanks
Script specifications The purpose of this script is to be able to open a EURJPY trade position if certain conditions are met. Conditions: 1. pressing a certain key (combination of keys) on the keyboard. 2. direction of the Zig Zag indicator motion does not contradict to the pressed key. Example: An