MQL4 and MetaTrader 4 - page 182

Hi, I saw the dateandtime documents but all the functions are for the computer time and the current time of the broker, the computer time may be wrong so you can not use the computer time. How to find out if our broker for example is 2+ or 3+ time zone? Or what is the time interval between GMT-0
Hi The functions to set a fix minimum & maximum scale for an indicator are: IndicatorSetDouble ( INDICATOR_MINIMUM ,xxxx); IndicatorSetDouble ( INDICATOR_MAXIMUM ,xxxx); but how to revert this and return to automatic scaling ? ie: equivalent to uncheck the boxes on the UI
Hi friends, I've noticed when I use GVs in my code, They does save when I do backtest. How can I prevent saving and also retrieving GVs during backtest while they are permitted to save and retrieve in Live trading? Any idea
As I compile my include file, no errors appear. However, when I run my script, it alerts me "zero divide" in the include file. Unfortunately I could narrow down the source of the problem. I have no idea how to solve this error. I'd appreciate anyone who could assist me. int CandleStickPips = 20 ; //
i want to complain against New coders ... they just joint the Bid Comment and take your Mql file and after few comments they said they cannot work on your project... our Mql files are not safe... so plz MQL5 staff do something for this .. this happened mnany time with me ....... do something for
Hello, I have downloaded a Timebased EA, its working like a charm with Strategy test, But when i start it with a practice account i get 0 takeprofit and stopless instead of what i have applied, Im using OandA MT4 ... Here is the code :...
Hello everyone this morning on the ea logs that I activated yesterday I got this error but having not touched anything on these code I do not understand what it is due to I'll show you in what string it gives me the error double _get_lot_size( double SLpips) { double AcFrMar, MoneyRisk
Hello, I hope you are well. I have problem with my code. I have more trades with profit: 0.20 -0.50 1.20 -30 35.20 I need to close all trades with losses trades. In my case: -0.50 and -30 and I need to use trailing stop with currently profit trades: 0.20, 1.20 and 35.20 My code close all loses
I have a object CEdit and i can writte (by handle in MT4) number type double (for example 0.01). When I rewrite the number, for example to 1, only the number 1 remains in the CEdit field, but I need 1.00 to remain there (with preserved hundredths). Can it be fixed so that hundreds of automatically
Hello! I have an EA, that works with RSI. Now I want that the EA, by adding to the chart, automatically opens an indicator (RSI) subwindow with the specific parameters provided by the EA. I was trying "ChartApplyTemplate", but imediately this function removes the EA: "The Expert Advisor will be...
[Deleted]
#property version "1.00" #property strict #property script_show_inputs //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ extern int TakeProfit = 10 ; extern int StopLoss =
Hi, can you suggest an indicator for mt4 that shows the hourly bars in histogram format for any pair. Any timeframe
input DateTime Date1; if (TimeDayOfYear(Date1) == TimeDayOfYear( TimeCurrent ())) { Print ( "It is the same day" ); } if ((TimeDayOfYear(Date1) - 1 day) == TimeDayOfYear( TimeCurrent ())){ { Print ( "It is 1 day before Today" ); } (TimeDayOfYear(Date1) -1 day) is causing error. What
Hi, I would like to know how the Relative Drawdown is calculated. I have googled and read other explanations, but it seems everybody has a different answer and opinion. I know that Absolute Drawdown is the maximum amount under the initial deposit we got in the simulation. Also, I have understand...
Hi, I have an array BuyClosePrice[i][x] which "x" dimension represents the symbol in this multi currency EA, and "i" dimension represents the position between that same symbol closed orders(through Buys). I set GVs by this code: GlobalVariableSet (( "BuyClosePrice[" + IntegerToString (i)+ "][" +
Hi guys and merry christmas. I'm finding indicator can show the stoploss, tp and price entry on chart. Do we have any indicator or EA like it on MT4. Thank so much . 
Sir,I\'ve a demo account but I cannotsell.Whenever I give a sell order it shows please verify operationparameters and try again later.I am novice please guide.
Hi, Would someone please tell me if there is available, for this MQL5 com website, any list of freelance service providers, preferably filtered on Rating score and/or quantity of done projects? Whatever I check in Freelance section, the name of developers are not given so I cannot contact them to
Hello, how can I put the source code of an indicator, inside the source code of an EA. The idea is to unify the two in a single code. can someone help me? thank you
My question : I worry hacker hack into my mt4 account and simply open big lot size trade causing huge loss causing all investors losing money. How to set to block the ip if people try 3 attempt login with wrong password on my mt4 account? My question : Even if I often change acc password, but the
Hi there, Hope you are doing well. I want to detect minimum variable among several variables and add 10 to it. How can I do this in the quickest way? For example: a=2, b=5, c=9, d=11; in the above example, I want to find "d" and make it d=21; Your advice is greatly appreciated
Developer from Hell. I requested a simple job on Freelance Market. After promising that what I wanted was a simple job, he proceeded to take 6 months before held completing the job. 3 months after the job completed the developer went back onto my website deleted the work. So now I am left with
Hi there, Hope you are doing well. Is it possible to backtest a Demo version EA of MQL Market? There is a 1 year result provided by the seller but 1 year is not enough for me. I need to backtest at least 4 years on real tick data before using. Your advice is appreciated
Hi all, Let's say I have an array which my EA put values for each element after closing each position. But when I restart my VPS, my EA put default values for each element of this array rather than recent values. Should I store the values in a file in OnDeinit function and recover them in OnInit
Hi all, Is it possible? Since GVs are mainly used to restore values from last run of our EA, How could it be possible to test this by backtest rather than running EA for several weeks? In other words, Is there any option to simulate the condition of let's say power outage, MT4 crash, etc. to test
Hi,i am a beginner in MQL4, i need help. I have a custom indicator, and inside i have a variable of type bool or double. I'm trying to get the value of a variable from custom indicator to EA, but I'm not able to. I've tried it through the iCusom feature, but I can't. I have no idea where to go. Both
Hello, can someone please tell me the code for a new high / Low of an indicator. For understanding see attached picture. Thank you so much
Please help. I have an indicator, and I want to program statistics for it, according to the history of its signals (Open signal - Close Signal). Statistics are only enough for me when it counts the total Pips. Can you advise me how to do it? Thanks... :)
Hi All! I have a live cent account at a broker. I have a smartphone with Android 6.0 and I installed MT4 on it. I would like to log in (with correct login number, correct password and server) but I get always that Authorization failed... Why? I uninstalled, reinstalled....nothing.... :S  Thank you...
Hi all. I am trying to calculate total Profit/Loss of the account but everything I have tried so far has only resulted in failure its a demo account with deposit : 100K Profit/Loss : (negative)-31009.63 No active trade Here is what I have attempted till now : AccountInfoDouble ( ACCOUNT_PROFIT );