Hi,Can I have the ATR number of a particular candle on my chart when I click on the candle. Thanks
Basically, I want my EA to manage open trades with OrderModify(). My EA is programmed to take trades when 2 Moving Averages are crossing. Every time the 2 Moving Averages cross, it opens 2 trades. Trade 1: Take Profit = 1.0 * ATR Stop Loss = 1.5 * ATR Trade 2: No Take Profit Stop Loss = 1.5 * ATR...
Hello, I've found a bug with Bars function, it worked great until build 1978. Description: Bars function call hangs on a newly created custom symbol or empty data symbol. Bug started from build 1983 and later. How to reproduce: Open a random chart and run the following piece of code (script): void...
Hello, everyone! I've been using MT4 and MT5 for a long time and I think I master MQL4 and MQL5 languages quite well. So, I've decided to build an expert advisor builder in order to help people make their own EA without having programming skills. My question can sound trivial or stupid, but in order...
As I'm typing into the metaEditor I noticed a small arrow flashing next to the 'for' loop operator. What is its significance?
Hello Fellow Coder and Trader.
I have some notable issue you may experience the same thing in the past or in the future.
The issue is this, price hit take profit but the take profits are never executed. Making my trading robot need to wait another half day to one day for the price come back....
Hello to everybody, My goal is to write an EA which react in a particular way once I close a specified deal; i.e. suppose I have just closed a specified deal by the following code ticket = PositionGetTicket(i); print("Opened order ticket no.: "+IntegerToString(ticket)+"...
Hi, is there any idea how to check an account is under investor mode / trader mode using a function in MQL4? I have used IsTradeAllowed but it is actually used to check AutoTrading button. Thanks.
double popen = iOpen(Symbol(),0,1); double PHighest = High[iHighest(Symbol(),0,MODE_HIGH,10,0)];double PLowest = Low[iLowest(Symbol(),0,MODE_LOW,10,0)]; ObjectCreate("line",OBJ_TREND,0,Time[PHighest],PHighest,Time[-10],popen); Where the fault error: Time[PHighest] need integer value,...
I have tried to subscribe to a signal but no trades are copied even though there are active trades. I noticed in the Broker I use (Pepperstone UK) all symbols that you can trade on have a .r extension and the normal symbol names is disabled for trading, e.g. EURUSD.r is tradeable but not EURUSD. Is...
Hello, I was searching the forum but didn't find an answer to it. So hopefully maybe somebody has an answer to this: Is there a way in my OnTick() function to detect that I missed a tick (because another tick arrived during the tick method was still running)? Thank you in advance.
Hello I run the same EA on multiple graphics, it executes and order when the conditions are met at the open of a new candle. But sometimes more than one pair gives the signal at the same time resulting in two open order at exactly the same time, as shown in the picture. Is there anyway to remedy...
Hello any help with the below would be appreciated... At the bottom of the image the trades are shown. The last trades are a buy in at 2865 with a S/L at 2860.75. The buy in is closed with a sell out at 2862.25. Question, why doesn't the sell out wait until the price drops to 2860.75? Why does...
Hello everyone, I am interested in creating some filters through the wizard. .. This time the intraday filter for profit or loss management..Follows code, not working properly, could you guys help on the logic.. Many Thanks!...
Hi fellow coders, Is there a way in MQL5 code (a global variable maybe?) to get the name of the SET file being used by the EA? I have searched the forum but cannot find any examples. I have coded an EA and I am testing the same EA on different accounts with different SET files and I want to...
Here is the Code void partialClose( int num) { //Print("partial close"); for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) { int ticket = PositionGetTicket (i); if (num == 1 ) { //Print(ticket); if ( PositionGetDouble ( POSITION_VOLUME
Hi guysMy Metatrader 5 doesn't show the results of my expert trades. it shows buy and sell on chart but graph and backtest are empty. I really don't know what is wrong with this. please if anyone could tell me how it can be solved. I uploaded photos of my expert and metatrader so you guys take a...
Hi, I try to write a description for my EA but i got this error and I dont understand why. The counter says it is below 3600 and when I save it delete everything and say it is too long. Any idea?
How can it be when our account is connected to a signal. Block gbpusd currency?I don't want gbpusd to be traded
Does anyone know, I have activated <Product Name Removed>, I know this EA only opens 1 position for a particular pair, but I get weird about the EA, opening more than 5 positions for a particular pair. Can anyone help me overcome this problem.
Hello, I've been building EA's for some time now and it seems (to me) like I've finally made it. However, Im kind of affraid of running my bot on live account. Many tests were proffitable, dropdowns are small and tick history is 98% quality [report attached (unfortunately not in English but should...
Hi,
is there any body who can tell me how can I do not show the indicators in strategy tester visualization mode.
I used IndicatorRelease() but it does not work at all.
please advise
Hi, i am beginner with mql5 i have this function in MQL4 double get_Lot_from_last_ord(string SYM, int MAGIC){ double LastLot=0; for(int i=OrdersHistoryTotal()-1; i>=0; i--) { if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) if(OrderSymbol()==SYM && OrderMagicNumber()==MAGIC)...
Basically, I want my EA to manage open trades with OrderModify(). My EA is programmed to take trades when 2 Moving Averages are crossing. Every time the 2 Moving Averages cross, it opens 2 trades. Trade 1: Take Profit = 1.0 * ATR Stop Loss = 1.5 * ATR Trade 2: No Take Profit Stop Loss = 1.5 * ATR...
[Deleted]
Hello, I stumbled upon an issue during the development of an Expert Advisor and I was wondering if anyone had any idea that might help. I get an "Invalid Price" error in backtest when the Expert Advisor tries to close a position on XAUUSD on a specific broker. The error messages my Expert Advisor...
I got a little confused on this indicator I can't get the right values And the expert does not emit any signal I asked the programmers for guidance on this Thanks everyone//+------------------------------------------------------------------+extern int MaPeriod = 20; // Hama...
if EA does not deviation setting, is it set in MT5 option setting?
Hello all, I have a very simple code that uses exponential moving averages at 2 lengths. When the shorter length crosses above the other then a long position is taken. Sometimes it works. That is ,when there is an obvious crossing I can see on the chart a long position is taken but at other...
I place my orders with OrderSend function and I use the MqlTradeRequest to fill the order and my (type_filling) is equal to 2. when I run the test is buys and sells normally and it is shown in Operations and History tab in Strategy Tester Visualization but they are not shown in Trade tab. So if...

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.