MQL4 and MetaTrader 4 - page 459

To post a new topic, please log in or register
We have had some issues (as per previous post) and the MT4 platform is not holding the changes made to the graph colours. These were changed to more user friendly colours, then the data loader run to update the data, and the colours all reverted back to the original settings. It was not doing this...
When using metatrader this morning, it had been running for 12 hours and had two hours left, but the lid in the laptop was pushed down too far and it went into sleep mode. When the laptop was woken back up a minute later, it reported that the backrest was completed, but had nor completed the final...
We have found on the laptop we are running MT4 on currently that not all passes are being completed (see the attached screenshots) and this is happening every time now. Any ideas how we can fix this so it will complete all passes? Many thanks in advance
when applying hawkeye template to chart iam not able to view heatmap and volume
Hi I use a breakeven EA to put trades to breakeven after a positive movement of X pips, also have a rule to put the stop loss or take profit (depending on whether the trade was in profit or loss at the time) to the entry price if 24 hours has elapsed since the trade opened if target or stop has not...
OLD MQL4NEW MQL4 WITH STRICTVariable scope is from declaration (even in the nested block) to the function endVariable scope is from declaration to the end of the block, in which the variable is declared Does that mean in strict mode a local variables scope is defined by { } ?
Hallo agan traders all! This time I will share my work free an ebook Hope I hope with this powerful ebook agan Treder in the word be financially free life forever! just downloaded MC goodbye welcome financial freedom * answering questions about his op techniques here please
I am trying to make a simple EA that can open and close limit orders at specific times. Every time I run the code I get an Error 130. The take profit and stop loss both look right. Could anyone look at the code and see if they can give me a better idea of what is causing the error? Here is a piece...
  Cant log in to MQL5 (11   1 2)
Hi, Even when I try and reset my password it says my email does not exist!!! Anyone else having problems?
hello, I want to ask if its posible to put buy stop or sell stop on indicator? What I want is to put buy or sell stop on indicator and then it reached that posision open order with price thant is that moment. I dont know if I said intelligibly what I want.
Hi, I doubt it, but can we change the order of the symbols() in the Market Watch - to open trades manually from there? Where can I find this order - what is its secret? Thanks in advance! Gooly
Hello, I'm having some issues figuring out how to get his bit of code to work. It's supposed to search the past 200 bars from the current bar, look for whether or not one of two indicators have a value, then record the high or low of the bar that the indicator has a value on (depending on if the...
Hi Weekend coder here resuming my learning on MQL4 I started the metatrader 4 and was going to review some of my old EA's and start working on them again and noticed there is no historic data to work on any EA's Says i'm connected and the chart is there but it is the weekend so there is no charts...
  highest cci ? (1)
how can i find the highest cci ? i will crosscheck highest price and highest cci. then i don't know how can i do that :S
Hi fellow MQL Programmers, I am trying to develop an EA using MYSQL to mirror a trade from one broker to another broker and having the success of doing it (Opening trades), but when it comes to closing trades especially when trying to close trades with the same volume (client to the mirror) i am...
How i am show on comment show special text like : copyright (c) How to write on comment this special test : "(c)"
When I open 1M EURUSD graph on MT4 it uses more then 500MB of RAM. 2 other 1M graphs use only 80MB. Where can be the problem and how can i fix it or why is this happening? Is it problem on brokers side or platform? Thx
Hi all, im new on this forum, and havent metalanguage experience....( i have used metastock and tradestation until now). i found volume analisys very important.....for me its like fuel for a car ;) .... i have written a code in excel who make volume count tick by tick and would like if anyone would...
Hi How do you make datetime past = TimeCurrent(); minus 15 minutes?
Hi, my first post here. I'm very new to trading although i've been in the gambling industry for a long time. I've just started coding with MQL4 and have been testing myself by writing basic functions, etc. I have this code and can't get it to take any trades in strategy tester? Hoping someone is...
The MetaQuotes MT4 setup executable was downloaded and upgraded it to the current beta Build 584. It was indicated by MQ there were would be 21 timeframes available in the new release however all that is visible in this build is the standard 9 timeframes. How do you activate/expose/add the...
Hi Guys, I want to take an historical price[X] then divide that with the price one day prior to that historical price[X-1] Then multiply factor that with another set price. So: Xfactor= historical price [X] / historical price [X-1] Price = Xfactor * set price. Then I want to project that price on...
I am trying to write a EA that stops for a few seconds after the close of every bar. Here is the code, it pauses after the bar close but does not play sound, any help appreciated. Thanks _______________________________________________ extern int secsToPause = 5;int last_time = -1;int init()  {...
I need clarification on the sleep() function. First, suppose I set the sleep function for 10 seconds or Sleep(10000). Does this mean that the ea is suspended for 10 seconds regardless of how many ticks come in on the chart or is the sleep function dependent on ticks coming in to keep a "clock"...
string cfgFilename = "myfile.cfg"; string page = "";   int h = FileOpen(cfgFilename, FILE_READ|FILE_BIN);   if(h < 1)   {         Alert("[ERROR] "+Symbol()+" Cannot read file: "+cfgFilename);         return (false);   }   else      {         int len = FileReadInteger(h, LONG_VALUE);...
Hi, I did a bit of research this weekend on variations on constant range bars. Google it if you don't know what it is. There's a nice script from MQLservice to do this. It's a commercial script so I can't post it but there's a number of variations non-constant range bars; mostly for Ninjascript...
Hi, i as wondering if there is a way to have an EA start at a certain time of day usig the terminals internal time or the computers time. Please advise if you are aware of any build in function or snippet of code. Cheers ergys
Hi all, I need some information: If I have one metatrader client terminal e 2 chart (Eurusd and UsdChf)is it possibile attach the same EA on 2 chart?One tick arrives on first chart (Eurusd) and, after a few milliseconds, a tick arrives on the second chart (UsdChf). If the tick on second chart...
Hi How can I check orders that have executed and closed with a loss? I use pending stop orders to enter trades. I want to check closed orders and if they were losers and price is now below my entry price (long eg) I want to place the same pending stop order and give it another go. I would like the...
I am running an EA now for some time and I found out that it sometimes just looks like to freeze. In the picture below I coded that the open order should be exited at the top BB. And this goes good in 90% of the situations. But sometimes not, and the order is closed just after a new compilation of...