Expert Advisors and Automated Trading - page 350

Hi, im trying to code an EA, but the trade continue to open once the condition is meet.. i need some help.. so the trade only trigger per MA cross, until wait for next cross to trigger next trade.. any one who good in programming can help ?
I understand the tick data from different brokers are different. But the data get from tickdata downloader of StrategyQuant is same for all brokers. Can I use it for certain broker? Which broker is the tick data of StrateyQuant same as or from? Besides, how about tick story? The spreads...
Hi, any one can teach me or have any example how to write a script /EA to monitor MT4 terminal result ? I have few EA attached to one terminal.. the script serve as a monitoring medium to pause the MT4 for xxx hours/period if consecutive losses of xxx trade... any one can help or guide me ?
Hello, could you add an option that once a backtest was stopped, it can be continued from that point onwards when once clicks on "continue"? Thx
Hi there, I have got a question about Chart Events: Is it possible 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 maximize by klicking the tab below. Both windows
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
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...
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...
[Deleted]
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 with
  Updates to EAs  (3)
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...