[Deleted]
Is there a way of creating a permantent array? It should not be deleted when the indicator is reset (e.g changing timeframe, restart MT4,...). It is possible to create grafical objects and fit its text with the data but is there another way than this workaround? Thanks for any help!
Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners has " MetaTrader 5 — Trading systems " in the title of the article so I reckon it is the instructions for writing an EA using Metatrader 5. What is the equivalent guide for how to write an EA using Metatrader 4
Hello guys, I have an issue with calling an indicator in my EA. It is loading multiple times as. I call this EA in a function as below: void OnInit () { double BV( int buff, int shift){ return ( iCustom ( _Symbol , 0 , "BetterVolume 1.4" ,NumberOfBars,MAPeriod,LookBack,buff,shift));} ) /// /// ///
Hello, does anyone know if it's possible to do an automatic refresh on an offline chart (like right-click and refresh)? Maybe with a timer that requests a refresh every X seconds? Or perhaps with a second chart online in the same profile that requests the refresh of the offline chart. The reason is
Topic moved to MT4 section. Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893 Hello, Am unable to view where I have executed my trades on the mt4 chart area. This is not like before where you could view where the execution has taken
After playing around with EA's for a bit, and using the strategy tester mainly to see if the code was actually working I'd now like to progress onto the real why of the history center, and how to use it properly and I can't seem to find the answers or something comprehensive on it. OK I get...
Hello, I dragged my TimeFrames toolbar out of its line in the toolbars bar, now it is a disattached box in my screen like in the picture. I tried deleting it, moving it, closing many times the MT4platform, I got like 6 hours trying. I need help. I don't know what else to do. Thank you
Hi wrote this code (MQL4) that checks currency pairs to contain USD and install the DXY indicator if so. It works as intended except when going between non USD pairs and USD pairs, the DXY is not visible despite MT4 -> Terminal -> Experts tab tells me the Custom Indicator was loaded and installed
Have a nice day. I use a Dialog (Panel) object derived from the CAppDialog class, whose position on the chart is measured by default from the top and left side of the chart. I am trying to change the " anchor point " (left, top) so that its position is measured from the top and RIGHT side of the
Can MT4's Renko chart be calculated using only the close price , like in *** or ***? (live chart) I've tried many Renko EAs for MT4, but they are all based on OHLC data
Hedge is prohibited, How can I fix this problem? Thanks in advane! #4501 Error any help would be nice error | EMA-5-20 @ EURUSD ,5 | OrderSend failed 6 times; error #4051 invalid function parameter value
Hello, thanks for the opportunity to post on the forum! I am working on an indicator to plot arrows onto a chart based on a local CSV file - i can read the CSV file, have the insertions set up but it's just inserting in one place rather than multiple? My CSV format is; 1.75793,BUY,2024.11.22
Can Someone tell me how to get Alert pop up window manually without Alert() command in EA/Script?
(12 1 2)
Hi, I am looking for feature of MT4 if there is one such that I will be able to get Alert pop up window manually to review my old Alerts. I know this Alert pop up window I can get by executing Alert() command in EA/Script/CI, but for some reason if I close this window then How do I get it back
Hi; I wrote this indicator that initializes and loads successfully (see image below). I get no execution error either except I get a fetching error (but no error code) The code I use compiles without errors as well: //+------------------------------------------------------------------+ //|
Hi All I have a problem with my pending stop trail, as soon as I drop my EA. The pending stop trail's but give's me a different price instead of a new trailed price. Here is the Image below: As for my code: void StopTrail3() { double BuyStopTrail= NormalizeDouble
my ea opens regular chart i want to open an offline m1 chart only , but its not working , how can i achieve to open only offline chart , i have lot of offline chart data //+------------------------------------------------------------------+ //| Expert initialization function
Hello all I am running an optimization test on a EA with different settings. I don’t understand how it can be possible that the optimization for a specific period of time (which obviusoky includes different sets of settings) runs faster than a test on that same period of time but with fixed
Good day to All, I have small inquiry if anyone have the experience to help me out I’ll be so happy I received an email from my broker asking me to reduce the massages sent throw my EA to mql5 server as limited to 2000 msgs per a day and they told me they might close my account as hyperactive
Hello Friends Please help me look into this code. It works well inside EA to addach custom indicator to chart. But when used as an indicator, it doesn't work. It Opens the indicator Dialogue, but doesn't click "OK" to add the indicator to chart. The code is MQL4 Thanks #import "user32.dll" int
Hello friends, I am developing an indicator that initially displays three vertical lines in the middle of the chart. These lines are calculated and drawn based on the number of candles on the chart (i.e. the middle of the chart). The indicator works correctly on fully loaded charts. However, when I
Hi I have an indicator where the user defines their profit ratio. The int value is stored in the var "YourRatio". I am not using the SetIndexBuffer() function In a separate EA that is not related to that indicator, I would like to retrieve the value of YourRatio. I can use the iCustom command but
Hi, Just got this code from chatgbt. it uses rsi overbought and oversold levels with engulfing candles. i also asked it to us 200ema to determine the type of trades it can open. Unforutunately, the are over 19 errors. Can you guys please help to eliminate the errors. ... Improperly formatted code
Hi folks, i'm working on an EA based on an indicator using 7 different internal indicators each one named FL1,FL2, ... so i use ICustom fxn The issue is that one indicator (FL2) using 8 different lines (as indicated in attachment) all of them have the same name and value and when i use ICustom it...
Hello, I'm trying to create a function that would check for a previous / developing crossover pattern using the stochastic oscillator . Attached is an image to better explain what I'm trying to achieve. Essentially I'd like to know when a multi part crossover occurs, the criteria is a first cross
I have:
bool MyVar = false;
When I try and display a comment:
Comment ("MyVar: " + MyVar);
I get implicit conversion from 'number' to 'string' warning when compiling.
In MT4 it would compile OK and print a 'one' or 'zero' corresponding to true or false. How do we now display booleans in a...
Hello, I've been a pretty dedicated Forex trader for the past 3 years. I pretty much trade every day and work with a couple of different strategies and algos on different timeframes. I've had a consistent problem over the years with backtesting. I subscribe to Tick Data Suite and regularly update my
Hello everyone, i need some help, i need to uninstall mt4 and data but the uninstall app doesn't exist, and mt4 is not listed on apps and features
Hello your help will be highly appreciated, I have coding a function that triggers opposite ordertype when a trade closses in loss but not working at all. That is if we have buy order active and the order closses either by sl or opposite close and it resulis in loss then sell order will open at the
When a certain buy condition is met, I want to open a buy position and set the take profit (TP) and stop loss (SL) based on the candle length. I found a Martingale strategy on Forex Factory that is similar to what I want. The main function of this Martingale strategy is that when a buy position hits

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.