Download MetaTrader 5

Expert Advisors and Automated Trading

To post a new topic, please log in or register
I have no knowledge of coding yet while compiling an ea i managed to reduce the 15 errors to just 2, both are the same '' 'if' - open parenthesis expected '' and when i click on this error it leads me to this point in the code which i cannot rectify void tick22() {if {tick22==true}...
Hello! I have a demo account and in my client Trade tab I can see that I have 10000 Balance, Equity, and Free margin but when I call AccountInfoDouble(ACCOUNT_BALANCE) in my Expert Advisor I get returned 0, this also happens with Equity and Free Margin. Might this be because this is a demo account...
HFT project using supercomputer, 3 digit stable year return Tech task created, developer found, let's discuss strategy and get started
Hey, I have an EA that gets the Stack Overflow error if I don't put a Sleep of something like 1 second. I do have a loop that calls itself (something like an infinite loop) but I need to find a way to do this and not get the Stack Overflow error. The infine loop is something like this: My EA...
Hi, I was "playing" with hedging to explore possibilities : it's very tempting, since it allows purely & simply to recover from a bad position taken.  The risk of these strategies is well-known : lot management. Comes ALWAYS a point, where the margin is stressed, the logical solution being to accept...
Hi  I'm getting the "Invalid Expiration" message - not on my machine but on a users machine.... I did a search but couldn't find anything for this specific case. We first saw the issue last week when he was submitting Time In Force to GTC on limit & stop orders. He's in Brazil and it rejected every...
hi guys ... i need help on my EA .... whenever i load my custom made EA into juz 4 charts.. it shows this error .. "CApp Dialog: Find Subwindow Error".... and this message keeps repeatedly shown on the experts logs continuously.... can  anyone clear this for me as to y this is being shown...?
Hello, i try to find out how to use iCustom with MQL5, for Mql4 there was ist easy, but here i always get an error i use following code double Renko[];int   RenkoHandle=0;double Ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK);double Bid = SymbolInfoDouble(_Symbol...
I have a VPS with Windows server 2008, metatrader5 and an EA running in my real account. Sometimes, it happens I found in the journal some reconnection event, not bad. The issue is this. Once or twice per week, while reconnecting it receives the error invalid account: 2017.12.16 20:23:31...
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...
Most EA downloaded from the code base, I can get the total number of positions by encoding, like this, void CalculatePositions(int &count_buys,int &count_sells)  {   count_buys=0.0;   count_sells=0.0;   for(int i=PositionsTotal()-1;i>=0;i--)      if(m_position.SelectByIndex(i)) // selects the...
When I test my Ea,it show " CTrade::OrderSend: market sell 1.06 EURUSD [invalid volume]" ,how to solve it?
thank you guys I want to compare the value of the main line and the signal line in MQL5. i was doing like this in MQL4:-      if((iStochastic(NULL,0,5,3,3,MODE_SMA,1,MODE_MAIN,1)<iStochastic(NULL,0,5,3,3,MODE_SMA,1,MODE_SIGNAL,1))&&(iStochastic(NULL,0,5,3,3,MODE_SMA,1,MODE_MAIN,0)>iStochastic(NULL,0...
Hello, I'm trying to make the trader able to set MA type on an EA, I tried this coding: enum MA_Method {   Simple = 0,   Exponential = 1,   Smoothed = 2,   LinearWeighted = 3};input MA_Method Mode = Simple;double SlowMA = 200;//...//Some Coding//...double SlowMA = iMA(Symbol(),Period(),SlowMA,0,Mode...
Hello, I'd like to know if there's a way to get the information from the options board (get it from code). I'd like to get information like the option strike and volatility. Thanks Option board image (https://www.mql5.com/en/forum/153649)
My EA creates, writes to, and reads from .csv files while it's running.  One issue I noticed was that if I open the .csv in Excel to read it, my EA will not be able to open it and write to it. Would it make sense to use FileOpen during initialization, and keep the .csv files open (and then close in...
Am confused with this  OrderCloseBy function, i thought it only closes one order by another but it is closing both orders at once.
Hi there, I would be glad if someone could me  help out: I want to organize the common/file directory into input and output subfolders, in order to read files there accordingly by my EAs. The manual says "The name of the file can contain subfolders". But it seems that I am missing something there....
  Hjälp (3)
Hej! Vilken sida ska jag vara på om jag ska komma gång och autotrada, och fungerar det inte på helger?
I have an algorithm to develop an EA. The goal is to develop an EA that will never get a margin call, but will always close in profit or with zero loss like grid Martingales do. My problem is I can't afford Freelancers to fully develop it and I would like to have it done before walking the long path...
  click button (10)
Hello, i want to provide a click button in my expert which behaviour is the same as any normal button. So, when mouse is over button and left mouse button pressed, the button should change into pressed state. Unfortunately, i get no such LBUTTON_DOWN event. The next useful event for this...
Hi All .. Firstly, I realise that it's not allowed to discuss Market Place products in the forum, and so I hope it's OK to ask some questions about a product that is not listed in the market yet. I have been running my EA for some time, and it has never crossed my mind to sell it. To cut a long...
Does anyone have a custom Messagebox class with a timeout they'd be willing to share?
hello everyone I was looking for an ea with the technique of the candle idnr4 but I can not find anything, I find it hard to think that anyone has done an ea about this method, being very profitable someone has some links to share by chance for mt4 please?
What it is: Below, you'll find my Swiss Army EA. I've designed it so that it can manage orders in your MT4 terminal using a large variety of methods. Features includes breakevens, trailing stops, setting/removing for takeprofits and stoplosses, and many close-out conditions; you also have ability...
  Hma Ea (164   1 2 3 4 5 ... 16 17)
Hi, I've developed simple EA for HullMA's lovers. Also I've optimized this EA for period 2006.01.01 - 2007.01.01 (MQ Server). Kind regards, Igor ----------------- Edited by Newdigital. - HMA_v2 indicator is here. - HMA_Expert_v1 EA: post #1 of this thread. - HMAExpert_v1.1 together with...
Hi, To gather ticks infos, I use the code provided by mql5 with the strategy tester on EURUSD, M1, quality 100% : /--- the array that receives ticks   MqlTick tick_array[];//--- requesting ticks   int copied=CopyTicks(_Symbol,tick_array,COPY_TICKS_ALL,0,ticks);//--- if ticks...
Is there any way to know if the EA is running on Strategy Tester? My EA uses the symbolInfo.MarginMaintenance() to make some equations to trade but these values are zero in strategy tester. To work around this problem, I created a parameter to set the margin (to use in strategy tester only) and I...
  Price_Channel_v6-ea (86   1 2 3 4 5 ... 8 9)
Hello. Today I come to propose a new method to you which proved reliable manually. I know that newdigital uses this indicator on its method, but today the approach is different . Here several weeks that one of my best friends trade with this method than it improved much and who is advantageous still...
simple HFT algorithm and research on arbitrage soft