Expert Advisors and Automated Trading - page 20

To post a new topic, please log in or register
I use playonmac on imac to run MT4 but when i try to downloud any indicator from MQL5 THE browser cant connect to MT4!!! please help
Hi everybody, I've read the MQL5 documentation about FileOpen function and in the examples it's always specified a relative path (starting from c:\Program Files\MetaTrader 5 Terminal\Tester\Agent-127.0.0.1-3000\MQL5\Files\ folder). Do you know if it is possible to specify an absolute file path and...
Hi  i m newbie on EA development  ok ; fo pending orders my broker allow  expiration duration    after 250 min in minimum; On my EA i want to set the pending order if wasn't executed in next 20min it will be removed ;    how can i do that  thank you
Hi everyone,  Please, I need someone to show me how to configure this indicator so that I can receive alerts on my mobile. Anyone willing to help should check the attached file. 
I'm getting this error with this piece of code: double StopLoss=NormalizeDouble(OrderGetDouble(ORDER_PRICE_OPEN)-(OrderGetDouble(ORDER_TP)-OrderGetDouble(ORDER_PRICE_OPEN))*(AutoStopLoss/100),Digits); But I don't see the mistake, anyone can help?
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...
I am trying to write an expert advicer but I am stuck with a simple problem: How do I get the type ( buy or sell) and price for the last executed order in the trading history? Thanks in advance.
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
Hi everyone :), I've currently got a freelancer working on an EA for myself and there's one strange bug that I can recreate but they are unable to. Basically when changing variables in the 'input' tab on the strategy tester I find that they get automatically reset if I tab out of the 'input' tab and...
Hi, I've written an indicator that works pretty well when I need to trade and want to convert it to an EA. Clearly, the indicator is using the OnCalculate event and the EA the OnTick event.  However, when I convert my indicator to an EA it doesn't work as I the original indicator does and I...
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...
Hi how can i get the time of 10th candle later on H1 timeframe?
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...
Hi, For simplicity, I have inserted only the basic code of an EA below. I believe it is enough and easier to understand my question. void OnTick()   {   CountBuyOrders(); //gets the BuyOrders   CountSellOrders(); //gets the SellOrders   if(BuyOrders+SellOrders==0) //check if there are any...
Guys, I am trying to code an indicator for D1 charts, which uses M1 price/volume/spread/etc. data to calculate the indicator daily values. I use this code to copy rates: MqlRates       RatesM1[],RatesD1[];datetime       first_bar_date=SeriesInfoInteger(_Symbol,PERIOD_M1...
Metatrader 5 succeeds at loading tick data but not bar data. Source is FXCM historical data. I can't load more then ~7000 bars into the 'Import Bars' menu without it failing, no error message either, then when i click 'OK' it fails to keep any of the data. :( Same with tick data, i can load it into...
Hello friends How I get 99.9% modelling quality on MT4 build 950 ???
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...
Is there an EA out there that lets you scale out by triggering an automatic partial close off your position at a particular price level? The closest I know of is Smart Trader Tools Mini Terminal but you have to manually execute the close. Cheers
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...
Somebody asked me to make an EA which can use the signals coming from an indicator. The problem is Indicator doesn't send any useful data as out put so I can't use iCustom. And it also doesn't draw anything on the chart so I can not work by its objects too. the only thing we have is the signals of...
Hi everybody, I need to get the current datetime in a string, possibly in a SQL format (e.g. 2019-04-07 15:37:02). I've tried three methods of MQL5 standard library:  TimeCurrent, TimeGMT, TimeLocal but during backtest they all return the same date that is not the actual date. I need to get the...
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...