Expert Advisors and Automated Trading - page 420

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 value can be changed unlike input value of an EA. is there any way to update change value in EA's input panel?  
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& trans, const MqlTradeRequest& request, const MqlTradeResult& result)  {//--- 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...
Hello everyone! I want to get a CopyRate's start_pos for date's 2008.25.04 day's first candle. How could I do it? Thank you!
I just subscribed to a signal for 20 $ / month with my demo account to test the setup. Works fine, slippage is OK, trades get executed. Therefore I want to switch to a real account (at the same broker). Do I need to buy the signal again, or do I have any chance to change trade account from demo to...
Hey guys, hope you could help me here. Been editing but the EA won't close/delete the Limit/Stop order. could anyone help me check what is wrong? thank you int start() { if ( AccountProfit ()>= My_Money_Profit_Target) { for (i= OrdersTotal ()- 1 ;i>= 0 ;i--) { OrderSelect (i
Hello! I have been an MQL4 developer for well over a year now and have come across around 200 different coding projects. I usually use the MT4 strategy tester to quickly see how the EA's I develop react to market movement and do they follow the rules I have set out for them. I have now recently...
[Deleted]
Hi, i need disable strategy in weekends why this code doesn't work on mt4 in fxpro (I set it on timer and ontick) tooday is Saturday but strategy works ?! if ( DayOfWeek () >= 1 && DayOfWeek () <= 5 ){ // working code stop in weekends } And why create table in mysql doesn't work in mt4 (fxpro) but
i programmed an expert that work correctly in tester in certain time in my laptop but when i send my ex4 or mql4 code to another pc it wont work in same time , any budy have any idea can help me ?
Hello all, I'm trying to program an expert advisor with some sample EA's I found here: https://www.mql5.com/en/articles/1404. The expert advisor should work similar like the free EA called "Digger". However, I want a different entry and I want to use it on different symbols. Therefore I'm trying to...
  condition  (1)
Hi, there are problems to put in the same condition the selection order and the magic number of the same order thus selected? Thanks. if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) && OrderMagicNumber()==mnumber)
Hi i try to publish an EA on the market. I filled out the formular and sent it to moderators check . Til yesterday its status was waiting for moderator check and today its status is draft? Is that normal? There are no comments that i have to change something
  itime question  (2)
hi all, for iTime(NULL,0,0), this is the time of the candle open right? like 5m chart will be 19:00 19:05, etc
Hello, How I can check the Existence of EA file(mq4 or ex4 ) from Indicator or Script or another EA or anything else than Same EA. I'm C urrently Checking as FileIsExist(" \\Experts\\Sample.mq4" )
hello I have rented a vps from mql5 three days ago with latency 1.08ms and only signal synchronization. my signal provider have made many orders since and closed them but it haven't been copied in my plateform. why? I have selected all four options in signal tab. can anyone help me?
hi all, i am a bit confused here if i use ontick, 1) is iClose (NULL,NULL,0) the closing price at the end of current bar or tick price? 2) is Close[0] the tick price? Thanks
Hello all, I'm extremely new to this. My apologies in advance for my blunders. :) So i was able to write an EA code using online articles and 2 Expert Advisors (one was courtesy of Satyam who developed an EA for me and TradersGift which i got online). I think that I've got everything right with only