Expert Advisors and Automated Trading - page 345

Dear MQL5 community, First of all I'd like to say I'm not the kind of guy to randomly post a question every time I stumble upon an issue. As a matter of fact this is my first post here ever even though I've been using MQL5 for years and coded multiple EAs of varying complexity, some of which running...
Hi! I need to convert a .mql5 file into .mqh so that I can use it in the EA. Is it necessarily to convert the files? Can I just copy and paste it into a robot? Can you also direct me to the documentation to learn the conversion. Your help will be much appreciated. THANKS.
Hello, I would like to know if its possible to edit .mq4 file by script. The point is to permanently change default settings of EA because its to much time consuming work to do that for each EAs when I do massive loading on demo account. I would like to somehow load source code of mq4 file by script...
  EA demo  (2)
how to set datetime limitation on tester and real?
I'm currently coding my first binary ea which is based on price simply crossing above the upper and lower line of the Bollinger Bands. The problem I'm having is I want the order to executed as soon as the candle starts. So for example for a sell trade the previous candle cross the upper line and as...
Hello, does anyone have an idea  i want to selct positions and therefore i also check the Position_open_time with followng code datetime position_time = PositionGetInteger(POSITION_TIME); when i compile i get following message possible loss of data due to type conversion and i dont understand why....
  Global Variables  (1)
Hello, does anyone know, how to use global variables on MT5 strategy tester? amando
Hi, I have an EA which places limit/stop orders. The issue I am facing is that I see the filled orders showing up on the chart but not the placed limit/stop orders. On Metatrader 4 however I can see both. Is there any setting I should be looking at? Google did not help unfortunately. Zz
Hi Everyone! I am new to mql5,and I decided to write my own EA.Thing is that I'd like to add some custom tools to help me with trades,and I want them to be on some kind of multitab form. But I have no idea how to create forms,controls or where to even start.I shouldn't have problems with other
  Chartless EA  (2)
I want to build an EA that can look at the entire market and make trades without me having to open a trade window. Is this possible? I also have multiple demo accounts so I can test different aspects of the EA I want to build. For example. I want my EA to rely on data from a stochastics Indicator...
Im trying to get a comment of my last MFE and i cant figure out how to do it. Ive done this. Probably all wrong but, please help. double OpenPrice;    double High[];    ArraySetAsSeries(High,true);    CopyHigh(_Symbol,PERIOD_M1,TICK_FLAG_ASK,PRICE_OPEN,High);    OpenPrice= ArrayMaximum(High...
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...
  Ea arbitrage  (1)
Do someone know best arbitrage between broker
Good afternoon: I need to know if MT5 provides me these two values (Ask Volume and Bid Volume) Someone could tell me if I can get these values? If it is correct, which is explained in the manual MT5. Thank you very much. Hermo.
HFT project using supercomputer, 3 digit stable year return Tech task created, developer found, let's discuss strategy and get started
when you focus an OBJ_EDIT. Please have a look on this code: void OnChartEvent(const int id,                  const long &lparam,                  const double &dparam,                  const string &sparam)  {//---        switch(id)      {         case CHARTEVENT_KEYDOWN:...
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...
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...
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?
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?
[Deleted]
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...
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?
  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