MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading and Strategy Testing Forum

20 Trade Signals in MQL5 20 Trade Signals in MQL5 Subscribe to signal
Alex44
55.25%, 38 811.82 USD
ColorLine IndicatorColorLine Indicator Try product
ColorLine Indicator
Author: mql5_seller
Screenshot
EURUSD, M5
Demo
MovingAverage_FN Indicator
MovingAverage_FN
Author: GODZILLA
To post a new topic, please log in or register

/ Expert Advisors and Automated Trading

I have 2 EA, they are work together for 1 pair, such as EURUSD, How can I run backtest? hongbin.fei
Hello, I would like to send order entry and exit signals from an external software application I am developing in C# .NET. Could anyone help me understand how I can accomplish this? Thanks!!!
Hi all I've a global variable defined like this: MqlRates ga_rates[]; Then I've a function in my EA defined as follows. void getBarInfo() { // fill array with bar information to use in functions CopyRates ( Symbol (), PERIOD_CURRENT , 0 , 10 , ga_rates); } Now I would like to use the...
Hi all I'm a very "new newbie" in MQL5 (I've experiences in other progr. lang. but not in MQL5). I trade for more than two years and now is time to start with developing EA to make trading (hopefully) easyier and less risky. To my challange... I need the OPEN information of the last and previous...
Can MetaTrader for Android support this function? I just want my EA can run in my android phone,even if I can't edit it in phone. So that I can turn off my computer and keep the EA run all the time. And I can keep watch the EA running status,stop/restart at anywhere at anytime. can...
Hello, people. Strategy tester does not read past indicator data. Is it right?? Is it a bug?? What am I doing wrong? I'm writing an EA that needs to read past indicator data. It works just fine in Debugging mode , but it doesn't work when used in Strategy Test. To illustrate, a prepared a simple EA...
Hi, dear traders I'm looking for EA with three TF (M15, H1 and H4) and candles for its indicator. EA can open buy or sell at M15 by watching candles at H1 and H4 when candles show go up or go down. Does anyone have an EA with this idea? Thank you.
Hi! How can I solve this problem? I create an EA of a Signal and I got this error: "PERIOD - member function not defined" Where do I need do define? All others functions do not show errors...
It's not working now ... at least with me. It did last week.
Hi, I am an old time C++ programmer and just started learning MQL5. I notice the pointer concept of MQL5 is different from traditional C++, especially for getting pointer. I read the MQL5 document and quite easy to understand the concept of using function GetPointer(...) to get the pointer of a...
Hello MetaQuotes, when a backtest, without visualisation has been finished, a new chart window is opened showing trades. Unfortunately, the chart is going over all available data instead of showing the interval selected for backtest. Could you please change this? This makes it extrem difficult to...
Hello MetaQuotes, when trying to add triple EMA to chart, this EMA is not visible as it is always added to chart window instead to open extra data window. No way to change it. (This chart already has 1 indicator in data window). Another chart shows triple EMA correctly in extra data window
Hi, Is it possible to add more positions without closing the already opened positions? How could I go about writing the codes?Million thanks!
hi, does anyone know how to enter trade at specific time? Thanks in advance.
Hi there, When i submit an order, like this for example: double SL = (o_symbol.Ask() + (Signal_StopLevelS*_Point)); double TP = (o_symbol.Bid() - (Signal_TakeLevelS*_Point)); trade.PositionOpen(_Symbol, ORDER_TYPE_SELL ,1.0,o_symbol.Bid(),SL,TP); and then...
HP 0 Agent_192.168.0.10:2005 22:42:19 EURUSD: history synchronization completed [4090 Kb] RP 2 Agent_192.168.0.10:2003 22:42:20 genetic pass (9, 110627387037426572) tested with error "critical runtime error" QR 2 Agent_192.168.0.10:2002 22:42:21 genetic pass (10, 134774014628841714) tested with...
Hi! Im new in the MQL world, with little knowledge of C# only... Looking at the Order Types (in: http://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_type), I had a doubt. Is there a order type for closing long positions? As I understood the ORDER_TYPE_SELL is for...
  Swap (2)
I am looking for documentation on what I think is called swap. Can anyone tell me where to find this?
Forgive me if this question has been asked or answered already. I have read the manual provided by this site but, I need a little more explanation. I thought with automated trading there are no restrictions to how much trades you have. For example... is it possible to have my EA open about 10 - 15...
Hello, i am looking for an efficient formular to change period of a moving average. This article http://www.mql5.com/en/code/75 seems to promise this but after my opinion this is not the case as the recursion used VIDYA_Buffer[i]=price[i]*ExtF*mulCMO+VIDYA_Buffer[i- 1 ]*( 1 -ExtF*mulCMO);...
Hi guys, I'm still having problem with my trailing stops. The stoploss level is supposed to be changed only if the price minus the trailing stop point is greater than the existing stoploss point. But in my program, the stop loss is being adjusted as I can see it in the visual tester . The problem...
Hello, my question is about the order of prices in price arrays passed to OnCalcuate. I know, there are many tags for this subject, however, my problem is this: Now the problem: The sample below outputs on each tick CURRENT close and also "as series". I thought §as series§ means that LATEST...
Hello, within an indicator i tried to use CiMomentum. #include <Indicators\Oscilators.mqh> CiMomentum cMomentum; void OnInit () { cMomentum.Create( Symbol (), Period (),my_period, PRICE_MEDIAN ); } int OnCalculate ( const int rates_total, // size of input...
Hey Guys i have a little piece of code thats saving the current position open price on a text file with the following code: int file = FileOpen(BOTMagic_Number+".txt", FILE_WRITE|FILE_ANSI, ','); if (file != INVALID_HANDLE) { FileWrite(file, pricenow.bid);...
Hello MetaQuotes, - when i do a backtest, TERMINAL_DATA_PATH returns a location below tester -> tester..../mql5/.. where no expert advisor located. - when applying EA to a chart, TERMINAL_DATA_PATH returns a location below terminal -> terminal So in different situations TERMINAL_DATA_PATH...
Hello MetaQuotes , I am currently preparing a flexible framework for multicurrency EA for the ATC2012 and therefore I would like to ask for clarification on event handling mechanism in MT5. The general info about the event handling is : A client terminal sends new events to the corresponding open...
Looking for a walk forward optimization tool for MT5. Thank you
StringConcatenate error in MetaTrader 5.00 Build 687, when output string was not initialized yet, and at least one of the parameters is an imported function with string return type. (tested with Strategy tester) example code fragment #import ... string getCmdStr( int cmd); // ... string...
Hey all, I'm a total noob and just experimenting for now. Been playing with, and learning strategies, but I am having issues with using the envelopes indicator. Given the following code, my upper and lower values are getting output as exactly the same. Any help would be really appreciated....
Hey there, Ive been writing EAs for some time now, i was programming a new MTF EA, I was trying to test it in the visualization mode cuz its easier to spot wrong entries there, but when i start testing and get to 2012.01.02 23:45 (M15) it just stops creating bars.. heres the screenshot hope anyone...
previous1...456789101112131415161718...26next