MQL4 and MetaTrader 4 - page 88

Hello, I got this code from this forum and I've which should let my orders only be executed once its been 2 Hours since my last trade closed. However, If I run it then my EA does not make it's first trade at all. I've forced it to buy using the OnInit Function and closing it when the Ontick Function
Hi, I can't find the symbol of autotrade on my Meta4 Please can you help me how to find that it was showing but now not showing. Thanks
Hi All, I am making a Trade Assistant. The EA have 3 horizontal lines to adjust for Entry, Stop Loss and Take Profit respectively. Each line has their price above and while moving the lines, the values are updated corresponding to the new price. However, I am trying to also add the Risk to Reward
Hello, Can anyone help me to write an ea that will delete pending orders if no open order exits? What i want is an ea that will delete a pending order if my open order (buy or sell) has been closed, due to taking profit achieved. Example: I have a opened buy order with tp and i also have a pending...
hi everyone, i don't understand why my positions oppen themselves and do not close, could you help me, thanks. ****
Hello guys , i need someone to combine two indi alerts into one alert signal. Here is an example of the signal : Hope you guys give it a test and help me with the coding here is the Indicators: <ex4 files deleted>
Hi all, Have you ever seen something like this? Do you know the name of this indicator?
anybody can help how to make alert show only once, my alert always show every second here my code : int liveAccountNumber = 123456 ; int start() { if (( AccountNumber() == liveAccountNumber)) { Print ( "Account Verification" ); Alert ( "Account Number Pass" ); return ( 1 ); } else { Print (
// Input parameters input int Period = 14 ; // Number of bars to consider input int Range = 20 ; // Range of the volume profile in points input double SetChartWindow = 0 ; // Global variables double VolumeProfile[]; // Array to store volume profile values // Calculate
hi guys. I have the issue which faced most developers on this website (no trading operations). I hope someone helps me find what checks are required to pass this validation. (I tried check for lot size validity, enough money, valid ticket) knowing that the code run perfectly on tester (specially on
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”