Expert Advisors and Automated Trading - page 500

I had some one build me an EA here is how the back test results look like seems like the ea is making indicator make more signals is that possible ?
Hello, I'm not a programmer. Still, I'm trying to script a little. So accordingly modify an existing. I lack an understanding of the "detours" with subroutines. According to the image I want to show only those values​​. The question to the experts: Is not there a way these values ​​are easy to
Hi, all, I have gon thorugh a article https://www.mql5.com/en/code/291 Candlepatterns, it says using of this clas in Wizard genaration, we have to create another module clas for using this. My question is can i use this class, for my EA writing with out the help of wizard ? by giving a code like...
On MQL5 market, many expert advisor providers show their perfect backtest diagram. Actually some of those EA are optimized excessively, and they can not take profit from real market. Demo version for backtest is not enough. Therefore, I suggest MQL5 community mandatory asks EA seller to create a...
hi all, I am just step in to class, i am trying to make a class with BAnds,MA,MACD, The problem i face with the code, m_ma_Applied, bcoz, it comes with all this three indicators, and all this indicators have a MA, i have the same problem with m_ma_period, Please tell me how do we code if i...
Sometimes,The following code Expert advisors to open new positions automatically After close out position,We look at what is the problem? //+------------------------------------------------------------------+ //| 1.mq5 | //|
I've been using code in MT4 that waits for a new Bar to open before the rest of the code is executed. I've been trying to migrate this specific feature into my MT5 code, but without success. Specifically, I'm getting hung up on the Time[0] variable that is no longer in MT5. Can someone assist...
Hello MQL5 community, What is the typical difference in EA trade execution speed between an MT4 terminal live account to an MT5 terminal live account? If EA trade execution speed in an MT5 terminal is faster than EA trade execution speed in an MT4 terminal, what is the reason for this and is there a
  How open order in mql5 ?  (17   1 2)
I don't understand documentation for open order buy stop or just buy !?
In mql4 iBars but i don't know with mql5 ?!
Trying to code my EA to only trade in the 3 hours between 8 am and 11 am EST time. Can someone show me some light or point me to an article please? thank you.
I want obtain current price of the market... It's just tick. And how know if the Japanese candlestick is end. All this with mql5, Thanks a lot.
I am french and new in mql5. I juste want put bollinger band with rsi and get cross with mql5. i want use : -bollinger period 10 and deviation 1.5 - rsi 7 I don't know how to put bollinger with rsi in mql5. Thanks.
Hello, find below a smal ea which demonstrates the problem: When using CopyOpen and CopyClose, values of open and close of last index (highest) always identical. int minbarcount=10;int lastbarcount=0;int OnInit(){ return(0);}void OnDeinit(const int reason){}void OnTick(){ if...
Hi there ! Please excuse my ignorance as I am trying to migrate to MT5. I downloaded Include, Indicator and Expert files from this page: https://www.mql5.com/en/code/1190. The "Include" files I saved to this folder: C:\Program Files\MetaTrader 5 - Alpari UK\MQL5\Include The "Indicator" file I...
hi I'm back testing a moving average Cross over and for three quarters of the backtest its really profitable but then in the last quarter it suddenly sells when it should buy and vice versa. How can it do this ?
  backtesting EA's  (11   1 2)
Hello I'm new to MT5 and never used automated trading before. I'm quite intriged by the potential and decided to makae the leap. I've imported quite a few EA's but when I watch them perform in the Strategy Tester Window they never buy or sell at the right times.Has anyone encountered something...
I selected M5 as the time frame to execute my EA. Strategy Tester opened the M5 chart, but the candles in the chart are daily. I held my cursor over three consecutive candles so you could see the info
When I am writing the code for an expert advisor, how do I apply an indicator on the data generated by another indicator? for example, putting bollinger bands on RSI. because in the iBands functions, you need to put the symbol name. Any help is greatly appreciated.
Hello, I Have times a EA code "found" and thought him easy to convert. Similarly Martingail (excluding hedge). Of the original IS hardly remained. My code makes what he wants. And driving me nuts. Do I think about it logically correct have made​​, But probably not structural WILL die cast. Would
  draw arrows in EA  (17   1 2)
I want to try to count wave patterns in my EA and see the wave counts on the chart. Do I need to create a custom indicator and attach that indicator to the template file and access the custom indicator in the EA or can I call a function to draw an object on the charts directly from the EA? I have...
  EA template  (16   1 2)
When I test my EA in different time frames, the chart that is produced does not have the same set of indicators. I have a template created that has MACD, Bollinger Bands and moving averages. When I run my EA in M5 or H1 time frame, only the indicators I have in my template are displayed. When I...
Hi all,  After a lot of reading, I think I'm ready to post my first message. Which contains a probably easy question but I can't seem to be able to solve it, and after several hours of searching I decided to shoot it out here :)  Anyhow, I'm trying to make an EA that stores yesterdays range , goes...
Hi, I need to write a function that returns 2 file handles, which are just ints, so I thought to declare the function like int[] getFileHandles(); but MT5 didn't support returning an anonymous sized array, and wouldn't let me return a pointer to it or even to specify the size like int*...
I have a doubt about how an stop loss order is implemented. Example: Imagine I have a Stop Loss sell order on EURUSD at 1.32045 (well below the current market). The market reaches 1.32045, the order fires, but without time to complete the full quantity, the market jumps to 1.32050, and stays there....
I have been coding for quite some time, but today I learned something new. For all of the experienced programmers out there, this maybe pretty obvious, but for anyone just learning, please read. When calling an indicator within an EA like this example, you assign a handle of type int:...
Hi, I got some troubles calculating the StopLevel - here is my code: double currPrice = SymbolInfoDouble(_Symbol,SYMBOL_ASK); double point = SymbolInfoDouble(_Symbol,SYMBOL_POINT); double stopLevel = SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL) * point; double stopPrice = currPrice +...
When I add AutoDayFibs (2).MQL4 Source file in indicator folder the meta trader software will be hang... I can use win7 sys. Pls give solution on this error...
  Automated Testing  (16   1 2)
Is it possible to call the tester for optimization from the EA? What I want to do is re-optimize every weekend after the market has closed. I can use MqlDateTime str1; TimeToStruct(TimeLocal(),str1);if (!selfoptimize) return;if (str1.day_of_week!=selfoptimizeday) return; to check for the...
Hi everyone, So I am in the process of creating an automated trading program and would really love to get your input. This is where I began trading and so I thought I would get the opinion of the mql5 community first. It is just a short 8 question survey to help me get started. I would really