Download MetaTrader 5

Expert Advisors and Automated Trading

To post a new topic, please log in or register
Hey, the Bee is back again with questions. I've read a few threads, where traders take into account the percent of risk they're ready to take. (e.g. %5 of Free Margin or so) which is understandable. then I read some EA codes and some scripts, which try to calculate the lot size, based on where...
Hi there, I need someone to create an EA using a combination of support and resistance and an ADX (dashboard) indicator to use with , about 3 indicators, and these already have inputs...but i do not know how to code as yet, still teaching myself. Please advise if it would be possible to code those 3...
  new expert (3)
I have a system based on The RSI, two ma's (8 & 4) and the McGinley Dynamic Indicator. I have changed some of the parameters of these from the defaults. I would like to have the system able to automatically open both short and long positions and then close them based on these...
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've searched for an 'upgrade' as I recently found that almost all Renko builders recalculate. I use Renko. The solution is to anchor it in time (set a start date) but i do not know how. I considered paid options but none release the source code. I get why but at the same time trust has to work...
Hello, Why does this script produce a out of range ? Thanks, Pierre //+------------------------------------------------------------------+//|                                                 stOutOfRange.mq5 |//|                        Copyright 2018, MetaQuotes Software Corp....
Hi, I'm looking to make an EA works with multiple currencies, there's a lot of indicator that show a meter based on a score or a index. Unfortunately, none of them's code is available. I've googled to find the formula, but ... didn't find nothing. Anyone knows such a formula please ?
hello, I've created a custom symbol from EUR/USD. In the backtest trades are working good but there are lots of errors "2018.04.21 18:13:02.839 Core 1 2008.10.29 01:02:00  no prices for symbol USDEUR_BASKET (1970.01.01 00:00:00 0.00000, 0.00000)"  although I use only the eur/usd and not...
#include<Trade\Trade.mqh>CTrade trade;void OnTick()   {      trade.Buy()   } What do I need to add/change to the code above so that it executes a buy order only once after I run the EA? I'm only newbie. Thanks!
HI.  I am running the following code for GBP/JPY: void OnTick() {   // get last tick   double last=SymbolInfoDouble(_Symbol, SYMBOL_LAST);   Print(last); or: MqlTick last_tick;    if(SymbolInfoTick(Symbol(),last_tick)) {       Print(last_tick.time,": Bid = ",last_tick.bid, " Ask = ",last_tick.ask...
Good Morning, Have someone please experienced this ? 1. Run a Strategy Tester of some Expert Advisor 2 Get the results via OPTIMIZATION RESULTS tab 3. Export to XML MS Excel 4. Open Excel and import XM file and get the error below Thanks in advance Regards, MRC ERRO XML em Tabela REASON...
Hi, I just switched from MT4 to MT5 and what a pain converting from MQL4 to MQL5. A major problem I cannot solve is how to have several orders (MT4) in the same symbol each with a different stop loss (SL). E.g. Order 1, buy opened at 1.22, SL 1.20 Order 2, buy opened at 1.25, SL 1.22 Order 3, buy...
Hi, I've stumbled upon EA Builder (www.eabuilder.com) and FxDreema (https://fxdreema.com). I suspect there are even more EA building tools out there. Which is best? Give your view here of which EA builder you prefer and why. I'll start - Between the two I checked out, I preferred EA Builder for its...
Hi all, I have written and currently run a mulit-symbol EA in MT4which monitors and trades a portfolio of appox 300 stock-CFD’s. I have effectively re-written it for MT5 because the brokerI now prefer, uses MT5 instead. The code uses a timer initiated For Loop which cyclesthrough the symbols, tests...
hey all, does anybody know of a way to automate the generation/export of account reports? I found an EA that has been performing well - HOWEVER, I still need to do further testing and observation in real-time. I'm running MT4 on a VPN, and originally thought I could simply get a program that...
Hi community, i have an expert with some gui objects, buttons, editfields, arranged below a rectangle. When the rectangle is dragged, all the objects in it are moved accordingly. I run this on MetaTrader 4 as well as on MetaTrader 5.  The code is pretty similar, except some details. Now the problem:...
Gentlemen, I would like to know if you know any script to update the graph with automatic frequency every 10 min. Thank you.
For me, volatility situations were always times when I decided to shutdown my EA. I felt that my servers would never be fast enough to trade news or, for example, central bank decisions. Now and then I try to keep up with new developments, so my question would be if there are any positive news about...
study(title="Steven Primo's PET-D", shorttitle="Pet-D", overlay=true) petd = ema(close, 15) up = close > petd ? green : red barcolor(up) Hope you understand what I mean!
HI, can anyone help me to explain what does 'end of test' means in Strategy Tester MT5? And I also get status with 'so 11.87%', what does it mean? TIA.
Can We define functions that like  Print("Hello","World"," !"); http://www.equestionanswers.com/c/variadic-function.php Can I define these fuctions in mql4 or mql5?
I get this error when loading metatrader from the command line with a config.ini file 2013.03.27 21:43:46 Exception Encountered an improper argument. This error happens if the following functions are contained in the EA: void OnTesterInit()void OnTesterPass()void OnTesterDeinit() I do not...
Hello, It's an Expert. Why this EA does not display my "indicator" on the chart? Thanks, Pierre //+------------------------------------------------------------------+//|                                                    eaHighLow.mq5 |//|                        Copyright 2018, MetaQuotes Software...
How do I code my EA to collect the last closed order's profit/loss? I can track the p/l for live orders, and if I close the order, I can collect the data... but if the system closes the order... for whatever reason... I don't know how to collect the data. Chuck
Hi, is there any way to compare the results from our Expert Advisor with the "buy and hold" alternative. That is, if we buy at the first position opened by our tester and then we just hold that until the end of our test (this is useful because if we are testing a bullish market we could think our...
Hello friends, I'm looking for some custom codes, it will be very helpful for me if any one provides me. I have already created an EA but I'm have to make some changes in it. I'm looking for simple codes. 1) The order should open only if LAST CLOSED TRADE LOT size is X (Variable). 2) The order...
How to get length of enum and item in MQL4/MQL5 ? For example, there has an enum definition: enum ENUM_FRUIT {APPLE, BANANA, GRAPE}; Next, I want to use it in loop: for (int i = 0; i &lt; length_of_enum; i++) { Print(EnumToString(get_enum_item(i)));} How to implement this requirement? I've...
Good morning, I have an EA that I created and have been using it for the past year but now I'm trying to make it "better" and one of the things that I need to do is find a better way to add orders. Today, I use the MqlTradeRequest and MqlTradeResult so I can add order, but by using that, sometimes a...
Hi everyone, I am completely new to the idea of coding. I have tried to look at videos and learn it myself, but it will take some time. I am trying to figure out if the following is possible to be coded: An EA that works on any time frame,, An EA that works on all currencies,, Utilising the...
Hello.... I recently started experimenting with MQL5 and the following happens to me ... According to what I know ... it should be in 1, but it never leaves 2. OnInit()   ObjectCreate(StringToInteger(_Symbol),"1EstadoSuperiorLavel",OBJ_LABEL,0,0,0);   ObjectSetString(0,"1EstadoSuperiorLavel"...