Expert Advisors and Automated Trading - page 8

To post a new topic, please log in or register
Hello when I execute the EA, the buy order is created but the error 130 message(invalid stop loss)  is displayed for the function ordermodify ()? I used ordermodify() function beceause in my broker I can't created makret or pending order with stop loss and takeprofit levels....
So I'm trying to turn an indicator I wrote into an EA. I coded the logic into the indicator so the buffers draw a line where my SLs should be, as well as drawing arrows where my entries and exits are. How would i phrase it using iCustom so that it places my trades based on those buffers? Would it...
Dear All, Can you please confirm if we can create EA which will be used for Meta 5 but indicator itself is for Meta 4?  Regards, 
Hello, I need a macro or a programme which can export 1000 last bars for a given list of currency pairs and time  frames (eg EURUSD, USDCAD,USDCHF AND GBPCAD) - DAILY AND HOURLY TIMEFRAMES, I need this as fast as possible - can you help me?? Dave
A simple math functionlike this brings a totally wrong result, and this served me a bug in an EA which I was searching for months!!! MT5 Build 2085, but I am very sure this is the same in earlier versions, cause this is also the same with C# ... unbelievable but true.  void SimpleMath() {...
Hi guys, I am using an EA to go through a few symbols in a list and also a few time frames, it worked good ,but lately i get a few errors for invalid request. I am using the CTrade library to open and manage the trades, and considering i dont work with the request struct directly i dont understand...
Hi, is there a way to make iBarShift to return indexes from left to right? I like to work with Arrays where 0 means the oldest bar, butiBarShift return it the other way round. Test case in OnCalculate:   for(int bar_number=prev_calculated; bar_number<rates_total;       bar_number++)...
Hello everybody, I'm searching for a good advise from experienced seller. I'd like to offer my EA  using MQL5 market...however I can't pass automatic test which is obligatory. While testing I receive message "test on EURUSD,H1 tester takes too long time" I assume that the reason of that are bad...
i don't know programming. I am giving i'e EA open first lot 0.01 2nd lot 0.02 third 0.04 4th 0.08 every double from last, i need every thing is fine only all lots open same size means if i set 0.01 lot second lot 0.01 third 0.01 4th 0.01 i am copying here if any expert please help me and modify i...
Hello everyone. I'm new to this forum and looking for a Programmer that specializes in Mql4. So far I have hired 2 programmers for this EA. The first quit, the second made an EA the does n't work. I did n't think this was that complex. I need an EA that enters trades when I'm asleep or at work, and...
m_LabelInfo is object of CChartObjectLabel    m_LabelInfo.Color(clrRed);   m_LabelInfo.FontSize(28);   m_LabelInfo.Description("Information");   Print(m_LabelInfo.X_Size()); // The value is 0, why? m_LabelInfo.X_Size() will be set to zero(0) after calling Description(). I even tried to call...
Hi friend, I am new to Mt5 coding. I need help to add a functionalityto this EA.  when signal is generated it opens new position at the next tick price. // I do not want this  It should open position only at the opening on next candle. Here is the code is have #include <Trade\Trade.mqh>#include...
I am new to mql4 programming. I want want to understand some fundamental. I have this testing EA whose code is displayed below. How do I stop it from multiple entry. Like when the condition for buy is true, it enters buy on every tick, the same with sell. My question is how to i stop it from...
Hello, I have the following problem: In my expert advisor, I sometimes have to call "CopyBuffer" on every tick. This works perfectly in combination with any of the standard indicator handles. However, when applying iCustom to the indicator handle of CopyBuffer, a new indicator window is being...
Hi,  I'm trying to code my strategy into my indicator so it prints buy/sell arrows that I can easily convert into an EA, however I'm having some troubles coding the logic for it. Here's what I have coded for it so far: if (LS) {    x = 1;   } if (x==1 && mColor==Green) {    x =2; } if (x==2) {...
Guys please, so urgent I need a code that delete pending orders when an order is executed
Hi guys, I recently asked a developer if they can automate a strategy that I came up with using some indicators from the MT4 market. However they said that it is not possible because in order to execute orders based on an indicator changing color (e.g buy signal to sell signal) there is no actual...
Dear All, Any one knows, how to run EA on 2 min time frame? If you are running EA on 2 min then please share it with me.  Regards, 
We have used the WebRequest function to send data to the server side and everything has been running normally for the previous 2 years. This latest version is present, and stops all Expert Advisor activities at VPS. At the end of 2018. During this year we have changed all of our EAs...
hello, I am working on a EA  by using mql5 wizard generator. I did not really understand how the signal mechanism module and intra time filter works. I need to open trades only in particular hours of the day. So as I understood bitmap for bad hours of the day I have to convert from binary to decimal...
Hello guys, I'm new to coding EA. I wanna create an EA that can buy when all three moving averages are crossed over to the upside and the distance between the FastMA (21 EMA) and SlowMA(50EMA) is at least 50 pips. The opposite is the same for selling condition. Another problem is that how do I code...
for ( int TrC = OrdersTotal() - 1; TrC >= 0; TrC -- )   {        if ( !OrderSelect( TrC, SELECT_BY_POS,MODE_TRADES ) ) { Print( "OrderSelect Error #:", GetLastError());  continue;  }      if ( OrderSymbol() != symb || OrderMagicNumber() != mgn ) continue;       //symb is desired symbol and mgn is...
Hi,  Maybe someone have met such a problem before. After I start my EA it places both pending orders, but doesn't print anything. And it doesn't give any error. Just like it didn't see those two "if - else" operators below orders. Both orders are places correctly, so everything declared inside...
Hi guys, I am totally new to programming and I am getting crazy of this error. It always gives me Error 0 with "ticket_1". I have no freaking idea whyif(ticket_0==0 || ticket_1==0 || ticket_2==0){            SL_0 = Ask - 200*_Point;            TP_0 = Ask + 100*_Point;            ticket_0 =...
hi guys i'm a professional coder of mql4/5 EAs from several years i'm specialized in backtest optimization on custom data on mt5, using most advanced optimization tecniques, using special formula for custom optimization criterion working primary on backtest optimizations, my obsession is obviously...
>>> can you help me please ? I can not find the equivalent in MQL5 doing sort for ((( string values ))) .... this my code in MQL4 and ArraySort works OK in string values string x[];ArrayResize(x,OrdersTotal()+1);for(int i=0;i<OrdersTotal();i++)      {         if(OrderSelect(i,SELECT_BY_POS...
I want to code Zig Zag into an EA. The Zig Zag custom indicator that i imported into the EA Builder program comes with three Buffers.  Hi, Low and Zig Zag buffers.   But on the chart , the data window only shows the one Zig Zag buffer and it only has a value at the points where the line is drawn to...
Hi, I created a EA scanner which can scan stocks from Market Watch and displayed all stocks in each button with name. After few mins all objects are flickering and disappearing. Kindly see the video for better understanding. https://gofile.io/?c=6qkya5
Hello community, when  open symbol information from market view, i can see trading hours for symbol. But i do not find a corresponding function to fetch this information. How do i know, if am currently in trading hours for symbol ? Thank you