Optimization - Is it different logic or does it just rank results = order by ie. expert properties > Optimized parameter > Balance or Profit Factor or Expected Payoff or Maximal drawdown or drawdown percent
[Deleted]
Hi ! Is there a way to check - other than manually browse through the report - which was the period that contains the maximal drawdown ? It would be even better to get a list of the drawdowns, with dates ( maximal, second maximal, third, etc )
[Deleted]
I am working with an EA, using Smoothed Fisher Transform of RSI, developed by Vervoort. In the calculation I have met a problem, which I maybe has looked into so long that I am completely blinded. In the calculation of Rainbow Indicator (as part of the Fisher Transform), the following problem
[Deleted]
Is there any way to get the full absolute path of the expert folder using MLQ4? Alert(EAAbsolutePath());
Hi all, This ea have a strategy that open an opposite order at a precise distance. The issue is that it opens the order but many times with a different distance that it should. Below is the code that ope the opposite order, could anyone show me where I'm wrong ? Thanks in advance for any support...
[Deleted]
Hi all, I'm backtesting a grid strategy EA, and am running into error 148 problems - too many trades. Is there a setting I need to change, or is this a memory limitation? My broker allows unlimited live and demo trades, and my demo testing has easily exceeded the number of trades I was planning...
How to get USDINR price (Spot Price) for calculation in chart where the symbol USDINR is not available in Symbol() list? Or How to get USDINR spot price from other net source? Thanks in advance....
Hi I am testing an EA via Metatrader 4 and I am hosting Metatrader 4 via Amazon Ec2 Cloud Computing for constant connection. I have noticed that the following seems to disable itself after a few hours (or at least it has today and also on Friday): Tools > Options > Expert Advisors > Enable Expert...
[Deleted]
Is it possible to get market news data for a given historic period from MetaTrader? Or is it possible to download these data somewhere else?
[Deleted]
I am coding a grid trading EA. as I need to replenish my pending orders. I was thinking of using OrderDelete to remove all pending orders then use a for loop and OrderSend to set them up again. This is one a tick by tick timeframe. Just wondering, at which part of the code does the tick by tick...
hi, I have a problem. I wish to fix this parameter High[1]-Low[1] for obtain a steady trailing step, but obviously this code, as soon as there is new candle is updated. I'd like to create a simple function for returns steady distance between (start high candle) - (star low candle) to insert...
[Deleted]
Hi guys, i like to draw a rectangle for the last 5 Bars. Die High of the Rectangle is the Highest High of these Bars and the Low is die lowest Low. How can i manage this? I'm not sure how to set the high and low. thanks guys
Hi, I'm stuck trying to display a particular value according to the currnt chart's symbol using Comment. Basically if I load this indicator up in GBPUSD, it would display the 1 value at the top left, if I had EURUSD chart open, it would display 2, etc. It's not the most efficient code but here is...
Need some support with code. I want to find number of all buy orders in history for start with. Have been looking for number of samples but they do not make sense for me as I am still in learning curve. Below is my sample for finding latest orders with magic number. Want to add here code for...
I can not get Alert or PlaySound working when running my EA code in tester. Print command does work in Journal, but with lag and I prefer popup alert to troubleshoot my code. Any suggestion what should I try? if (a1> 1 ) //fix: when there are more
Hi all, SPAM REMOVED
Hi i ve got the following code of a custom indicator. What s doing is plotting the Close of the current bar timeframe as an indicator on a separate window for the first 180 bars only. The problem is that for some reason - cant figure out - there is an image of the buffer after a while like the...
What is the best way to check if an order is currently selected? This is particularly useful for many functions which work with orders so that the current order selection is remembered when the function starts and is restored when the function finishes, so that the order selection does not go astray
[Deleted]
Hi, I am biginer and need help about my current open deal position, Now i have open 6 deal, 3 deal is BUY side and 3 deal is SELL side againest. All are EUR/USD and USD/EUR. I have invest 100$ only, now I got -230$ Open P/L balance and achieve Total balance 250$ in between my equity is very less...
Dear all, I have actively started to develop an EA to complement my discretionary trading. While all the great resources provided by MetaQuotes and this great community of traders have aided me greatly, I have come to a challenge I could not overcome. The backtesting of my EA provides solid...
I start learning code MQl4. please help me . How to use OrderSend for BUY, set it... thanks a lot
[Deleted]
I would like to increase the thickness of the Boliner Band lines, aswell as the MACD lines, how can I do It ??? Please help
[Deleted]
hi there, im zero bout EA and coding, im tired to trading manually..my friends advise me to learn bout reprogramming code...so i also dont know were suppose i start with..can u guys help me..
[Deleted]
I'm new to this and I can't figure out why a specific hour is being checked more than one time. I added this: if (TimeHour(Time[2]) == 15 && TimeMinute(Time[2]) == 45) Print("Test!"); I set the period to "M15" and the "Test!" statement is printed more than one time. Why is this happening
so, I place the MA on the 1H. I put 8 for period and 2 for shift. what exactly does it do?
Hi, I'm working on this indicator, no line, no object, it just draws some HISTOGRAMs. But when I modify the code then re-compile, the histograms disappear. With "data window" I can see data is OK, but just doesn't show on chart. So I have to delete this indicator from chart and drag&drop again, to...
[Deleted]
Hi, I have an indicator that draws the Highest High and Lowest Low levels of the predetermined times. It draws trendlines and give names bs and ss... But it adds the number of days to them like 0,1,2,3... It takes the data from extern int day_number = 3; The lines becomes bs0,ss1 , bs1, ss1......
1/ i want to get the begin time of my localcation ,may i write code like this ? int begintime = TimeLocal() -TimeHour(TimeLocal() )*3600-60 * TimeMinute(TimeLocal() ) - TimeSeconds(TimeLocal() ); 2/ D'2013.02.24 00:11' refers mt4 severtime or my local time ? thanks
[Deleted]
Hi, First I apologize if my question was ever asked in this forum and I would be very grateful if you can point me to the answer. OK, here is the question: How can I get the indicator value from other timeframe? What I want is: no matter which TF I'm in (either M15, M30, H1 or other), I want the EA...
[Deleted]
x[i] = OrderSend(NULL,OP_BUYSTOP, lots, Ask, 0, iLow(NULL, PERIOD_M5,1), 1000,NULL,CLR_NONE); i++; for(j=0; j < i; j++) OrderModify(x[j], Ask + 2*iATR(NULL,PERIOD_M5,14,NULL), Ask-2*iATR(NULL,PERIOD_M5,14,NULL),0, NULL, CLR_NONE); I use an array to store the...

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.