Hi guys
I'm having trouble with getting my program to debug. I am still new to coding and have been following a Step-By-Step guide to study. I am at the point of debugging now and even though my meta editor is attached to a feed in the options, the run for the debug is blanked out. It doesn't...
I have a script that writes the values of technical indicators per candle, but I do not know how to get the script to run on a specified date range. If I attach the script to a chart it counts backwards the number of candles from the current date which is a limitation because I want to get the data...
Hi ;)
First let me introduce my idea a bit : I am trying to design a trading automat based on fondamentals news. So the trading decision is not the MQL work, this is the role of an external engine actualy hosted on an dedicated server. I used Mql for execution orders. On the paper this system look...
Hi,
As many of you would be aware, you need to carry out a manual data check and/or re-synchronisation of your pricing data before doing a CopyOpen(), CopyHigh() etc if you want to ensure you have the most recent data available. However, what's the situation with accessing Indicator data using...
Hi , I want to apply ALFA.mql EA on GBPUSD M1 chart , BRAVO.mql EA on GBPUSD M30 chart , and no EA on the GBPUSD M5, M15, etc... Can anyone explain me how can I do that? TIA
Hello everybody
So the question is: What happens when a new tick arrives while ontick event is still processing previous tick??
Is this tick event discarded??? or is there a tick queue to be processed so all ticks are definitely processed????
Thanks in advance
Juan
I know I can check the hours but is there a simple test that can be done to determine if the market is open or closed
Hello
I know that in order to have my template work with the strategy tester, I need to save a template with the same name as my EA. Fine.
So when I start a backtest I see my template applied in the tester window. Trouble with that is, in order to satisfy forward testing, I have put my MACD...
Trying to get this EA to work... new to MQL5. Basically, I'm trading on simple MA crossovers based on risk to account balance (USDEUR on 1 HR time frame). Any help is appreciated.... thanks!
//+------------------------------------------------------------------+//|...
Hello
This is probably a simple fix, but I've got a cold.
In my buy function I have
OrderSend(mrequest,mresult);
and then
if(mresult.retcode==10009 || mresult.retcode==10008) { // Request is completed or order placed Alert("SELL order has been successfully placed with...
All, My function has been failing due toorder fulfilment issues, an order may not be fulfilled in one transaction, asper attached screen shot, relevant code is attached below. In the above example, I should bereading a volume of 3.20 (0.5 + 2.70) and an out price of 1.61451(1.61451+1.61451/2). The...
I wonder if anyone has any really helpful tips on using the least amount of memory possible, or at least at freeing it again. I'm working on a really big multi-currency EA, using quite some indicators. But still this should not pose any problems for modern computers with 20GB of RAM or thelike....
Hi, is it possible to export an enumeration or a constant in a library? Thanks Mario
Hi, I would like to know, if and how it is possible to obtain trade results into an EAs code. What I want to do is to have a counter that adds up when the last trade closed in loss. Exemplary: i=1if (lasttradeclosednegative) i=i+1; E.g., after 5 losing trades i would be at 6. The parameter i will...
i have build 2 server and setup agent in it ,they have running a period of time . Today i got this message from one of the server: 2013.06.14 16:51:45 server1 pass 3540 tested with error "no memory in OnTick function (cannot get 4096 Kb, used 1947 Mb)" in 2390 ms ... (there are a lot of them) and...
How do I optimize EAs on metatrader 5? on my program, there is no optimizer bar on the strategy tester. I am using metatrader 5 build 787.
How to konw a postion is close by stoploss or takeproft ,or others reason in history?
I need some example code .
Thanks.
This article https://www.mql5.com/en/articles/236 has given me idea to try to connect Statistica NN to MT5. I don't have Neurosolutions, but one possible advantage of Statistica to NS is that it automatically sifts through various configurations of NN in order to find the most plausible solution....
Hi,
Is it possible to download the tick by tick data for a particular security in Excel?
Many Thanks,
Vinesh
Hello everybody,
I have just developed a symple EA which works at tick level. Functionality is very simple. It meassures price differences between a secuence o ticks (between 5 and 20 ticks, but parametrizable). When the price diference is big enough (3 pips, another parameter) the EA opens a...
Hi folks!
As a newbie I ran through the code from this awesome article https://www.mql5.com/en/articles/100
After adding some mods I came to a problem on which I can't find a solution.
My modification to the code was: Instead of using ADX volatility line with a threshold Adx_Min, I used ATR as a...
Hello,
I have bigproblems getting my two indicators together.
I made two customindicators, one is the Parabolic SAR, and the other is an averaging method, similarto MA. The Parabolic SAR Indicator looks like this one:
https://www.mql5.com/en/code/viewcode/43/10703/parabolicsar__3.mq5
I don’t...
Hi,
i spend a lot of time searching and testing ea's, i even started to learn mql5 to develop my own ea's.
But what i learned by now is that there is no reliable testing method for expert advisors - strategy tester does not behave like a real account and even the demo accounts i tried so far are...
hi i m from india this is my first post in this forum
i just need a EA for a simple strategy
BUY= EMA(CLOSE,5) > SMA (CLOSE,20) AND RSI (CLOSE,21) < 40
EXIT= RSI (CLOSE,21) > 80
SHORT= EMA(CLOSE,5) < SMA (CLOSE,20) AND RSI (CLOSE,21) > 60
EXIT= RSI (CLOSE,21) < 30
So pls if anybody...
Hello guys, probably a stupid question, but I did not find a way to get all the tick information for a specific timeframe. For example I want to get all the highs, lows, open and close of a given time frame say M5 from january 1, 2012 to december 31, 2012. Is that possible, to put it in a array or...
I am placing multiple trend lines on a chart via an EA using OBJ_TREND and I want the lines to have a text lablel.
I can get a text label by using the OBJPROP_TEXT but there is no control over where this goes it simply goes to the beginning of the trend line position.
I want the text label to...
Hello I just programmed my first Multi-Currency EA. Its working but there are 2 thing I don't know how to use. The first thing is to Inizialize the RSI indicator with a changeable Timeframe: Why cant I use the Array mPeriod[s] instead of PERIOD_H1? It gives me an compiling error "mPeriod'- can't...
Hello.
I'm trying to experiment with expert advisers and indicators.
One main problem I'm having is not being able to use any technical indicator functions when running my script in real time.
When I use TIF ( "Technical Indicator Functions") on strategy tester then it works just fine and I get...
Hello
I am trying to get Price_High everytick. I want to output Price High to Control Log.
My OnTick() function outputs string, "Hello" everytick.
How do i output Price High everytick?
Actually my final purpose is to get histgram of price difference, PRICE_OPEN - PRICE_CLOSE, monday to friday....
hello
The link http://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_ea_generate shows how to create an EA based on the standard library delivered together with the client terminal.
Please, someone could answer the question below!
There is some article in MQL5community that teaches how...
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.