Download MetaTrader 5

Expert Advisors and Automated Trading

To post a new topic, please log in or register
Hello all, I fount out that ArrayCopySeries  and ArrayCopyRates  are 2 useful functions in MQL4. It does not really copy anything except when you call it first time. That saves some manual labour when I work in multiple timeframes. And since it does not actually copy the whole array every time I...
is it possible to run MQL5 EAs in a broker that supports only MT4? I have chatted with the broker's customer support and they say.. "you could try... but we don't give support on EAs". So I would like to ask the forum according to your experience to know if I shoud then program in MQL4. Thanks a lot...
I do not know what this 813 more... is. I am not using an EA. Can it be removed? Thanks Ken
I have nice life problems here. My EA only trade once or twice a week  and now I have reached my broker's maximum lots, now I feel like the EA is being limited and no longer performing as it has been for the past months. I am currently thinking of a way to code my new lots management so that it will...
Can somebody tell me what kind of file is *.ex5 - machine code or code for virtual machine?
Dear Coder Since the migrants to MQL5 language, there are many differences in the coding structure to work with historical trades in mql5 language. Here I would like to discuss any problem related to Historical Trades. I just simply feel this is necessary because the History Deal structure from...
Hello! When I attach AceTurn to chart it appears normally, but I cannot reach to ComboBox selections and also CheckButton don't take changes when pressed. What is wrong in my code? 
hi  is there any easier way to write this: if (A == 1||A==2 ||A==3 ||A==4 ||A == 5 ) {Do Something;}
Hi, i am trying to build a EA that reads the MACD levels, but i want to check if the MACD is above level 90 or below level 10 currently i am only getting some negative decimals numbers. Help please. Thanks
Hi together, have some questions. -------- Can we direct copy Trades from one MT4/5 to other MT accounts? ------ As example i am trading and want my signals automatic to family accounts copied. Regards Mike
I tried to run the attached simple script in 64bit MT5, but for some reason ReadFile() results in an ugly crash. All other functions imported from kernel32 work fine. This code also works without problems in MT4 and 32bit MT5. Any idea what's wrong?
anyone know of an  EA/script available where one can quickly place multiple pending buy/sell orders at specified price (with distance) as grid with each pending order at specified distance (ie: 10 pips) ? Also would be nice if it has take profit in profit in X dollars profit  and stop loss in X...
Dear all Is it possible export to an Excel file the trade made with the back test?  
Hello ... I find a problem when I put the DLLSampleTester script on the chart I activated allow dll imports The following error appears in the experts tab - unresolved import function call - thank you for your help
Hi, I'd like to prevent a signal from opening new positions once a certain draw down or margin level has been reached. However, the signal should be able to close positions which can't be done if the signal is disabled completely. Unfortunately all these settings seem not to be suitable for that...
Hello, guys! I'm implementing an Expert that operates based on a 3 EMA cross, using a time filter (it makes trades only during a period of the day). The main rule is basically:      FastEMA > MediumEMA > SlowEMA = buy   (FastEMA < Medium EMA = stop loss)     FastEMA < MediumEMA < SlowEMA = sell...
I‘mtrying to close a position but I get always the ERROR: invalid fill. Thecode is basically as follows: ...CpositionInfo PInfo;CTrade Trade;...for(uint i=0; i<PositionsTotal(); i++) { if(PInfo.SelectByIndex(i)) { if(...) { Trade.PositionClose(PInfo.Ticket()); } } } Whichproduces the...
Hello, The following function compiles in MT4 (build 1045) (per @whroeder1 ), but not in MT5 (build 1545): void demofunc( double & arr[][]){} Does anybody else know why this would compile in MT4 but not in MT5? What is the correct syntax for defining a function in MT5 that accepts as a parameter a...
Hi to all, I've created 2 custom indicators that use other indicators. In my EA I m using the 2 custom indicators. All is fine but if I launch the genetic Optimizer nothings happens Or I get an error OnInit()...How can I get more informations or trying to solve it? Thanks in advance.
Hey Guys I have two subclasses with lots of the same functions and I would like to call a series of same functions from both classes, the simplest example of what I would like to do is below (btw I use "virtual" to ensure the sub-base function is prioritized over superclass function!) int...
Hi, As an EA developer, I wonder how does product updates work on the market. Once I publish a new version of a product, do the buyers get notified about it ? Does it install automatically on their terminal or do they have to do it manually? Other related question: is it allowed to use a WebRequest...
Hi, I am quite new with the automated trading. Trying the Strategy Tester with a Metaquotes demo account I found the spread being too high, peaks of more than 40 pips, this crush the scalping strategy I am trying to test. I didn'tfind any way to adjust that like with MT4. Is there any way to set the...
Hi. I created a panel using Scroll.mqh class. Scroll Decrease button does not work. When I click Scroll decrease button, it works like Scroll increase button in fact moving the scroll to downwards ( but scroll decrease button should scroll to upwards). Is this only me experiencing this problem ?...
I'm using OnTradeTransaction() to monitor trades.   Is there a way to tell if the deal is being opened or closed? Right now I'm filtering the callbacks using trans.type == TRADE_TRANSACTION_DEAL_ADD Thanks.
Hi All, I have created a custom indicator which I am using to theexpert advisor. While testing it with the historical data for a particular daterange, the strategy tester works most of the time, however sometimes it justhangs. When the tester is started, no ticks are received the looks like testeris...
string TEST_A[3] = {"TEST_A_1", "TEST_A_2", "TEST_A_3"};string TEST_B[5] = {"TEST_B_1", "TEST_B_2", "TEST_B_3", "TEST_B_4", "TEST_B_5"};string TESTEnum[8];ArrayResize(TESTEnum, ArraySize(TEST_A)+ArraySize(TEST_B), ArraySize(TEST_A)+ArraySize(TEST_B));    for(int i=0; i<ArraySize(TEST_A); i++)...
Im developing a system based on xgboost (for CPU), and neural networks (for GPU), whit automatic training, hyper-parameter optimization, trading parameters optimizer, portfolio optimizer... im building it on python and Cython (the parts that require to run fast)... currently i have two guys more on...
I need a molule of signal to close positions and delete all pending orders at especific time. I´m using the wizard of MQL5 to generate my EAs and can`t let any position openned after 17:30, for example. I am able to not trade after 17:30, but one position openned before this time remais for the next...
Hello, someone would know tell me what criteria the virtual mql hosting assigns the number of bars per chart? For example I have 65963 bars for USDJPY and only 3933 bars for EURUSD ...Thanks so much!
12345678...143