Expert Advisors and Automated Trading - page 273

I don't know why but when I use file function of MT4 and MT5 with FILE_COMMON|FILE_TXT, the string conversion is broken like 㜳㔵〹㐵唺䑓偊㩙⸰㄰〰〰〰〺㍀.(the original string is 37559054:USDJPY:0.01000000:0@) When I use FILE_WRITE on MT5 and use FILE_READ on MT4, there was no problem. However, When I...
Hello all, I'm facing a strange error. The optimization is usually some passes successfully and then it starts returning only zero trade results, as follows: Scrolling down, all of the bellow tests return also 0. After the successful passes, I could see on the Journal that the errors are happening...
Hi all, Thank you for looking at this thread. I've got an EA which trades a variety of strategies simultaneously on the same chart. My question is this, is there a way that I could distinguish between live trades from different strategies from a single EA? The problem I'm having is say strategy 1
Hi. Guys I am a newbie on MT5. I bought one indicator. I have a question.  I want to trade automatically through indicator i bought. How do i have to for making a trading bot(EA)? Thanks. 
I have an trading strategy which when a set up is seen produces an alarm in form of beep from an alarm ea and on experts tab shows on which TF and which pair and whether to go long or short? Can an EA be made based on the alarm read on the experts tab of mt4 platform? regards Balaji
double H_LastOrderOpenPrice(int Type)  {   double price=0; ulong ticket =0;   HistorySelect(0,TimeCurrent()+1);   int orders=HistoryDealsTotal()-1;   for(int i=orders;i>=0;i--)     {      ticket = HistoryDealGetTicket(i);      if(ticket>0 && HistoryDealGetInteger(ticket,DEAL_TYPE)==Type &&...
Hi everyone, I am currently working on automating MetaTrader 4 via Docker. I'm quite satisfied, almost with what I've achieved so far. Starting instance, automatically logging in and running it with multiple Expert Advisors already works smoothly. It is also able to start a backtest for a single...
Hello developer's. I really want someone who able to developed my Renko EA. That EA have some awesome logic to place trade also have good exit logic there. Not a single indicator use under this EA. If anyone have awesome knowledge in Renko then most welcome for my upcoming project . Also you not
Hello all, I didn't see a SEARCH function on this particular forum, so please forgive me as this is probably something very trivial to the rest of you. I am literally hours old into coding for EA's and have thus far pieced together a SMA EA that gives me the ability to tell me to "BUY" or "SELL" in...
I can not get my strategy tester terminal to test a new EA strategy ever since the previous one went to zero dollars but somehow it got stuck and now all the Journal says is ( The robot is still working, waiting for some funds to appear...) Does anybody have any suggestions one what I should do. I...
Today when I withdrew some balance to another account I notices all the open trades were partially closed (via signal provider ). These were trades with a 0.21 lotsize and then they were closed with a 0.08 lotsize and what remained was 0.13 lots of that trade. Is this normal behaviour for a hedging
Please help with the following: I installed the last Windows 10 update yesterday and my MT4 from IG Spain, stopped working. This is a real account platform. Other platforms with demo accounts from IC Markets and Oanda, also stopped working after the update. When I try to reinstall mt4 from IG...
hello everybody, I want to use signal indicator in my EA, this indicator uses arrow in top or bottom of price for trend recognition, Please help me in using iCustom function in MQL4 for usisng this indicator. the indicator is attached.
I use Standard Library Generic Data Collection CSortedMap. To getthe values out of the object I like to use CopyTo with an array ofCKeyValuePair. //+------------------------------------------------------------------+//| Script                                             tryCopyTo.mq5...
Hi, I am looking for a answer regarding free signal. Say I published a free signal. is there any benefit like increase profile rating point? Thanks
I want to get the info for a symbol using: what is wrong with my code? it prints: 7.0 but it must print : price of the last deal which is: 3588 ENUM_SYMBOL_INFO_DOUBLE symbInfoDouble;SymbolInfoDouble(Symbol(),symbInfoDouble);double last=(symbInfoDouble.SYMBOL_LAST);Print (last);
I found an EA copy trade on the internet As far as I know, it can be copied from one MT4, to another MT4 via PostgreSQL server But I don't know how to install it to be able to use this EA Please help me - https://github.com/kr0st/trade_replicator -
Hello Guys. I found this EA that open pendening orders on news time. It's work very good. But, there is only one option to set it. I would like to have more 5 option news time that run at the same chart (same symbols).I tried to paste the same code in mql4, include etc. and didn't work. In mql4...
Hello friends! Peace for all! I'm new to forex and mql, can anybody help me? Which of these experts: https://www.mql5.com/en/code/mt4/experts Are they profitable and secure? And what would be the starting balance of $ 100? Which ones did you test and work? Thank you all! Hugs!
Hi everyone, is there a way in mql5 to convert double value = 0,056 into 5,6 and 0,00024 into 2,4? Thanks in advance!
Hello All, Good afternoon! I have the following piece of code:       if(setalert==1 && shift==0)          {                Alert(Symbol()," ",period," ",pattern);                            setalert=0;         } The alert works, but every time I open the same chart time period, the alert dialog pops...
So I have an EA that I purchased and it's doing pretty half assed as far as hitting target points. It is landing in profit about half the time and hitting SL the other half. But virtually every time, it runs about 20-30 pips into loss before coming back up. Is there a way to write a new EA that will...
I want to build an advisor that alert when price cross MA line. May abybody help about commands and/or FSB using
Hi With this we can see current orders and orders (positions) from history: https://www.mql5.com/en/docs/trading/historyordergetticket but I need to know which one are closed (MT5: __History View__) and wich are opened: MT5: __Trade View__ ?! BR J.
[Deleted]
Hi ! I'm having trouble to place a pending order. Everyprice is fine but i couldn't put it to work. i'm using this method: void EnviarOrdemVenda(double preco_entrada,double stop_loss,double take_profit){ MqlTradeRequest request={0};     ZeroMemory(request);   request...
If we created EAs for sellig and someone had bought them. Then, he used our EA to sell the signal for copy trade. Do we have any technique to protect this  situation?
hey there, I am trying to build an ea that trades multiple symbols from one chart. T hat works quite well, but unfortunately I still have to open each chart once to load the history. Is there an easy way to automatically load the history for multiple symbols when starting the ea? So if I open the
I cant find a visual mode in my expert advisor to back test. can anybody help, how can i get it.
The EA opens 1 buy and 1 sell order at the same time. This function is supposed to add up the sell and buy orders  and return net profit. The problem is, the code does seem  to sum both it only sums 1 order . What is the double Money()  {   double SumBuy=0;   double SumSell=0;   string   symbol;...