MQL4 and MetaTrader 4 - page 108

Hi All, I am trying to create an opaque rectangle (the rectangle covers the candlesticks). Can someone please advise which properties should be used. See attached code for rectangle upon double click. Thanks
I need a short code to add expiration date and time to my expert. void OnTick() {//1 if(!expire) {//2 expert body }//2 else message("Expired"); } //1 bool expire() { if expiration date reached return(1) else if exp date did not reached return(0) }  
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © funs9ra //@version=4 study ( "" , format = format.volume ) A1=(close-sma(close,20))/ (stdev(close,20)) A2=(ema(ema(ema(A1,3),3),3)) polt(A2) Change the previous code to MQL4 plz
I have a problem with my renko chart builder. It is an indicator where you put it on a 5 min chart, enter your setting, then open an offline chart that has the renko candles. However, this indicator repaints and I was hoping if there is anyone with coding expertise who can fix the issue. I have
Hello coders! Please tell me how to find the number of sub-windows of a graph that is not the current one? On the current graph - no problems (WindowsTotal()), but on other graphs
Hi everyone, I am programming in MQL4 for some time but there is an issue I can't resolve and it is around using buffers in custom indicators. Specifically, it is one indicator that I found online(i have it's source code). Here is the picture of the indicator *** How I approached the problem: I've
Hi, sorry if this trivial question have been already answer somewhere in the forum, but I've been unable to find it. Does anyone know how to sort the Market Watch table by Symbol name column?   Thank you very much, Best regards Stefano 
Hi guys, im trying to get a function that checks how many candles from the indicator were positive or negative in a row. My problem is that it is somehow not working correctly. So lets say: 4 Candles have been positive but it shows only 3 sometimes. Do you guys have a idea? Thank you! My try: //|
How can I refresh the rates of non-current chart windows. Any code that works like RefreshRates() for non-current charts e.g. RefreshRates (long ID)
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...
  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