Is there something like a stringbuilder (Java) or stringbuffer (C#) in MQL4 that facilitates fast string append?
https://docs.mql4.com/basis/function/parameterpass Heres the code above, 1st Method #property strict //I added this one, not sure its gonna mean something for thise sort of code but Im stil a beginner n wanted to add it in.//+------------------------------------------------------------------+//|...
Hi guys, So when I activate "show object description" in the chart settings, my lines will display a little text on top with the given desciption. Can i somehow change the alignement of these descriptions so that the text appears centered between start and endpoint of the line? Thanks! :)
Hello I am trying to understand why in example below my EA stops and I receive array out of range error (pointing that problem is in following line: Print( "15 mins Rates time: ", mqlrates_array_15[0].time); My entire idea is to be able to refer to MqlRates of different timeframes of the same...
Hi, I was trying to install EAs on my VPS base in NYC. I cannot install anything. Even my VPS provider cannot fixed. I got this error messages all the time : 2017.05.15 17:18:11.853 MQL4 Market: failed parsing info about purchasing a product 'Tipu MACD' 2017.05.15 17:18:11.853 MQL4 Market: failed...
[Deleted]
Is there an reliable method for detecting if an symbol does exist or does not? Curently I use this: boolean function IsSymbol(string SY) {double tmpTickValue = MarketInfo( SY ,MODE_TICKVALUE);if ( tmpTickValue > 0) { // This Symbol does exist return(true);} else { return(false);} Is It OK?...
[Deleted]
I am new of coding , this is good in the backtest to get the lots of buy / sell . but if i use it in demo account ,orders from other currencies will calculate into "dl" and "kl" , so i will have a wrong result , because i want ea to know to put it into individual dl / kl ( as a buy lot/sell lot)...
Hello, is there any documentation about MetaTrader4_Internal_Message? For example if I send a msg with wParam == 2 it generates a tick that triggers start(). Could someone help me to find what does happen if I use, for example, other values? I appreciate every informations about that Thank you
Would this for loop work? currentask = (MarketInfo(symbol, MODE_ASK)) for(int f=market_refresh; f<=3600; f++) { if (Ask / currentask > 1) { Market = "bear"; break; } else { RefreshRates(); Sleep(1000); }...
Hello, I have this error when run my EA: This is my code to open #3 orders, where is the mistake? int ticket[];bool checkBuy = true;int i=3; //numero ordinivoid OnTick() { if ( Close[1] > Close[2] && checkBuy) { esecuzioneStrategiaBuy(); checkBuy = false; }...
More MQL questions. Thanks in advanced to the answer. What is the absolute best way to lag free execute a sell right now from command line linux terminal directly/without graphical MT4 for better RAM usage? Need the code. Paying API Fees the only way? Meta lang mql.exe the best ? Independant...
Hello my friends, I've an indicator. I want to update my indicator to the new MQL4 Compiler. I already wrote the new code but I've on problem. When I add #property strict - the indicator vanish but when I delete it the indicator appears. Here is the code & I hope any pro here could help me. The...
I use iBands in my EA but I cannot seem to identify the middle moving average of the bends. Any idea on how to get the middle line value since iBands only uses MODE_LOWER and MODE_UPPER? I tried using iMA with no luck. Here is my value for the bends: iMA(NULL,0,20,2,MODE_SMMA,PRICE_CLOSE...
Hello, I created my EA that open #3 orders at the same time when some conditions are true. In backtesting EA works fine and in Result I can see my #3 order with same open time: The issue is in DEMO. I see in Journal tab a time delay (seconds, until 1 minute) between Order Buy Market and Order Opened...
Hello everyone, How should I program this? I can't see a way to get string "sym" to receive more than one enum value. Example: METAL selection is only Gold, or Silver AUD selection is only AUD vs other pairing EUR selection is only EUR vs other pairing GBP selection is only GBP vs other pairing...
Hello, I don't know how to permanently delete indicator from MT4 software? Indicator, in my case Average True Range , is original one and NOT a custom . I would like to delete it from menu so from entire Metatrader software and not only from chart . This indicator is worst one ever seen - impossible
Hello guys, I am new to MQL4 programming. I started an EA using the indicator Slope Direction Line Modified. I checked the EA in very old post https://www.mql5.com/en/forum/178852 https://c.mql5.com/forextsd/forum/49/slopedirectionline_v3_1.mq4 SlopeDirectionLine_v3.mq4. Test on EURUSD M5, M15,...
Is there any existing implementation of list of string, integer etc. where we can add element, remove element directly, without caring of the size of the arrays
I can't locate my pop-up price window. The last time I was able to see it I draggedit just above the task bar at the bottom of the screen. When I press f10 the MT4screen becomes inactive but the po-up price window is nowhere to be found. Re-startingMT4 doesn't bring it back either...any thoughts?
I have the free version of shved_supply_and_ demand indicator where I would like to pass the four nearest zone hi Zone P1 and P2 as well as the lo zone P1 P2 so I can make a pending order EA with it . The basic strategy is the Zone bounce or Supply and Demand bounce. Unfortunately the buffers are...
New MetaTrader 4 Platform build 1065 The MetaTrader 4 Platform build 1065 will be released on 23 March, 2017. In the new version, an error has been fixed connected with the restart of Expert Advisors on charts after switching timeframes. Now, Expert Advisors do not stop, and are correctly...
Hello! I have a problem with adding an "Inputbox" to my ExpertAdvisor to set an input parameter (Indicator price) by clicking the specific botton ("Button_setINDprice") in the chart. What I can find in the forum and I´m trying is the following: ..........................................................
Hi Everyone!!! I have just finished my first EA using build 1065 and was wondering if someone had access to my EXE file, would it be possible for them to hack into it and view the code behind my logic. And if it is possible to get hacked, how can one fully protect their code. Any input or direction...
There is an EA that cancel all pending orders (see attached). But it leaves on market pending take profit and stop loss, that really are also pending orders. Is there an EA that cancel ALL pending orders (that is also take profit and stop loss)? Thanks
Hi I have a problem. (M1, USDJPY) My metatrader uses only 27-03-2017 to 24-04-2017 range with strategy testing, even if I want eg. 01-02-2017 - 24-04-2017. I looked into "history center" and there I have a history for USDJPY since 02-03-2017. But still, how can I MAKE my strategy tester to use this...
My EA uses classes and include files for my stop loss and money management ect. I normally like this method it keeps things clean and easy. I have a problem though, with my include files I can only call out variables generated by the system example market info, symbol, ect. I can not figure out how...
Hello , i have problem with coding , when i attach EA on other currency , the EA not running , but when i closed previous currency , the lates currency will run by EA. How it could be? What must i put on my EA?
Please can anyone help me in 2 very simple question (for those who use MT4but not for others)? I am testing an EA. It is not in strategy tester but a version that runs normally in demo account. I put it in the chart, auto trading is setted, Launchthe EA smiling face appears and it runs. Ok. Then I...
Hi, may I please get some help with this. The #4x3 semafor alert indicator has been the pride of my trading, it has helped me a lot in getting my trades to the next level, not only with the accurate and fast alerts but also with how clear and simple it is. I would there like to automate my trades...
Hello, I want to identify the candle (in the last 5) that have maximum range (High[i]-Low[i]) . I wrote this code but for fill an array with range size: int candele = candelePrecedentiBuy; int i = 1; while (i <= candele) { RangeCandela[i] = High[1] - Low[1] ; } How can I...
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.