MQL4 and MetaTrader 4 - page 7

Hello, How can I back-test my EA with maximum data quality in MT4. I am using [edited] as broker, whenever, I do back-test my EA the data modelling quality is too low. Please suggest me any possible solution where I can do the backtesting with proper data. Thanks
hi i have a zig zag indicator that iv modified to draw trendline on each top and bottom to the right over a specific number of bars , , but with one problem . the trend line seem to be short when there are a holiday (Saturday and Sunday )….the code are attached and a picture which show the problem
Hi want to ask, i'm using time filter to trade on mt4.. Here is the code related to it extern string TradingTime = "------------ Trading Time Settings ------------" ; extern bool Trading_On_Monday = true ; extern string Monday_StartTime = "00:01" ; // Start Trade Time extern string
Hi I'm looking for an indicator that calculate stop loss and take profit before opening position just like when we open a position and put tp and sl line and when we move that lines it shows loss or profit in points or dollar over line but i want do same thing before opening a position with
Dear Support, I recently registered for a MQL5 community account using the "Login with Google option" , I can login properly on the website mql5.com however I can't login on the MT4 desktop App. when ever I try to login with my email credentials it shows wrong credentials. Yesterday I bought an
This is on Metatrader 4, Broker [redacted] live account. The optimization works fine. But When visual Mode is checked, after clicking start, visual mode turns itself off. Advise will be appreciated
Dear Sir, I have tried to program an indicator that would average the highest and lowest values of, for example RSI(n) by coding: (buff1_[i] = iHigh(NULL,0,iRSI(NULL,0,IndicatorPeriod,PRICE_CLOSE,i)) , buff2_[i] = iLow(NULL,0,iRSI(NULL,0,IndicatorPeriod,PRICE_CLOSE,i)) and buff3_[i] =(buff1_[i] +
[Deleted]
Hi there, If I have an object name how do i know which window it is in? THX!
  MT4 Issuses  (2)
I recently installed Windows 11 on my two computers. Both of them have MT4 installed. I lost all my indicators then reinstalled them on one computer without any problems. The second computer will not reinstall them but brings up a page asking me for my login, something I have not needed to use for
  Z-Score Computation  (11   1 2)
In this article, https://www.mql5.com/en/articles/1492, the author present the following method of computing Z-Score. Z=(N*(R-0.5)-P)/((P*(P-N))/(N-1))^(1/2) where: N - total amount of trades in a series; R - total amount of series of profitable and losing trades; P = 2*W*L; W - total amount of...
Hey everone, can someone please help me. I downloaded the mt4 platform yesterday and it was working fine and I got a litle bit profit too. but today when I opened mt4 platform again everything freezed like the charts and popup prices too and I have spent so many hours to solve it but nothing is
Hi, Apologies if this has been asked. Looking at MT4, Market Watch window, I see the US500 has a Swap Long of -7. How is this used to calculate the swap rate in dollars with an account in AUD? What are the calculation Steps? Thanks
This is a very simple practice indicator, with minimal code. I drag it to BTCUSD 15m chart and I get "array out of range" error. Why is it so and what is the workaround? //+------------------------------------------------------------------+ //|
Hello experts, I need your advise to understand why OnCalculate doesnt work in my EA. I have the following compilation warning " OnCalculate function declared with wrong type or/and parameters" and the print statements always return 0 when EA is running. 2023.02.08 15:10:22.523 TestOnCalculate
I bought an EA for the first time and when I go to my account via MT4>Market tab..all the indicators and such say "Pirated version!" I go to the Articles tab, says "You are using a pirated version of the program. Please upgrade to a genuine one!". Says the same thing in my Code Base tab. I
Hello! I’ve been working on my EA for the past several months. Today, I finally reached the stage where I can start using the Strategy Tester. Unfortunately, I encountered an error. Since I am fairly new to trading commands, I searched the forum for general advice. Thanks to the courtesy of several
Hello! I’ve been working on my EA for the past couple of months. Since I coded an option to test historical data as far back as I wanted, I never really needed to use the Strategy Tester. However, now that I’m preparing to run my EA on a demo account, I wanted to test it in the Strategy Tester as
Hello, Currently I plot some long-term trendlines which I require to move, though I need to keep the same angles - this is important. And I need to move and see them across differing timeframes. The problem I have at the moment is to move a trendline, you need to double click it and move it by the...
  EX4 Write Error  (8)
I am getting an EX4 Write Error on every piece of code I try to compile in the MetaEditor. Based on research via g*** here is what I have done so far, that did not fix my situation: 1. I made sure that I am not affected by the folder location change that came up with 4.00/600 - https://www.mql5...
The Code File attached which i learned from MQL4 Tutorial. The Code run on Back test but unable to run in live trading. Why
Hi, I am kind of new to JSON in mql4. But i had an idea i wanted to try send some indicator data to a google docs spreadsheet. I have made the Google Apps Script, and when i send the data from postman it updates perfect in my spreadsheet so i know my problem is within MQL4. When i run my expert
Hello, Anyone knows the location of MT4's data folder for build 1417 released on 1 May 2024 ? For a M1 MacBook Thanks
Please help. I am trying to stop my robot from entering two trades at once. Below is a simplified block diagram of what I am trying to accomplish, as well as the code I am using. The code doesn’t work. What am I doing wrong? Is it the use of a return (0) that is wrong? If so, why? Do I need to do...
  Mt4 profile 2025  (1)
Hi I'm using Mt4 demo and the charts keep resetting to EURUSD everyday. I save the profile and that keeps on getting deleted. Any solutions
Hello, please assist. my mt4 terminal does not respond, it does not show charts but only displays" WAITING FOR UPDATES". IT does not respond to commands. it is frozen. When the network is off the terminal knobs respond but with no chart display and no symbol data. 2025.01 .09 00 : 18 : 26.218 Data
Sir I have an account with [redacted] and download Meta4 from their site. i use Meta4 since 2 years. But from last week I face problem in accessing MACD value display in window. The value Change and display in three digits. Pic Attached. i am not able to understand it
I am having a little trouble with my EA, it performs well beyond what I would have imagined when I have back tested in MT4. Once in a demo account with a high amount on funds it can go either way, in one it performed very well and in another it lost a lot. I am now going mad trying to work out where
So I'm new with MT4 and for that matter to forex trading . Today I was trying to do back testing with some EAs. What I've noticed that for some reason the back testing is not working if I use 1 minute period. It only works on 15 minute period. I tried to download historical data from in csv format
hey there, i want to buy [redacted] MT4 but both paypal and Visa give me an error and won't allow me to buy? any advice? thank you
  Requests & Ideas  (7225   1 2 3 4 5 ... 722 723)
Hello , this EA is shwoing great result but i am sure that it needs some tuching tunning ( i guess playing around with its codes or adding others ) Please have a look at it i am sure it worth it - i hope so - attached is a forward test of this EA for just 5 houres or less ( when ever i get good...