Expert Advisors and Automated Trading - page 416

Hi, I've got an Expert Advisor that has been setup to cycle through symbols and it chews alot of memory. I've noticed this is when the symbols are loaded into and out of the Market Watch that is slowly creeps up. So it's not the chart cycling through existing items in the Market Watch but more when
Hi, I using this function to close all my position:    for (int i = OrdersTotal() - 1; i >= 0; i--) {      OrderSelect(i, SELECT_BY_POS, MODE_TRADES);      if (OrderSymbol() == Symbol()) {         if (OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber) {            if (OrderType() ==...
Is there a way in MT4 to remove or add the same EA across several charts at a time?  have 10 to 14 charts running on a VPS and want to find a way to remove all EAs on the charts at the same time or add an EA on all charts at once. Thank you. 
Hi, Downloading the last mt5, I noticed that the leverage used by my broker wasn't available. How to add it ? Is it possible ? I guess it is, since the version provided by my broker use it. Regedit ? Thanks
Is it possible to change the location of the temp folder for an agent? I'm using an expert adviser that spends a lot of time writing to disk (even with a 15k SAS drive). I'd like to be able to point the temp folders at a ramdisk.
This is the question. If I don't need to calculate the whole array, but only the last N elements. I don't quite understand the logic of calculating these functions when limiting. I have a timeseries array (one of the indicator buffers), if I leave the number of elements equal to 0, no questions
  Indicate a new bar  (39   1 2 3 4)
I wounder how to indicate when a new bar sees the light of day. Primarily I worry about performance. On some Symbols I saw ticks every 20 ms. Not so much time to react. One idea is rates.tick_volume Mqlrates rates[1]; OnInit() { if(CopyRates(_Symbol,_Period,0,1,rates) < 1)
Hi All, Could anybody give me an idea about how to detect the last running transaction order status whether it is still running or has been closed(because it reach the TP or SL) ? where will i start from to reach this result ? Many thanks in advance. my apologize for my bad english....
Hello all, If I purchase an EA on this website, can I use this to set up a (paid) signal on this website aswell? In other words, I buy an EA and then re-sell the signal at a monthly subscription. I already have permission of the seller of the EA, but he says that the rules may not allow this...
  Error fix help  (1)
Hello all, I've been coding for a few weeks now and i am a BIG novice in it. I tried using GlobalVariableGet() to try and code the i panel trend indicator into my EA but i think i messed up some where but i can't seem to find out where. For the reversal fractals, i've written the codes and it shows...
Hi all, i have a problem just with my very simple script int ticket = OrderSend(..); that i put it in OnTick() function This script works well when i run it on Strategy Tester, and that int ticket int ticket returns the ticket number when i print it (this means it works right?), but This script...
How do I draw MACD in the sub windows from code (MQL4)? I know I can remove the indicator by calling ChartIndicatorDelete. But how do I call it from code
Hello All, I have a few questions about getting the best performance from strategy tester, and making the best use of my computers CPU's. I know this has been discussed many times on here as I have been reading discussions from as far back as 2009/2010. But We are...
Hi, Is there something I can download in order to test out the demos ? I get an error message ( see clip )
Hello Anyone knows if there is a way get a demo account or something with a "fake demo currency" or something that works 24/7. I'm trying to develop an EA that communicate with another platform and I need similar to live environment when developing. Or maby some other way to do this, a local...
Hi I am looking for ways to speed up optimizations for my MT5 EA's. MQL cloud used up all the $20 I deposited for less that 10% of the optimization test for just one of my EA's. Are there 3rd party cloud computing cheaper options out there? Would installing extra RAMs etc... be helpful. I have a...
Hi guys I am writing an indicator where the user defines which currencies to be used extern string Currency1="EURUSD"; extern string Currency2="GBPUSD"; extern string Currency3="USDCHF"; . . . extern string Currency13="EURNZD"; extern string
Hi, I'm willing to run two experts on two different terminals with two different accounts. I wonder if there is a convenient way to pass variables fastly between the terminals other than writing on disc? I think global variables are passing between experts inside the terminal. What is your...
int  TimeDaylightSavings();   can anyone tell me if this function is accurate in the sense it really follows the actual date when dayight saving is active or not? 
Hi Is it possible within MQL4/5 to use a chart time-frame other than the default ones? For example if I wished to calculated an MACD using a 30-second time-frame? Many thanks, James
Looking for 2 Scripts: Drop Pending Buy - Opens 3 Pending Buy Position with 3 TP and 3 SLDrop Pending Sell - Opens 3 Pending Sell Position with 3 TP and 3 SLAny help appreciated
I'm aware that extern&nbsp;value can be changed unlike input value of an EA. is there any way to update change value in EA's input panel?&nbsp;&nbsp;
Hello EA developers, Do you have some workaround for sunday candles, or rather skip brokers with sunday bars? Thank You!
  Winsock Error  (1)
someone now how can i create an socket on MQL5? i'm trying use the "Winsock" but it are having error when i'll copile... my machine is x64 and i'm trying make i it using MetaMditor 5.00 build 1325 ... if you now how can i make it, help me, thanks!
If i use AccountFreeMargin() AccountFreeMarginCheck(...) for the next order the output is 100 370 How can it be higher after opening an order? Account Balance is 100 €. So the 100 from FreeMargin is ok but i don't understand the other function.
Hi All, I would like to know your experiences about AutoTrading + Signal + Manual Trade and also, if you can help me to solve my issue. I'm currently having 2 demo accounts on XM.com broker, I'm testing EAs and Signals with Meta Trader 4. Also, since I'm training/learning as well, I do some manual...
Many EA that we can develop are, undoubtedly, very high performance in testing Especially when we talk about strategies developed with input orders "stop-orders" .. Obviously we know that within the other software have the opportunity to also test with a hypothetical slippage and despite this...
void OnTradeTransaction(const MqlTradeTransaction&amp; trans, const MqlTradeRequest&amp; request, const MqlTradeResult&amp; result)&nbsp;&nbsp;{//--- string url; string time=TimeToString(TimeCurrent()); string cookie=NULL,headers;...
Hello everyone! I was looking at the function and its example code: https://docs.mql4.com/series/copyrates void OnStart()  {//---   MqlRates rates[];   ArraySetAsSeries(rates,true);   int copied=CopyRates(Symbol(),0,0,100,rates);   if(copied>0)     {      Print("Bars copied: "+copied);      string...