Hello I put print functions in my code to display information, but only some of them are displayed in jurnal . All of them are displayed in MT4 tester but not in MT5. Do I have to change certain settings in MT5 Tester? Help me please. Thanks very much
New “sk-proj” OpenAI Key Truncated? WebRequest Always Returns “You didn’t provide an API key.”
(11 1 2)
Hello everyone, I’m attempting to integrate ChatGPT (gpt-3.5-turbo) into MetaTrader 5 using WebRequest() in MQL5. When I call https://api.openai.com/v1/chat/completions , I consistently get a 401 response telling me: "You didn’t provide an API key. You need to provide your API key in an
I'm in the process of building a local farm network but there are a couple of important points for which I couldn't find an answer: I have several relatively powerful computers but one of them is much older and clearly much slower (an old Intel Core i3 processor). My plan is to use this old computer
Is it possible to code a trading panel in MQL5 that can be moved and have clickable buttons in Strategy Tester (Visual Mode)
The session NASDAQ100 lasts from 0:00 to 23:00, the time is 14:05 - what period can be examined with optimization? Is it possible to examine the period from 00:00 to 14:00
Hi guys , when i backtesting my robot, my backtester lags a lot, switching tabs to positions or a log just leaves a white background, but there is no such thing with other robots, are there any ways to influence the backtester specifically without breaking the logic of your EA
Hey everyone, running into an issue where if I start a backtest on EURUSD D1, starting from 2023.01.01, the oldest daily bar available will be 2022.01.03, for a total of 261 bars. Is there a reason I couldn't query for let's say 500 bars from my starting date( 2023.01.01) ? I tried implementing the
The cause of this error in my case was no available RAM in my PC as it was full up and MQL5 had crashed due to this? A possible fix would be to set meta trader to the highest priority on your operating system
Hi everyone, I’m considering running two different Expert Advisors (EAs) on the same trading account and wanted to get some insights from those with experience. Is it technically possible to operate two EAs on the same account without conflicts? Are there any risks or potential issues I should be
Hello, In MetaTrader 5, I would like to generate a custom trading report in an XML or HTML file, which, in addition to the standard columns, includes an additional column with the ID Expert Advisor responsible for a given trade. Could anyone kindly guide me on how to achieve this, or share any
Hello People
I am just curious if EA can commnuicate with strategytester duing its optimizaiton process.
I can see that with "ParameterGetRange" and "ParameterSetRange" you can freely get and set optimizaiton parameters on strategy tester from your EA.
However I have not found the ways of...
my strategy is triggered when macd on 2 time interval is aligned , say 5min and 15min . i.e. after 5min bar close but during the intrabar of 15min, could mql5 do this ? or must wait until both bars r closed
Hi everyone, i started to study MQL5 and robo trading in the last 2 weeks, then i am totally new to this coding topic. I am setting up the basic of the code. This is my idea: - based on conditions ("the strategy", but this will come later) i setup buy o sell position, - setup a maxRisk, ie maximum
... or should I run optiizations on every timeframe? Thank You
This is the same example from the library https://www.mql5.com/en/docs/standardlibrary/controls/ccheckgroup with the highlighted lines changed in order to produce the issue in question. I'm trying to initialize all the check-boxes as checked, even those not visible (you have to scroll the chek-group
Hey everyone, I'm developing an Elliott Wave-based EA that relies on three timeframes to analyze market structure and find trade entries: Higher timeframe (e.g., H1) → Identifies the larger Elliott Wave cycle. Current timeframe (e.g., M15) → Trades based on wave structure. Lower timeframe (e.g., M5)
Hello, I am running the optimization for a bot by selecting the period 2021.01.01 until 2025.02.07, everything works great but then I realized that on the graph, the testing do not run for the full period. And when I run the exact same input on another pair, I get once again the testing stopping
Hi all, I've read lots of conflicting information about this question so i'd like a clear and simple answer if possible. Are commissions and swaps taken into account during the MT5 strategy tester and optimization process? I see a column for commissions in my final backtest report, however it is
//+------------------------------------------------------------------+ //| GoldPro_v1.mq5 | //| Copyright 2023, MetaQuotes Ltd. | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Expert initialization
Hello, I have been spending hundreds of dollars on agents in the testing cloud lately. It seems to me like the money is disappearing there too quickly. I wanted to ask if there is a plan for high volume users? And maybe I am doing something wrong that makes using agents very expensive. I would be
Good morning everyone, I have created a graphical panel meant for forex traders who want to follow ImanTrading's style of categorical trading. However I cannot seem to get it to draw lines for the take profit and stoploss. I know there are other graphical panels out there for free however they come
Hello! In MT5, I would like to trade on an alternative timeframe that's not natively supported, let's say M23 for example. Is this possible in any way? I have found this: https://www.mql5.com/en/forum/219849. In that post, user Fernando Carreiro says, that "You can already create your own Custom
I've already written the first part of the code. I think that it's the first ever open-source EA that calculates the StopLoss in Cash!!!!! Later we can add NetLossPerOnePrecentLotPerPoint into the code also, but at first, we should improve its calculation functions therefore it never gives us a
Hi everyone, I’m looking for the best way to automatically export trade data in real-time whenever a trade is opened or closed. I would like to export the data in either JSON or CSV format. This is specifically for my students, as I want to track their trades and analyze them on my own platform
Can someone explain to me, how to get all trades to close at the same place, this is EA we are talking about? You have one that sells at 1.30000, but the market has not thought so, you add a trade at 1.30090, but the market has not thought so either so you add a trade when the market turns at
Trying to delete object: OBJ_TREND void OnChartEvent ( const int id, const long &lparam, const double &dparam, const string &sparam) { PrintFormat ( "%s: %d, %f, %s %s" , EnumToString (( ENUM_CHART_EVENT )id), lparam, dparam, sparam, EnumToString (( ENUM_OBJECT )
I am trying to capture in real time if any position is closed and then get its comment. not the last position in history. whatever i try nothing seems to work, here is an example can anyone give me a clue or it can not be done ! void OnTradeTransaction ( const MqlTradeTransaction &trans, const
Hi coders, I am looking for a JSON parser library for my MQL5 project . I have read some data online through WebRequest which is JSON data. I need to read it from MQL5 code to get the value. Thanks in advanced. #JSON_Parser #MQL5_Code
Here is a step by step guide for buying, installing, testing and using a Metatrader 5 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
Is the value returned by `AccountInfoDouble(ACCOUNT_PROFIT)` function the profit of all the currently open positions or today's profit of all the CLOSED + OPEN trades? I want to know the today's profit of my EA. How should I use this function

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.