Expert Advisors and Automated Trading - page 228

I`ve been able to make my EA work, it should trade haramis, but it`s not trading all of them, sometimes i get the INVALID PRICE error Could someone help me please? The code places a buystop and a sellstop order at the high and low of the harami void OnTick () { CopyRates ( Symbol (), Period
Hi, When I start folowing a signal it also opens the trades that are open which already excist for some time (sometimes months) and are in big losing position. Is it possible to start following a signal without copying the current open trades, so just accept new trades from then onwards?...
Hello again! Analyzing my EA I think that Direction function from ExpertSignal.mqh has a bug. At the begining it states that if the result from checked signals for long and short position for a specified Signal is 0.0 (Ex.: SignalAC.mqh) this should not be conted for votes number at var number. -...
Why can't I select the variables? See screenshot Thank you
Hello folks, I'm trading at a brazilian broker using VPS and sometimes I'm facing some delay (more than 5 seconds) to complete a deal. The ping is less than 1 ms. I don't know if the problem is with my EA, maybe some processing overload or if the problem is with the broker that I'm using. This
Hi! I need help placing a buy order and a sell order at the high and low of a candle, the EA already recognizes the candle pattern i want, but i dont know how to place the orders. I really need help. This is what i have so far #include <Trade\Trade.mqh> CTrade trade; MqlRates rates[]; int OnInit ()
Greetings I recently purchased an EA but when i try to migrate to VPS it says EA is an old version i should recompile and try again. I don't have the source files for this EA, How can i fix this? or which other option can i go for if i'd like to use my EA on a virtual server ? Please help! Regards
Hi to all. I'm trying to make an Expert. In this expert, I'm trying to send a picture to telegram bots . - But I don't know why it sometimes works and sometimes doesn't works. In other words, sometimes send me the correct pic and sometimes I just see "sending a photo" in Telegram Bot. And I didn't
Hello dear Traders! Who can help me with an script for one click trading, or something help me? I Trade index and Nasdaq with Us30 go in the same direction. If I am on the nasdaq and I click buy on the 'one click trade', I need in the same time, an script make click buy on the US in the same time
  impossible?  (5)
Hello.. does anyone knows about this.. possible or not.. to skip previous and wait for another condition to happen.. example if a D- cross above D+ .... condition one then D- crosses the level line .. condition two <open a sell order> the second time D- crosses the level again is ignored.. had to
Hello People In my recent project, I tried to call an indicator, which uses chart event and button objects, from EA using iCustom function. After EA is loaded, the indicators are also loaded as the indicators are compiled as the part of resource of EA. However, when I tried to click on the...
Hi, I am looking to test individual EA's on their own Demo Accounts and I have setup 3 Demo accounts in my MT4 and For eg. when I launch 1 EA on 1 Chart in account_01 and switch the account to Account_02, the same EA also gets Launched on Account_02. It seems like because the chart is open and I am
Hello, i have a problem that i can't set the text for an OBJ_EDIT when being within chart event.  The goal: When the edit field is clicked, i want to set a new text. This is not working. Please check the script.  How to accomplish this ? Thank you #property copyright "chinaski"#property version "1...
Hi everyone, I am experimenting with a scalping EA that I found online, but I am struggling to find the answers to some of my questions. Any help is much appreciated as I am pretty new to this side of trading and don't have much coding experience. A couple of the settings in this EA are
Hello first of all thank you for read my post. I wrote EA at mql5. How to insert indicator when running strategy tester? Another problem is i can not make strategy test result more faster (not use skip to button)like mql4. Scroll button touched limit but it does not reach more fast that i want
Can i upload an Expert advisor written in python using the metatrader 5 library here on the market ? since i can't find any other experts currently there in python And what should i do regarding backtesting? as strategy tester on the mt5 won't work for a python script ?! i have made my own
Hello, I've wrote expert advisor. What could be a reason that my EA works fine on every forex pair but doesn't make any trade on US30? I use IC markets
Why is it that any first order I open always has ticket number "2"? I open my orders with this (relevant) code: #include <Trade\Trade.mqh>CTrade trade;void onTick(){ trade.Sell(lotsize, Pair1, BidPair1, ShortSL, ShortTP, "1S"); trade.Buy(lotsize, Pair1, AskPair1, LongSL, LongtTP
Can you please write here, from your experience, what are your best precautions to add to an Expert Advisor code lines, so it will resume the best way, after restarting the metatrader4/computer? In other words: What are the scenarios you may think that could happen after EA starts working again, if
Is there a way to generate new strategies automatically using any methods in artificial intelligent? Any such articles would be greatly helpful. Reasons are that there are exponentially many indicators we can combine, but it is hard to get one with lots of trades while having good trading results.
  Indicators  (1)
Hello, I'm new to mql5 so please bear with me. I found an indicator here on codebase that I like but to call it into an ea I need to know the parameters . I don't know how to find that. Can someone help me? Here's the indicator: //+------------------------------------------------------------------+
  MAE and Drawdown  (2)
Hello, I am doing backtestingand I would like to know the maximum drawdown in pips for each of my trades. I was at first looking at the MAE, but it's not what I want because it's in USD (or currency of the account) and so, it depends on the lot size. (even when you set the backtest in pips) I would
Good morning, I am building a function to know if the last closed deal by an expert advisor was profitable. So I am iterating deals until finding one that matches the magic number, type and deal comment desired. However, I am having trouble using the HistorySelect() function, as I don't want to use...
Can you adjust lot size's for automated trades copied from experts on mt5 ? If yes, how would you go about doing so ? Thanks in advance, Cheers
Good Day guys, because I didn't find a definite answer (and maybe this answer changed based on the different MT5 versions) I am going to ask here: Is there such a thing as remote agents over the internet that I can assign to my strategy tester (not the MQL5 Cloud Network, I use a custom symbol). I
Sorry if this has been asked before but I'm finding it a bit difficult to search for. I have an expert that writes out a lot of information to CSV files. The problem is, if I forget to turn this off before I start optimization, it will write these CSV files for every thread that it uses. These then
I have just switched to an MT5 hedging account and it seems that the Strategy Tester either does not work correctly with it or I am doing something stupid.... A very simple EA that literally places a single pending order with a SL & TP it does nothing else at all, no other code, no indicators etc
I was curious to know whether there is any service which allows you to pay for servers with MT4 or MT5 on an hourly basis in order for running backtests? Ideally, these servers need to have 8 cores or more, to run an optimised backtest which can take days depending on the number of parameters and
Hello I am developing an EA to trade in the market. I am trying to figure out if there is a way to code into the EA so that when it is running, and suddenly the VPS failed and the EA was disconnected. Would I be able to run it again so that it would continue its task before restarting?? I hope I
[Deleted]
Good Afternoon, Anyone knows why I cannot use the structure below @OnInit() since it works perfectly on OnTick() ? The idea is to check handle management BEFORE receiving the 1st tick and realise it will not work due to lack of history. if ( CopyBuffer (i_handle, 0 , 0 , 6 ,i_buffer)!= 6 ) {