MQL4 and MetaTrader 4 - page 78

Hi forum, for me it's inconvinient to disable autoscroll before I can scroll backwards. So I thought if it is possible to disable it automatically if WindowFirstVisibleBar() is above a certain number. I use chart scale 4 with a shift on the right side. So with enabled autoscroll the...
I want to keep my view on the "Trade" tab/window but everytime I get something in the "mailbox" tab/window it just automatically switches to it,...... then I have to click on the Trade tab again to see how my trades are going........ Is there a way to stop this from happening and gets quite...
  analysis tool  (16   1 2)
Hello everyone! Sorry for my English. I need help, I am making a tool to draw specific areas, in principle the tool works fine but there are two functions that when executed block the MT4 and I have to close it, these two functions are the ones that perform the "RESET" button and the button “DEL”
Based on the title above, I'm really stuck where I should start. In my opinion Bollinger Bands and Moving Average are existing indicators.. I'm just confused where to start
Hi, Could anyone explain ? When I develop a utility tool for partial close, SL to breakeven etc they work perfectly for MT5 but when I do it for MT4 they didn't work, FYI I use dreema to develop
[Deleted]
Now, I pend one buy limit order using my demo account. But, when I run the following EA, It do not work. GetLastError() returns 133. Which friend can help me? Thank you very much in advance! int start() // { int Orders=OrdersTotal(); // for(int i =0;...
Hi all , i'm a beginner in coding and my question is: i've got an EA but only the EX4, i just want to "upgrade" it by just making a tool that can give me the opportunity to select the hours of trading for my EA. I manage to do it on my own ea mql4 and it workd , but is it possible to do it on a EX4
I am trying to set a button at the high of a specific candle with a double click. The button is not showing up. Can someone please advise what is wrong with the attached code
Does anyone have a function or script which removes excess spaces (2 or more spaces) from text.txt files?  The StringTrim commands are not working for me.
I developed and EA and wanted to protect it from unauthorized use , so i used time limit from an article mentioned here. #property copyright "Copyright © 2009, etc" #property link " http://etc.com.ua " int start() { datetime LastAllowedDate = D'2009.09.11 23:59:00' ; if ( TimeCurrent () >=
I have ran into a problem. My MT4 terminals keeps on deleting my trading accounts on the terminal. MT4 worked all good for a while and then out of nowhere when opening the program they started deleting my trading accounts. I added the trading accounts back on the MT4 terminals, but when I exit the
Hi Everyone. I am coding an indicator to work on offline renko charts. It shows arrows when certain criteria met. When I run it at first no problem. But after created new renko bar, arrows are doubled and when I check data field on chart I see it is filled the buffers with previous bars data. What
Hey everyone , i'm facing the issue with one of my MT4 account which is connected with HFMarkets broker , in this account i'm using my same EA which i'm using for another MT4 account(Oanda broker). on my HFMarkets Account i'm facing the issue with order got cancel and giving us error of mql4 error
Hi, there is a problem with the market tab in MT4. When I click on the market tab, it takes some seconds and then the MT4 terminal crashes. Is there any solution? Using 2 MT4 terminals with different accounts, a VPS with 4 GB RAM and latest MT4 built. Broker Tickmill. Thanks! Tobias
Has anyone ever experienced something like this? It was during a news event, but as you can see price went I my direction and the green indicator shows the trade should have been closed in a positive balance, not a negative one. My entries were 1801 and 1800 with a sl of 1801.4 and 1800.2. To was
Dear All friends Now I'm creating an EA to run concurrently on multiple symbols. In certain situations, I need to delete just 1 symbol from the many symbols that are currently open. Until now I still fail in using the OrderSelect and Orderdelete commands to delete that symbol. I'm very happy if
Hi, in my MQL4-Expert Advisor the following code always throws an error due to missing {. But I don't understand why. void OnChartEvent ( const int id, const long & lparam, const double & dparam, const string & sparam) { if (id== CHARTEVENT_KEYDOWN ) Print (lparam); } Thanks
  color switching  (6)
Hi! How to change the color of the label depending on the spread value ? //+------------------------------------------------------------------+ //| SpreadIndikator.mq4 | //| Copyright ? 2010 MeinMetatrader.de | //|
This is my script. #property strict #property indicator_chart_window // Make sure the EMA period is a positive integer input int EMA_Period = 60 ; // Make sure the risk and risk-reward ratio are positive integers input int Risk = 2 ; input int RiskRewardRatio = 2 ; // Make sure the lot size is a
I am creating a signal indicator that follows the trend and represents the entry points with arrows. I use IndicatorBuffers to generate arrows. The structure of the indicator is: If (Order Condition){Draw an arrow} Because the indicator follows the trend there are a lot of entry points that match
I don't understand t hese errors, I turned on hi g hli g htin g brackets and I don't understand w hat is causin g t he two errors, so close yet so far away. *******
Hi, I tried to get the open price of an order so that I can base on that value to place a new order. For example 100 pip away from that price. I use the OrderOpenPrice() function but the value returns 0. Please help me with this issue. Here is my code: if ( OrdersTotal () < 2 ) { int
I am trying to find the first open price from several open orders and symbols.  Below is my initial attempt.  Need help getting this to work. /***********************************//Finding the First OrderPrice for a bunch of orders and symbols***********************************/ int...
I tried running a backtest with Exness MT4 terminal it isn't working. Why is that so? the image is the error from journal... Also, I observed that ex4 EAs are not working in MQL metatrader 4 version... why is it so /
Hi all, My indicator runs on every chart that I open, but the problem is that the memory usage (RAM) increase madly. So I tried to free and delete all general arrays and objects of not in focus charts, using anything: ArrayFree(array_name) ArrayResize(array_name,0) ObjectsDeleteAll(EMPTY,EMPTY)  but...
What's the equivalent of AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) for MQL4? also what about the equivalent of? TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)
Hi everyone, I work with a computer every day that I am not allowed to install software. Can I use MetaTrader 4 or 5 without installation (portable)
Hi all experts, I am new to MQL programming and try on some EA programming but facing problem whenever call to OrderModify(). There is no compilation error but on running the EA in tester will give Error 130 on OrderModify() call. Attached below my create order function code for review. Any advice
Hi guys! I was wondering, these numbers from MT4. What do they mean? I observe that sometimes MT4 is not moving smoothly. Like when I want to add an object or something, or moving mouse pointer over the chart, it is freezing for little moment. And I have observe that if I brake internet connection