Hi there... could anybody give an avice, pls? My EA sometimes stops due to an error. The error is shown in Terminal/Experts and EA stops. Is there a way how to duplicate this error mesage as Alert/SendNotifiction? I only have an idea to add a counter to it, then store it as a GlobalVariableSet, then
Hi; I have the following code that will draw a level in the installed CCI. if (PositiveLevel > 0 ) { // Check if the object already exists (to avoid duplicating it) if ( ObjectCreate ( "BuyZone" , OBJ_HLINE , subWindow, 0 , 0 ) == 0 ) //subwindow defined earlier { // If
Hi; I have the following code below to automatically increase the string instead of having to manually enter each character. // Display Divider ObjectCreate ( "Divider" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSet ( "Divider" , OBJPROP_CORNER , WhichCorner); // defined earlier ObjectSet
[Deleted]
I have a DLL that I have re written to control my EA and in so doing I have introduced a memory leak. From forum readings I understand that this is likely do to not destroying the string arrays in the DLL. Rather than passing a string back as I did originally i simply pass the pointer to the string
[Deleted]
I thought this might be helpful. I found the original somewhere on the net and expanded on it. It should be noted that many of these commands should not be used because the MQL4 language provides better, cleaner, alternatives. Occasionally though, you find you need to accomplish a particular task
Hello, I'm trying something new to me and redefining some types to userdefined names, such as: typedef uint uint32_t; typedef uchar uint8_t; typedef string STRTYPE; typedef const char * STRCTYPE; typedef int32_t HRESULT; typedef char TCHAR; But on
Hi My ea runs fine with zero errors on demo but fails uploading to market I use 2 bools to check the correctness of volume and money for trade I get different validation errors If I start with 0.01 lot, the error is no trade operations but if I start with 1 lot, it opens trades but shows error not
Hi all, Hope I can find an answer about this. I'm testing an EA and the message appears "trailing is too tight". I don't have any trailing stop on at all, and I'm very positive that this has no relation to trailing stop. Attached is a picture of the settings and messages appeared in experts tab
bool openstat( string name, string ordertp, int magicx){ bool stat= false ; bool haveopen= false ; if ( OrdersTotal ()> 0 ){ for ( int d52= 0 ;d52< OrdersTotal ();d52++){ if ( OrderSelect (d52,SELECT_BY_POS,MODE_TRADES)== true ) {
double xiaoosma1= iOsMA ( Symbol (), PERIOD_H1 , 6 , 10 , 4 , 5 , 1 ); double xiaoosma2= iOsMA ( Symbol (), PERIOD_H1 , 6 , 10 , 4 , 5 , 2 ); bool xiaoosmax=((xiaoosma1>xiaoosma2)&&((xiaoosma1< 0 )||(xiaoosma2< 0 ))); bool xiaoosmay=((xiaoosma1<xiaoosma2)&&((xiaoosma1> 0
Saw this idea (original idea from Jose Silva - Metastock) Colored it up and somewhat changed the logic (simple, simple, simple...:)
I am unable to connect to MQL5 (Community) in my MT4 terminal - Login Failed, although my login credential is correct. Can anyone help/advise please? My paid robots can't be used
I am using #resource directive for importing a technical indicator . The code on compilation always shows the error "Unknown Resource Type". It would be great if anyone could help me. Thanks in advance
error: declaration of 'cnt' hides global variable double FindLastSellPrice() { double oldorderopenprice; int oldticketnumber; double unused = 0 ; int ticketnumber = 0 ; for ( int cnt = OrdersTotal () - 1 ; cnt >= 0 ; cnt--) { OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES); if
Does anyone know how to solve the problems of freezing the platform that remains inoperable? Please help from support or wherever, if possible send me a private message
What is wrong with the MT4 platform? After installation becomes MT5! Anyone can help? Kindly please tell me i need help in this matter where from i can download the meta trader 4? waiting for your reply
I have 10 years above experience at forex market specilly trend line breakout strategy . Trend Break out is nicely work as below Feauture: 1.Trend Identify first clearly though Slow MA (period 50 method linear) A.if price stay up from slow MA is defined as Up trend B. if price stay down from slow
Hello, I installed MT4 on a VPS, but when I click on the 'Market' tab at the bottom to download a free EA, I get an error like in the picture. Please advise on how to fix this Best Regards
I downloaded another MT4 with the same broker and i lost my EA forex robot? The trades the EA open are still running but the EA disappeared under Expert Advisor list and from the chart? I tried to paste it under Expert it did not appear? Can anyone please help? the chart
Hi I'd like to open trade on the open candle, to do that I use this code to detect new bar formed from earnforex: datetime NewCandleTime = TimeCurrent (); bool IsNewCandle() { if (NewCandleTime == iTime ( Symbol (), 0 , 0 )) return false ; else { NewCandleTime = iTime ( Symbol
Hello! having downloaded and compiled accurate history data, MT4 turns them into a gigantic file when importing it via the history centre. So large in fact that it easily eats up the free 80 GB on my system HDD. So I tried reinstalling a copy of MT4 on an external HDD with 2 TB of free space. That
[Deleted]
Hi guys, Is there any way to just keep the bands and remove or hide the 20 MA in MT4? Thanks
I read the indicator parameters of the 1-hour period on the 15 minute period, I read the parameter was correct. However, when I run the EA open order, I found that the parameters of the indicators read were not accurate,Causing incorrect Openorder location
When I download historical data from the MetaTrader 4 platform, I feel that there are errors and I do not know whether the problem is with the company whose platform I downloaded or the problem with the platform itself
Hi, can anyone tell me what I am doing wrong here? I get no errors. Thank you. // Create a unique label name string labelName = "AsciiCharacter30" ; // Delete the label if it already exists ObjectDelete (labelName); // Create a text label on the chart if ( ObjectCreate ( 0
I can't find mt4 trading platform on google play store Is mt4 going to be closed
when i start installing setup is demanding server login & password i attached the picture see attached file i was download the setup from https://www.metatrader4.com/en after install the setup is it is meta 5. i have some indicators i want to plug with the meta 4 but i am unable to install the meta
i have one I have a basic and much needed updated offer. All trade close function must needed in MT4. i know this function is already exist in MT5. but this function also needed in MT4. I hope I will get to see this in new update
I want to set take profit in currency for several orders (in same direction) in the settings. Please help me to correctly calculate the price of take profit. I think something like this (but most likely it is not correct): struct STRUCT_SERIE { STRUCT_MARKET_ORDER orders[]; double breakeven;
Is technical support for the MT4 trading platform available if I have a problem with it? If so, where? If not, what is the alternative

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.