Expert Advisors and Automated Trading - page 101

To post a new topic, please log in or register
Hello, Does anyone know of a script or EA that can draw a horizontal line that can act as global stop loss? For example - Once price touches this line every order in the chart will be closed. I know there are trailing EAs and the like but im just looking for a simple line that can be manually...
Dear Sir/Madam,  I just created an EA. Before putting into Market, I would like to publish as it can only work with Demo Account.  So far I still cannot lock my EA to be only useable with Demo Account. Can somebody help?  Many Thanks
Am I doing this right at all? I have an indicator (it's BrainTrend2Sig from the codebase). It outputs a buyarray[] and a sellarray[] In my EA I first link to that indicator   indicator_handle=iCustom(NULL, PERIOD_CURRENT,"BrainTrend2Sig"); Then in OnTick() I call for  the arrays.    double  buys[],...
Hello everyone! I wrote an EA which trades divergence (many different settings and indicator choices) some major pair tests (EURUSD, GBPUSD and USDJPY) with TDS software (real ticks and spread) proven successful on last 7 years, As a part of an initiative to create a "community EA project", I'm...
quebralim
Hello fellow developers, I'm writing a script, which in its functions, needs to read data from several indicators, nearly at the same time. During this development, I've encountered 2 problems: The first being a Windows' window popping up telling me MT5 is using up too much memory (even though there...
I have a question about automated trading. I am a new member on mql5.com.And, I try to understand automated training. we assume that I have an expert advisor. And, I have subscribes. When the expert advisor create signal with 1.5 lots, will subscribes have 1.5 lots or they will have a lot including...
Can MT4 signals work with MT5 and vice versa?  Using my phone looking through  the threads and could not find similar question.  So I asked here. Thanks in advance folks.  
HiI' ll want to know if you can make Ea mt5 for me. This EA is not for operate on markets but only for test and search the best setting. 1) n. 3 moving average (with possibility to change in simple, or EMA ) 2) n. 2 CCI 3) n. ADX WILDER CONDIZIONS FOR BUY/SELL: Here there are n.6 elements: 3 ma + 2...
Hi guys, can somebody help to modify the code for this EA. I would like the EA to wait after a buy and sell signal a specified number of pips to take the trade. So I can input 10, 15... pips in the settings.   Thanks very much! Here is the part of the code: (MQL4)   void OnTick() {   CheckProfit();...
Hello, I want to adjust some indicator constants to a script. However, I do not know how should I do? Could you help me, please? extern bool MacdMomentum_Entry_Filter=false; extern bool MacdMomentum_Exit=false; extern bool MacdMomentum_Reverse_Signal=false; extern string c1="-momentum-"; extern int...
So, I've been using expert advisors since a couple weeks ago, and I realized something strange about it. I can set the parameters of the experts to almost always buy and sell at the wrong time, but I can't set them to almost always buy and sell at the right time. So, I downloaded an open source...
I will freely admit that i am relatively new to the whole world of FOREX but at the same time trying hard to learn and understand it. I noticed on this site the other day the section about Expert Advisors. I thought i would have a play around and downloaded a couple to try on a demo account. As i...
Here's an example script I made for tracking groups of symbols by using the standard library to create two dimensional objects arrays. Can anyone tell me if there is a better way? Thanks! :)   #include <Arrays\ArrayObj.mqh> //+------------------------------------------------------------------+...
So I have a custom indicator, A .mq5 file.  How would I call on it in my EA to use it? Do I add it as an include file and use the iCustom function? 
I would like to make a EA of the arrow that appears on the arrow from the custom indicator. Please recommend a place where you can view the codes using the icustom function, instead of the manual.
I would like to draw some graphics to the chart from a script. I use the standard library classes and objects. I would like to keep the objects on the chart after the script finished, but the objects destructor automatically clean them.   How can I draw remaining objects from a script? 
  A coding book (9)
Is there any book existing other than MQL5 help? Or any detailed examples of coding?
Hello, I use Wine and my MT4 on my mac. I just purchased an EA here, how can I use it on my mac version of MT4? In options I added my mql5 user e password and then? thanks 
I want to use a time filter with my EA and I was wondering if the local time is my computer's time and will be migrated as such to the VPS, or is it the VPS time and the EA will trade (or not) using that time as local?  For example my MT4 platform and my computer is in Greece, so when I load my EA...
Hello, I am looking for a tool in mql5 or for MT4 where i can have a P&L summary per day, per week, per month of all my accounts I want to evaluate. Example: Account 1: +20 Account 2: -50 Account 3: +100 P&L summary: +70 Best Regards. Christian
hi,  how can I get the slope of a trendline thanks
I keep getting open error for iCustom. Heiken_Ashi.ex5 is in indicator folder. I think I have messed up the handle. Here is handle and heiken_ashi indicator code. There arent any other handle parameters I need are there? Heiken Ashi just changes the candlesticks with a bit of math. There are no...
Basically, what the question suggests. Can I close down my MT4 application as well as my system when its connected to an MQL5 Hosting plan and the platform will still run?
Good morning I have found this article interesting. https://www.mql5.com/en/articles/115 However before using named pipe i would like to have some justifications in terms of few practal points. The article suggest named pipe as robust tool for inter communication or data exchange in the local...
OrderGetInteger(ORDER_POSITION_ID); hi my firend please help me for used this function or similar function in mql4
  EA testing (4)
I have tested an EA in the tester and with broker one it make a profit of 2k/year and with broker 2 a loss of 2k/year with same settings in the EA and tester why?
Dear Traders, I was using the codes Time[i],Open[i],High[i],Low[i],Close[i],Volume[i] and iTime,iOpen,iHigh,iLow,iClose,iVolume in MT4 but it seems MT5 don't have any of this kind of syntax's. I would like to know the alternate code for this in MT5 Kind Regards
  Programming (2)
I would like to know how to tell if the chart window is visible. I want to modify an indicator  to detect pin bars and give a sound. I'd like to make sure only the current chart receives the sound and not any of the others that are not visible.   Regards Ricky  
Hi, how to code an EA that OP at specific time.?  Example logic: TF: H1 1. If candle close is bearish  at time 10.00am then EA will OP buy at next open candle ( at 11.00am) 2. If candle close is bullish at time 10.00am  then EA will OP sell at next open candle ( at 11.00am) 3. If candle close...