Hi all! I scalp while watching 20-30 charts and when I get into positions on a few of them, I find myself needing to manually adjust the window sizing or minimising all others to then arrange windows (tiled). Is there a way to run a script which minimises all non-open-position charts & then arrange
Hi, Just got this error message in the validation report: test on EURUSD,H1 (netting) not synchronized with trade server tester process creation error [metatester64.exe][1455]; please check if it is blocked by antivirus software test agent start error I think there may be an issue on the MetaQuotes
hello world, can anyone teach me how to convert a trading indicator into a trading robot
Hello, I keep getting Invalid Request errors while trying to delete a pending order on the MT5 strategy tester. Running the EA on live has no issues. I've paused the EA on a breakpoint to show the issue: The journal shows this error: Code: #include <Trade/Trade.mqh> #include <MT4Orders.mqh> #include
Creating custom symbol , filling up its rates then navegante into it stays in waiting for update.
(2)
When creating custom symbol then adding its rates then using ChartSetSymbolPeriod to go to that new symbol , the chart stays in waiting for update mode until the user moves the chart. (the chart updates the rates constantly , but not shown until user moves)
this is my mt5 EA it has a recovery function.it trades one trade per day and i want to make is if it loses the first trade the recovery trade enters at the opposite direction with more lots so far i made it but i need the EA also to not taka a recover trade if the first trade is profitable but i
Hi, I have a mql5 code/program that creates horizontal lines (OBJ_HLINE).I am able to set other parameters of the horizontal line like name,font size,color among other parameters via code but cannot set the object description name through any function that I am aware of and I have to manually click
Hi there! I'm looking for a good source to start learning MQL5 to build my own EAs. I was spending a few hours, sampling different youtube channels, online courses, etc to get started but can t find a path which I can rely on on. Can you please suggest some good courses, books, videos, etc that can
void UpdateStopLoss() { if (!InpBEtrade) { return ;} double bid = SymbolInfoDouble ( _Symbol , SYMBOL_BID ); bid = NormalizeDouble (bid, _Digits ); double ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); ask = NormalizeDouble (ask, _Digits ); int total = PositionsTotal (); for (
hello.. please show me how i can get equity amount of previous time periods, like 5 mins intevals then store them in some kind of array. just for comparison purposes, something like double equity( int timeframe) { double result = accountinfodouble( ACCOUNT_EQUITY , timeframe); return result; }
Hi, i need to exports tickdatas from MT5 with Time format like : yyyy.MM.dd HH.mm.ss.fff Please, could you help me ? i tried with gettickcount but understand nothing. How is it possible to record seconds ans miliseconds for each tick ? my script
Since the latest version of MetaTrader 4 - Verion 4 - Build 1400 - 10 Nov 2023 was released I get the message that my product requires active MQL5 account in Tools->Options->Community. My user ID and password is entered on the Community screen. The same user ID and password I used to enter this
I've been using an specific broker for not that long, like 5 months. I've developed my own EA and until a few weeks ago I noticed every now and then, not always, during my backtesting I would see ticks starting at 13:00 hours but the Symbol Specification in MT always showed quotes and trading
Hello everyone, I hope you're well. Is there a quick shortcut system (hotkeys) for opening and closing orders? Are there any ready-made solutions or compatibilities with the Stream deck? Or maybe scalping links or tutorials where I could find things that look similar? Best Reguards, ZeroCafeine 🙂
Novice question for sure but... am i able to safely backtest on a live account? It strikes me the spread is different between account types from the same broker, and i want to test against actual historical data from the data stream yhat i would be using. I assume Id choose an historic time frame
As beginner I want to know, resumed but step by step that I need to do for a fully automated trading , without human intervention, and the price to get a complete system. to do the fully automated training with a broker selected
I am programming an EA which accesses data from previous bars, makes calculations and based on that determines the signal. It operates on D1 only. It firstly determines the max shift from the current day (one which tester is set up to start) to the last day in the database. In my case it is
Hi all, I'm trying to detect the last profit/loss in the transaction history (which I think I've got right), but something unexpected is happening, hopefully someone will have an idea. Here's the snippet: void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest &
I have pine connector EA set up connecting Trading View and MT5 on the 5%ers Prop Firm download of MT5. I have target type set to price, volume type as percentage calculated based on Loss (which is calculated based on risk). My EA should receive a signal with a risk %, a buy/sell command, the
Dear technical team I have an EA which is working on my local pc but when i migrate it to vps its not opening closing trades EA is very simple and small and not using or calling any DLL files. i checked vps journel and found these error lines showed in screen shot. please advise what to do thank you
Me and a couple other people experience a bug where the forward test results are incorrect. In order to see how well a pass actually did I have to manually run a single test on it. It isn't possible for me to manually check thousands of passes. I am wondering if I could automate it or is there a way
Hey guys! I have been facing some issues adding commission for the metals assets, mainly gold and silver. Can I ask if anyone might know what I have been doing wrong? Thanks in advance! P.S Snapshots below illustrates the issues better
In strategy testing, after the order has reached SL, then an opposite order is created, can this be prevented
Hello Programmers I am in the middle of programming my own EA. I'm not very experienced, so was wondering if someone could help me out here. In my EA, I first declare a long breakout like this: int longBreakout = 0; When my Buy Stop Order gets filled I want the value of 1 to be assigned to the
Dear MetaQuotes and affiliates, thank you for making MetaTrader! However, to my great dismay, I just noticed that the following code, specifically the macro definition... #define isNew(var, ID) isChanged ##ID(var) ...which still worked on 2nd August 2023, today no longer works (compiles)! ## ...is
Hello traders, I'm building an EA, How can I get the difference between the initial tick and the current tick at a given time
void Close_position_withDistance2( double distance_) { double open_price = 0 ; datetime last_position_time = 0 ; for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) { ulong position_ticket = PositionGetTicket (i); double bid = SymbolInfoDouble ( Symbol (), SYMBOL_BID );
Is SymbolIsSynchronized returning true when the symbol on the terminal has the latest bar similar to the trade server or if it has "chart bars" data similar to the trade server
Hello im new to coding this is how it should work, there are 2 MA´s, one with Period 5 and the larger one with Period 50 if them are crossing each other i want to open a long or a short Position. that were my thoughts about the entry now the close of the positions i want to use the Rsi for example...
i'd like to make my EA to close a position if any of these conditions were met : -profit on the position is 100 points -price hit RSI 30 OR 70 depending if it's a Sell or buy Here's my code but for some reason it doesn't work !! Also i'm not quite sure whether "PositionGetDouble " return profit

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.