I have coded background change based upon one EMA being higher than another, works great. How do I cause the subwindow to change when conditions change? Thanks in advance for helping, I'm having trouble with the mobile version of this site sorry
Please I am trying to write a code in mt4 or mql5 that will: Have a static line of high and low TrendLine These lines will only be drawn when TimeCurrent is > 00:01gmt And will be deleted at midnight when TimeCurrent > 23:55gmt The upper line will have two anchor point 1. it will pick out the
I accidentally detached the the terminal and I followed a guide to default it but I accidentally deleted an important terminal file. On the MAC, there are 2 terminal files on the first page and I deleted the one on top. How do I recover it
[Deleted]
Hello everyone, currently I'm using a lable but I would like to achieve the same result with a text object because label keeps refreshing when I move the chart. Here's desired outcome: The text basically have the same price coordinates of the white lines, here's the code: int x,y;
Please can anyone add stoploss and take profit in this script .. i will be very thankful to you extern int BuyThreshold = 40 ; extern int SellThreshold = 30 ; extern double Lots = 1 ; extern int MagicNumber = 33 ; extern string comment = "by example script" ; extern int maxOpenPositions = 3 ; extern
I have an EA where it sends Webrequest every few seconds. The EA would run for a few hours, then suddenly the webrequest would just stop working. I have set the Webrequest to have 3000ms (3 seconds) timeout, but when it stop working, it would just abruptly gives -1 error and getlasterror will show
Hi all, How can I ObjectCreate an OBJ_ARROW_UP as a button (with screen pixels as coordinates and not time-price as coordinates)? I don't want the arrow to scroll with the charts. Thanks
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...
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
can someone explain this please ? <image deleted>
[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
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.