Expert Advisors and Automated Trading - page 121

To post a new topic, please log in or register
Hi there,  I have gota question about Chart Events: Is itpossible to check out, when a chart window becomes the “on top” one / gets the focus? Already checked: Having e.g.the UK100 chart-window maximize on top, I call the e.g. EURUSD window to maximizeby klicking the tab below...
I have read many topics about connecting MT with Matlab via DLL,files or special library. Also many people try to use R to help Expert Advisors with forecasting and data analysis. I know there is possibility to make communication with MetaTrader via sockets, pipes or database. There are many methods...
During backtest of an EA, the closed lot size couldnot match opened lot size (always smaller than opened ones) for same transaction.See attached pic. Some lot sizes are matched, but some are not. Is it normal? Ifnot, why can this happen? How can I correct it?
Hello everyone! I'm trying to calculate rsi in my dll:         double rsi(int period, double *open, double *high, double *low, double *close,  int pos) {                double nsum = 0.0, psum = 0.0, dif;                for (int a = 1; a <= period; a++) {                        dif = close[(pos -...
Hi, i updated my PC from Win 8.1 to Win 10 yesterday, everything seems to work fine but in MT4 i have the problem, that all my EA which i bought from the marketplace aren´t recognized as bought anymore. They are listed in my marketplace / bought list, some have the "update" button some not, but in...
I am trying to get a total count of buy (open buy + buylimit + buystop) and sell (open sell + selllimit + sellstop) orders at a particular price level. The following function code seems to get the count correctly in some instances but shows a zero count in other cases. I am not able to figure out...
why? how come? the cpu % also seems 0% what are causes these? i test another EA , same time migration, the other EA worked HELP
Hi! I need help... I want to create are these 6 functions: TicketNumber = N[n] TicketNumber = M[m] TicketNumber = X[x] TicketNumber = Y[y] TicketNumber = V[v] TicketNumber = W[w] Such that: ALL Positions: Order = N[n] = M[m] 142370816 = N[0] = M[13] 142370788 = N[1] = M[12] 142370758...
Hi I have been trying toput together a simple alert that will do the following: Place an UP arrowunder a candle that has met a set of criteria (e.g., Close[1] - Open[1] &gt; 10points) Place a DOWN arrowabove a candle that has met a set of criteria (e.g., Open[1] - Close[1] &gt; 10points) The...
Is there a code to measure the candle's body similar to iHighest() or iLowest()? iBody() ? iBuy() - Code to place buy orders iSell() - Code to place sell orders
hi guys i'm a long term mt4 backtester from 2009 year (check siolibros.net if interested) i only use 99% quality backtest with tick data precision, using the well know dukascopy source (throught tickstory) to speed up multiple backtest on a single pc, i strongly suggest to use a ramdisk tool...
hello, im using mt4 with renko and want to run an ea on the renko live chart using https://www.mql5.com/de/code/11739 for renko chart and test an one liner ea on the renko chart void OnTick(){Print("test");} normally you get with every tick the test insert in your journal, but on renko...
Hello everyone! I want to know how functions, names in title, work so I could recode them on my c++ project and calculate them on my costom data from outside of the metatrader. Since metatrader don't allow me to change historic candle data  I felt like recreating some indicators what I'm using. Does...
I'm trying to get the half price value between 52 weeks high and 52 weeks low. But it's not coming out right, does anyone know what's wrong with this code? double ThisYearHigh = iHighest(NULL,1440,3,50,0); // Calculation for Highest price inside range.double ThisYearLow = iLowest(NULL,1440...
chrisdk2015
Hi, I have tried to find a solution to the way of calculating SMA of ATR in mql4. Obviously you can do this in the chart: apply a moving average to ATR but how to do this in mql? Thanks.
Hello, All is in the title. If anyone can explain, when closing a position, the difference between TRADE_ACTION_DEAL and TRADE_ACTION_CLOSE_BY. Apparently is it the same? In the Trade.mqh file, it is closing using TRADE_ACTION_DEAL. With my broker, in certain occasions, Trade.ClosePosition opened...
I'm developing an EA that sends a stack of orders. Each stack has an unique magic number and depending on my criteria I close all the deals in the stack. I want to store the bid and ask price for a magic number for later use. Unfortunately I cannot figure out how to do that. If I was doing this...
I have purchased an EA for some months now. If the seller releases an update to this EA (ie New Version), will it automatically apply to my running EA, or do I have to sacrifice one activation to have the update?
How can i calculate minimum stoploss pip when i use ordersend() function. Thanks
Hi, After the update 971 (MT4) yesterday I get a compiler error: "ex4 write error" Reinstalling or compiling on other location doesn't work The error is on all files old and new The compiling process looks normal with warnings and errors. Only after that I have no ex4 file. Any ideas?...
This has been bugging (no pun intended) me for some time. I created an EA that performs quite well on price spikes, but it sometimes cannot modify the order to set a trailing stop or move the stop order which is set to 30 pips in this example. I've tried other values and still run into the error...
EA place more trades is more profitable. EA place less trades is more profitable. I don&#39;t know
Hi, i start this discussion to invite any one who successful use any EA ( free or commercial), to exchange information or best practice sharing. can suggest own EA + own signal , the purpose of the discussion to help some trader to diversified the trading risk on few EA and continue improve on...
hi guy i tryto configure the script at page https://www.mql5.com/en/articles/1361 anyone know it??? i tryed example 1.2.3 server run , client to but tell me WINSOCK, WSAENETURNREACH (10051) but i am sure connection is good without firewall i saw the solution by Sergey Sartakov...
Hi everyone, just would like to know if the news suspend feature for EA works on Virtual Hosting On The MetaTrader 4. As the description only states that EA, indicators and signals are synchronized across. Would the new suspend setting and news website URL be synchronised as well? thanks!
Hello there, I purchased  an EA from the market and wanted to activate it on my VPS so that I do not have to keep my laptop on all the the time. I have tried migrating it using the synchronizing functionality on the MT4 platform which does not work. Says it has transferred all the experts and...
I'm trying to write a indicator that makes use of another's data. The indicator I want to query is a Heiken Ashi indicator and I want to determine what type of bar it's painting at any given point along the chart. Looking through the code of the H/A indicator, I can see how to determine this...
Hi Guys, I am subscribed a signal that has leverage of 500:1 but my trade account can only do 1:100, with the conversion that takes place am I only going to get 20% of the real profits? I have matched the signals $ account balance. Ideally I want to be doing 100% the same as the signal provider...
Is it possible to over-ride the MT4 signal settings so that I trade higher amounts than the default conversions? My Trading account is 1:100 leverage but signals are 1:500. I need to trade bigger lots so I can match the performance of the signals.
Hi all, I have 2 real account under same broker and i would like to use one of the real account to subscript a signal, and another real account to trade with EA. I plan to use the vps to run the MT4 platform to run it. Will it works? i found that when i login to the account which subscript signal...