//Enumerations enum DateTimeToDays { s1DAY = 1, // 1 DAY s2DAY = 2, // 2 DAY s3DAY = 3, // 3 DAY };// Inputsinput DateTimeToDays Inp_Pending_Expire_Date = s3DAY; // Days till Pending Order Expiration//...
Hi, everyone. I worte down this code, but it doesn't work, can you find out the mistake please? #include <Trade\Trade.mqh>CTrade trade;int MyRSIDefinition=0;int MyEMA5Definition=0;int MyEMA10Definition=0;int MyStochasticDefinition=0;int OnInit() { MyRSIDefinition=iRSI(_Symbol,_Period,14...
I want to write an Expert Advisor that takes values (Stop Loss, Open Trade, Take Profit) from an emailed signal and places an order. Can this be done? If yes, how can it be done?
Hi guys, supposing I want to test my EA since 01/01/2015 to 08/12/2017 Supposing on 17/01/2016 there is a condition and i want my EA to fail in the test, how can i do that? In this way I can save time for the test instead waiting the end. Thanks
Hello, in MQL5 when i set this EA on MT5 in H1 and it' changes automatically timeframe (to Daily) and reset after some milliseconds. So the chart seems crazy. Not all computers have this problem, i have an i7-6700HQ where there is no problem, but on my aruba VPS and some computer there is this...
My EA wanted to query iLow, iHigh.. values and the terminal said 4073. Does anybody have any idea how to avoid this problem? Thanks,
I need to use my own Close button in my panel. Then I tried to override CreateButtonClose(void) in Dialog.mqh file but I got this error: private member access error How can I fixed it and use my own Close.bmp instead of the default bmp file ? #resource "\\Projects\\myPanel\\resources\\Close...
Hi, looking for an automatic trailing stop that can; - Execute console side (ie. MT4 terminal rather than setting a TS broker side), and - Will apply to any trade in any pair that is opened (either manually, via EA, or an external signal provider ). The following features would be a bonus too; -
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...
I'm building a basic EA. I would like to enter a long position on the high of the last x hourly candle. Is the timeframe of the chart overruling the timeframe set on the EA? If in the code I calculate the high on the hourly candle (double HighEntry = High[iHighest(" EURUSD ",60,MODE_HIGH,48,1)])
Before i post a job i want to know if this is even possible. Can an EA take external triggers? For example i use Sierra Chart to plan all my trades and am able to make my own alerts and they can be set to .wav files or to sent an email or SMS. Is it possible to create an EA with some dummy .wav...
>_< all the procedures the EA performs to copy large quantities of buffers and prices, works fine in demo mode. BUT the same procedure fails each and every time in tester. how to copy large number of buffers/prices in tester successfully ? (~ 350,000 buffer doubles) I guess the problem is, my code...
why does it shows up dpo to the chart so many times?? And what do you think is wrong? #include <Trade\Trade.mqh>CTrade trade;void OnTick() {double DPO [];double Ask=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits);double Bid=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID)...
how to adjust inputs in ea like automatically open trade etc
Hello all, I'm writing a EA similar to Martingale. But I encounter a problem while I want to re-calculate the "take profit" for all of my current orders. Here are the processes, 1. I set up the target total profit would be 10 USD at beginning before any order is placed. 2. Now, the 3rd order is...
Hello, I want to know can I subscribe my own signal from another broker? My situation is I have 2 trading account from 2 different brokers. Let's say Broker A and Broker B. I already register my signal from Broker A and mark it as Private. I can see it in My Signal page. How can I subscribe to this
Good day great developers, I would like to know How to make the demo Ea strategy tester to work only for few days??? I downloaded a demo of a certain product that demo worked only one day but when I downloaded mine it kept on working until today (1 Year after). I would like to know how to make to...
Hi everyone, I just try to select the order ticket of largest lot order from my current trading pool, buying and selling. From some of sample just write like following, but as my understanding, it just return the random ticket rather than largest one. Is anyone could advise me this is right or not...
Hi there, Im trying to set up a WebRequest in an Expert Advisory, wheras the server needs ~5-10 min to come up with the response. Even though I set the timeout to 3600 seconds, I get a "read timeout" after exactly 10 seconds. The following code can be used to reproduce the behavior for MT5 Build...
Hello to all. I would set the stop of an open position to breakeven, but I'm doing something wrong. Look at the code please and leave a comment if you find out the mistake. This is a part of the entire EA: #include <Trade\Trade.mqh>CTrade trade;#define EXPERT_MAGIC 123456double PatternTP2=0;ulong...
Does MQL5 have a refund policy? In case person wants to unsubscribe a signal within lets say a week?
Hello all I'm thinking about getting a home server (probably second hand) for heavy backtesting, to take advantage of e.g. the Intel Xeon's large core and thread count. Two questions: 1. If I buy a server with two or more CPU's, each with several cores, will MQL5's optimization engine use both CPU's...
Hello everyone,I have a small problem with my EA, I would like him to close the winning position only on GBPUSD.but now he closes the winning position on all the instruments. can you help me please.here is the...
سفارش کپی کردن در انتظار سفارش notstop ... sellstop..buylimit .. .selllimit در حساب من کپی نمی شود please guide me please guide me
MetaTrader 5 Version: 5.00 build 1881 09 Jul 2018 Server: GenesisMarketsLP-Demo Symbol description "Trade" is "Full access" But SymbolInfoInteger(Symbol,SYMBOL_TRADE_MODE) returns SYMBOL_TRADE_MODE_DISABLED
MT noob here so be gentle lol. I downloaded tickstory to add some history to my MT4. After exporting to Mt4 it downloaded the chart and said complete. After closing and restarting MT4 I cannot do a single backtest on any pair. It just stops as soon as I press start. Also scrolling back through...
Since a time I've been thinking about to build an EA template sothat I don't need to write the whole codes but just the business logic. Here is my code: //+------------------------------------------------------------------+//| MyTemplate.mq4...
Can anyone recommend (from their experience) a decent EA to run? I’ve only got a small account (will demo first anyways). There’s so many to choose from on MT4. But I’m sure a lot of scams too. So far I’ve liked the backtests I’ve done for <Deleted>. Anyone use and can share an experience with...
Hi, I have been working on this EA for quite a while and I cannot find a way to make it open positions when the MACD line and the Signal line cross. In this code, it opens positions when the MACD crosses the value 0. Can anyone help me find a way to open positions when the MACD line and Signal line...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.