Download MetaTrader 5

Expert Advisors and Automated Trading

To post a new topic, please log in or register
Hi Everybody, I am trying to install kaufman EA to my MT4 but i couldn't, it says "Tester: Cannot load expert..".. What is the erroe? are you able to use this EA in your MT4? KK
Hi, I was "playing" with hedging to explore possibilities : it's very tempting, since it allows purely & simply to recover from a bad position taken.  The risk of these strategies is well-known : lot management. Comes ALWAYS a point, where the margin is stressed, the logical solution being to accept...
Hi, I would like to just get the value of a custom indicator in an Expert Advisor, here is my code : double   IndicatorBuffer[]; int      HandleIndicator = 0;int OnInit(){   HandleIndicator = iCustom(Symbol(),PERIOD_CURRENT,"MAindicator","EURUSD",PERIOD_CURRENT);      Print("iCustom HANDLE...
Example I have 100 variables + parameters start 1, pass 1, end 10 By default the mt5 will combine variables and parameters I think the result here is (100 * 10) * (100 * 10) = 1 million combinations However I do not want to combine the variables just want it to test the parameters of each variable...
I have tested a number of EAs on the Marketplace which show strong backtesting ability but fail in forward testing, these were run on tick charts. Of course the sellers present their backtesting results which look spectacular. Can anyone explain what is going on here? Is this a case of deception by...
/+------------------------------------------------------------------+//| test.mq5 |//| Copyright 2013, MetaQuotes Software Corp. |//| http://www.mql5.com...
Hello everyone recently i have started to write my own EA. Wrote a lot of them and finally found some solutions that on the tester looks awsom. (yearly yield of 1 to 20 with an average leverage of 100) but the question is that, how should i choose the setting? as i have noticed, usually the best...
Hi, I've been working on a EA for some months and got some very interesting results without optimization. Below is a graph using fixed 0.01 lots from 2012 to 2017 on EURUSD: The problem is that in 2012 there was a situation where my account could have easily reached a margin call (I mean, it reached...
Hi all I am using ZigZag cator in MQL 5 EA. I have experience that some time CoppyBuffer is giving values and suddenly starts giving 0.00 and again started giving some value and keep on doing this.. Can some body explains why it is happening. and how to handle it. thanks.
Here is the result of how i flipped my $150 account to $1500 using my manually traded strategy using fixed 0.01 lot only after one week: This strategy can trade whatever pair you want to trade, I trade all pairs in the marketwatch 24hrs non-stop. So it grow fast and lots of trades. I have no mql...
Hi, I searching a solution how I can export indicator values from data window directly and in realtime to excel. Is there a tool or EA which can do this? The rtd tool from FXblue I have testet but it is for me to complicated to insert the correct formel syntax for my custom indicators in excel cells...
Hello, I try to develop en EA for Binary Options (On MetaTrader 4 with Tradetools FX plug-in for Binary Options). I have already developped all my indicators and all the structure of the EA. On the Forex, i know how to use the ordersend(), but with binary options, i don't found any information...
  ExpertMAPSAR (9)
HI, Can someone explain me how exactly ExpertMAPSAR works. Thank you
Hello, does anyone know if there is a way to have an EA auto trade from an email alert? I have a particular TradingView email alert & dont want to miss trades while I sleep. Thanks.
Hello, Is there anyway to prevent an EA from opening new orders (Daily at time X)  but maintain previously opened orders.  Edit: I don't have the source code and cannot modify the EA.
  Balance Max (2)
The identifier, account.Balance. I need the identifier for Account Balance Max.
2018.06.05 19:42:23.176 2016.03.01 00:03:30   array out of range in 'Ratio expert advisor.mq5' (54,20) void OnTick()  {//---   double Varience;   double ChartArray[];   double TheOtherCurrencyPairArray[];   double RatioArray[];      ArraySetAsSeries(TheOtherCurrencyPairArray,true);...
  HMAC SHA256 (5)
Hey guys! I need to send a signature as HMAC SHA256 to an online service. I’ve created a class with the help of this and that (https://stackoverflow.com/a/21498946). It uses CryptEncode(CRYPT_HASH_SHA256,...) to create the hash. You can see it below! It is still very basic without error handling etc...
Yes, you can. Traders are moving towards automated trading because they can trade with forex robot easily and it is very profitable for them. Using a forex robot is quite profitable in trading nowadays. trading is simple with the use of forex robots. People are making easy money using them. The main...
Hi,  Newbie to MQL5 programming. Trying to learn by upgrading existing Expert in MT5. Looking at the ExpertMAPSAR I want to add two functions: 1. A set stop-loss when the trade is entered. As it is now there is a trailing parabolic stop-loss that only kicks in after the trade is in positive...
Hi, I been experiencing a terrible situation. I recently run tester with my EA. I noticed when I try to change some parameter in my source code, and when I run the tester, it shows the same results although I has made some major change to the parameters. I confirmed this problem when I purpose...
Я пробовал:    int wHandle=GetParent(WindowHandle(Symbol(), Period()));       SetForegroundWindow(wHandle); и    int wHandle = WindowHandle(SMB, Period());   SetForegroundWindow(wHandle); но ни то ни другое не работает. Есть у вас ПРОВЕРЕННЫЙ вариант?
I am trying to test an EA performance in XAUUSD in 2007 at 1 hour timeframe. I have checked in the history center that I do have 1 hour history data of XAUUSD in 2007, but no data for 30min, 15min, 5min and 1 min. However when I run my strategy tester in visual mode, I saw the candle stick in the 1...
I am trying to use if(IsStopped()){ sStat=" *STOPPED*"; Print("EA Stopped"); EAComment(); return; } //- STOPPED if live trading is stopped .. I am trying to use if(!IsConnected()){ sStat=" *NO-TICKS*"; Print("Terminal not connected."); EAComment(); return; } //- NO TICKS if the EA is not connected...
Hi all, I am using Stochastic indicator in MQL5 EA. I want to use moving average along with please refer following screen shot. Following is the moving average settings. With the above setting I want to determine when moving average get in/out of over bought and over sold region of stochastic...
Hi all, A quick question here, how would I write the following using ArrayResize?  Thank you :) double arr[10][12]
The position comment is set by OrderSend as a parameter. When the order dealt and there's a corresponding position, can I modify the position comment? Thank you very much.
https://github.com/Roffild/RoffildLibrary Please do not delete or move this topic.
Hello, I am having an issue running backtesting on an Expert Advisor with SymbolInfoTick function taking too much time on certain symbols, around 8 minutes to return. After the timeout I get two messages on the Journal: "no data synchronized" "symbol xxx synchronization error" On the symbols that I...
Hi, because of the reason, that metatrader interneal is no possibility to read the ALERT Messages from an Indicator,  i wrote a parser script to read a File located in ..\MQL5\Logs. A VBScript, that opens the latest logfile and read out the latest line. My *.vbs Script is working if I open it with a...