Expert Advisors and Automated Trading - page 89

To post a new topic, please log in or register
I'm using standard library's base classes for creating an EA. After opening a new position, I'd like to post some pending orders for partial TPs, as well as a stop order. The doubt is what is the more elegant way of doing this using the standard library's base classes? At this moment I just coded a...
Hey, I have a great indicator system that I am using at the moment. I am looking for an EA that opens new position according to this indication system. Has anyone maybe found an EA or know of such an EA? Regards Franzel
There soooo many EA for sale here, which seems to be the favorite on real live account? 
             I have a pretty good EA (mq5 ).Now I need the Time filter.Where can I find the code for the Time filter (mq5) or a sample EA with the Time filter code in it so I can do it myself ?               Please help ( not by the Wizard ).Thank you.
in the below mentioned code,i want the labels name to be displayed on my chart, can anybody help, its in mt5 #property indicator_chart_window #define     count_buffers     9 #property indicator_buffers   count_buffers #property indicator_plots     count_buffers //--- plot buffer 1 #property...
Hi friends, how can I know if a concret broker let me use a "symbol name?" how can I search if the symbol exist with mql? Thanks!
Whenever I try to leverage any of the servers I have in my friends network we get the following error tested with error "cannot load expert [539]" I'm testing against a few EA's from the market ticksniper good santa saad scalper and others all the demo version. Each remote host fails with the above...
Hello I have an indicator that for example send alert for buy or sell How can i use it to EA for auto following of indicator ? I mean how can i force EA to follow indicator alert ? For example: if(indicator-test-alert==sell)ordersend(buy position)else if (indicator-test-alert==buy)ordersend(sell...
I'm optimizing my EA and at the bottom left of the strategy tester it says 796 / 8 892 (235 200). So, how many more tests do I have to go? Yes, I looked everywhere for this answer and I can't find out how to decode those numbers.  :)
ObjectGetValueByTime() All time retrun 0.0 double LastUpRedrawValue =ObjectGetValueByTime(0,"Toptahlil_UpperTrendLine_"+GetPeriod(Period()),Time[iUp],OBJ_TREND);
Hi friends I know that to include a library I should put in my code  "#include <ghttp.mqh>"  but when I put this in an Expert Advisor that I am doing the MetaEditor show me an error: "can't open include file". What and how I should do to use this library? Thanks you so much for your help!
Hello, I'm receiving twice phone notification for same trade transaction, how can I fix it? 
hi  is there any easier way to write this: if (A == 1||A==2 ||A==3 ||A==4 ||A == 5 ) {Do Something;}
can you explain ?Thanks I think can work very well and perfect.
Hello, just wondering if you you know any good MT5 Brokers with good history data?  So far i found:  Admiral Markets (very nice history data for forex as i can tell so far) ActivTrades (less history data, but maybe to compare EA for Spread only broker without commission) RoboForex (less data then AM...
Sounds stupid, but I have problem to close positions. Since MQL5 does not offer any function to close position, all you can do is to open opposite one. The same thing you will find in provided sample Trade\Trade.mql. If I start from beginning. I have EA that trades every day once or twice. It...
I am wondering if there is any MT4 or 5 addons that allow the user to set an open or close price based on the current timeframe candle close. I am obviously aware of the built in functionality of stops and limits but they do not function on candle close and are simply triggered by price movement...
Let's open a position in a Hedge account with a given Magic_Number on the current _Symbol. void SendOrder(int command,double lots,double stopLoss,double takeProfit)&nbsp;&nbsp;{ ResetLastError(); MqlTick tick; SymbolInfoTick(_Symbol,tick); MqlTradeRequest request;...
Hello, How should I implement immediate position close in MLQ5? The only way to close something that I found is SendOrder with request action TRADE_ACTION_REMOVE. But removed pending orders, and not active position. Thanks
I am coding an EA and want to back test it. While I want it only run within London hour. As London hour will be changed during different season. So how should I code to determine it? Thanks
Hello, I am new to Forex and EA's. I understand and welcome that it is going to be a long and difficult path to success. I am currently in testing with a few EA's the typical ones. Beyond the standard EA's I have added some tools like. - Watchdog to re-log back in if the EA does not get tick...
I have found Pip Calculator in MQ4: https://www.mql5.com/en/code/12418 . I need the same thing in MQ5 and with any currency pair. For calculation of any currency pair there are as if three cases described in picture attached.  Can anybody help?
Hello, is there a way to sort a struct based on an element inside it?     struct MyStruct     {      double            _High[];      double            _Low[];      string            Symbolname;     };   MyStruct Str[];   int Size=10;   ArrayResize(Str,Size);   for(int i=0;i<Size;i++)...
Hello, I place a trade with MqlTradeRequest structure and i want close my trade (Order = 123456 example) When i write it : MqlTradeRequest request={0}; request.action=TRADE_ACTION_MODIFY;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request...
Hi Coders, Traders, Master and Mentor, I'm looking for a simple EA. tried looking for everywhere but can't seems to find any. I can find stochastic, MACD, etc but i can't find for Bollinger Bands. Price from lower Main BB cross over Main BB will Buy. TP Upper BB and SL Lower BB. Price from higher...
Hello, I mirgrated to a new VPS and installed MT4 and configured all options and connected to my accounts. Now I experience that I cannot download EAs from the market within my clients. Why? Can anyone provide a solution? I already did the following: Close MT4 clients, delete C...
Hi guys, i'm new in programming and mql5, i also have english as a second language so i apologize if i write something wrong. I want to get the high of a period that starts when the close of the previous candle is above an ma and ends when it is below it. The opposite for the low. For example: I'd...
Can an EA get too overloaded with functions and algorithms, so that it will influence its performance? Regards
Set different width of histogram on MT5, get same results (width=2, width=3, etc.), Bug?
if(!PositionSelect(_Symbol) Thank you