when i put my indicator in the market it gave me this error EX4 file must be compiled using <a target="_blank" href="http://docs.mql4.com/en/basis/preprosessor/compilation"> #property strict</a> directive. what can i do to fix this error thanks in advanced
//+------------------------------------------------------------------+ //| ReverseTrade.mq4 | //| A fully functioning EA that opens a reverse trade when price hits | //| -50% of SL of an existing trade, and keeps original trade open. |
Hello, I have a very simple histogram indicator displayed in a subwindow. It displays fine unless val2 > val1 then the val2 histogram 'covers' the val1 indicator colour. Is there a simple fix to this? Is there a way to send val2 colour to the background so that both histogram colours show on this
Hello, for to copy text to clipboard, I tried the solution of ricx on https://forum.mql4.com/30795 It's running through without error, but in the clipboard there only is the first character of the input string. I tried to find an explanation and a solution and then replaced "CF_TEXT" with
Even adviser that works on ticks, or any other code, cannot save a variable in memory. Because of this, the ability to make a cool code fades away greatly. When code execution ends, the values of all variables are reset.... And already doesn't matter , that function OnTick (other global function
Hey coders, I found a code about how to maximize a chart window by using SendMessage but I can't find something like WM_MDIMINIMIZE. I googled it but I didn't find a command to minimize a window. Can someone help me? This script is working fine to maximize a chart and I figured out that
Hi! Hope everyone is doing well! I have couple of questions: In MT4: 1. When I double click for example in XAUUSD D1, this data is downloaded from trade server, right? 2. When I select Download, this gives you an alert saying that data will be downloaded from MetaQuotes, so, data is overrided with
Hi everyone, i want to change the default settings for price alert from sound to notification! When i add new alerts over the chart than the expire date is activated. I want this also off as a default. Thanks@all!
I, a custom indicator , just got a new tick and am currently in Start already. I need to find out whether I am to move up from the previous tick or down. Where do I fetch this information
How can I fetch Tick data from MT5 and MT4 broker terminal in real time (live tick data)
MarketInfo(Symbol(),MODE_STOPLEVEL) to get the minimum Stoploss or Takeprofit level still error 130
(9)
From the topic u will get fast my problem I'm a beginner EA programmer, this is my first EA pls see my Code I really dont get why its still not working, I mean why do I get still "invalid error" //+------------------------------------------------------------------+ //|
Here it is guys. Check out the ReadMe file thoroughly. I've been using the H1 chart. Updates will be posted here so they are not dispersed throughout the thread. If a zip file has a low number of views, it's due to a recent update, if only in the readme file. Enjoy, Tom
Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll
Hello, I am trying to avoid 6 hours before market close and 6 hours after market close in my EA. i am using SymbolInfoSessionTrade to get opening and closed time of assets. What mistake i am making? extern int MinuteToAvoid = 360 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
Hi, The attached stochastic is an mtf version that is great. However it does not show interim values on higher time frames when used - it only updates the values on close of the higher time frame values. Could you change it to show higher time frame values in the interim before bar close, during...
Hi, I've tried using several EA's on MT4 and keep getting the attached error message. Any help would be much appreciated. Thaks Steve
Hi all.
I have recently used ChartSetInteger function to programmatically change sub window height (MT4 latest build 830). Once this code is applied to the chart, then I can't change sub window size manually afterwards.
It seems the code fixes the sub window height and even if I drag my mouse...
Hi, I am having trouble with the 'market' tab on MT4 after I login to community, I am unable to see all my purchases on my account to download my products I have purchased, and this started occurring after I reinstalled metatrader, but also checked a different installation I have on MT4 on a
Hello, I am trying to achieve two operation, On friday before market close, close all the open trade before X hour and On monday after market open, Start taking new trade after X hour. I am trying like this int MinuteToAvoid = 60 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
Hi All I would really appreciate some assistance. Fairly new to MT4. I have recently managed to code my strategy into an EA, which is mainly used on indices (DE40, NAS, US30). I ran a backtest on my NAS trading strategy using MetaTrader's Strategy Tester, set to the "Every Tick" model for maximum
How can I get MT4? Whenever I download the MT4 window setup and run it, it ends up installing MT5. This is confusing as I actually need MT4 to write EAs for my clients
Hello, what should i use along with OrderSelect? if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful return ; if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful break ; if (! OrderSelect (i, SELECT_BY_POS
The purpose of this thread is more personal ... At some stage (some 4 years ago, posted it at this post : https://www.mql5.com/en/forum/175938/page17I ) coded one variation of an indicator that I named TMA centered. After that somebody shortened it's name to TMA and ever since I am receiving emails...
Hi All, Working on a Multi Time frame stochastic oscillator tool that works well for me as a manual trading strategy ive integrated into part of my EA and it works fine forward testing it but I cant back test it using strategy tester. Ive done a lot of modding of the code lately to really strip...
Dolly Graphics v16The Dolly indicator has been updated to reflect the new code available with the new 600 series MT4, hopefully when MetaQuotes release the next platform update everything continues to operate. The indicator is currently being tested and checked for any obvious bugs and will be...
I CANNOT DOWNLOAD or INSTALL new MT4 at my VPS, I think the IP of my server is banned by mql5 for this, anyone has any idea or how to contact mql5 offically, the support messaging system just direct me around and cant really even a message
Trades from 2022 and 2023 are archived in one of my MT4 accounts . Does anyone know the reason for this and if it is possible to unarchive these trades? All history show correctly in MyfxBook but not in the terminal. The broker, IC Markets, could not explain why this happens in only one of my
Hello, I want to close all opened or which open trade automatically except 2 most recently opened trade. My code extern int BlindClose = 2 ; void CloseOldOrder( int MagicNumber) { int OldOrderClose_totalOrders = OrdersTotal (); int OldOrderClose_count = 0 ; int
I had abandoned Strategy Tester for more than a year. Then I decided to try it again. Terrible experience just like in the old times. I write an EA that is an absolute winner in the backtests, then I put it to work on a live account (demo, of course) for three days and it loses money for three days
HI I am using Macbook air 2015 using BIG SUR version 11.7.10. on the app store it says my system is not compatible. i contacted the apple support and they told me to ask for a previous version of MT4 which is compatible with my system. hope someone can help on this

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.