New MetaTrader 4 Platform Build 830: Hotfix
MetaTrader 4 platform update is to be released on Monday, May 25, 2015. This hotfix update build 830 follows the previous major release. The new version features corrections in the CopyTime function and fixes of issues reported in crash logs. We strongly...
Hello All I'm attempting to get this indicator to update every 15 minutes, but it's not working, and switching the timeframe period manually makes it work. The objective is to print the line on the last previous LOW that is above the SMA, and the indication Print line once this LOW it come below the
I want to know, If I set the spread in backtesting to 10, does that actually backtest the EA as if it was spread of 5 or 10 at the time? EUR/USD on a live demo environment has 5-10 spread on FTMO, if I set spread to 5 or 10, will it actually give realistic results as if spread was 5 or 10 during
Hi,Some time ago I tried to do a simple arithmetic function as follows double lots = 0.01 ; double lot_1b = MathRound (lots* 1.5 * 100 ) / 100 ; Print ( "lot_1b : " +lot_1b ); The calculation above should produce 0.02, right? But when I run the script in MT4 on one of my VPS the resulting number is
Hello, like in topic, if I don't have a tick, can I place pending order in OnTimer interrupt at specific time
hello friends, I am trying to code a hedging strategy. I know very little coding. this is what I developed from chatgpt. This is what I want , when ever I or another EA places a buy or sell order, the EA should place a hedge order of same lot but one as a limit order and other as a stop order . It
I create a function for open orders as below and shows only buy orders. The EA allows both buy and sell orders and others remains no difference. However, if I remove the words in red (i.e. orderType == OP_BUY and orderType == OP_SELL ), both buy and sell orders are open. Any advice why such
How do you export to a file the data calculated by a specific indicator (indicator figures from a chart for a given historical period)? MT4
Hi guys, as title... I want to implement a function that close all orders when price touch the line i draw by myself... Is that possible? What can i do? thanks for any reply :)
Today I decided to check some info about price history in some pairs. I created new account, logged in and saw this. Can I change this somehow
I have Define variables 250 pieces , how to package them at the end of the code
Hi, I am working on implementing strategies developed in MQL4 into python here. The built in ADX function seems to use a different smoothing method than the conventional wilders smoothing method. The values differ by a significant margin(see screenshots). Is there any way to access the source code
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
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.