Expert Advisors and Automated Trading - page 6

I want to share this. https://youtu.be/_FuuYSM7yOo?si=JiKiHDWCozLYXHK3 Maybe we can build a function for this
I was scouring the internet for inspiration for my next project, then I came across several claims that they can provide indicators that work on mobile. I was curious because the best bet to get signals on mobile is setting up the indicator on a pc terminal somewhere with the signal account, then
Hello Guys When I place a trade on MT5 Mobile App then Stoploss and Target Price values are showing with USD and Points but when i trade on MT5 Desktop Terminal, the values are not showing in USD and Points. I have Posted this Topic 1 week back but nobody guided me properly. for more details of the
problem about the EA A problem was found when I back test the EA, the pictures show that the program can not be run and i can not found the reason, someone who can help me
Hi all, Moderately experienced VBA Coder just getting into Forex and MQL5 coding here. Novice level MT5 user and coder, I can mostly follow the code done intuitively but there are some structures I struggle with (compounded by the usual issues of reading someone elses code). The guy I followed in
  Random order functionality  (13   1 2)
Hello, I'm trying to create an Expert Advisor (EA) that can generate random BUY or SELL orders, and I'm using the following for this: // Generate random number (0 or 1) MathSrand (( int ) TimeLocal ()); int randomChoice = MathRand () % 2 ; So far, the EA has only placed 15 consecutive BUY
Hello, does anyone know what the lparam values mean after a CHARTEVENT_CHART_CHANGE event
I have an indicator running on M15 timeframe. I am selecting a 15minute bar [i] and getting the time of the bar. I am tring to use the time of the bar (rounded down to the nearest full hour) to identify the corresponding bar on the H1 timeframe. Its not working.... ANy help please. //Search bar by
Hi, I'm a little confused about what exactly these functions return. If I understand correctly: - iTickVolume returns the count of ticks used to build a bar. It is also passed by onCalculate with the "tick_volume" array. It's also shown in the data window as "Tick volume". Right? - IRealVolume
Hi, since I dont know when, I try to figure out how the z-order works with MQL chart objects and my conclusion is so far that nothing works, no matter which value I give a chart object and its always random. For example: The picture shows a pattern and vertical lines, this comes from a BitmapLabel
How to only use the first decimal place in a calculation without rounding up For example 0.9864693728 = 0.9
I am totally new here and trying to code something like a simple open and close. However the EA is hitting the TP it is not continuing with anything else in the code. The part of the code to check and close is not even triggered as I don't see the print messages in the journal. Can someone explain
"My EA works only on Gold symbols. On EURUSD it shows demonstration mode with no trading. how to mql5 test on XAUUSD or GOLD symbols to see actual trading performance."
[Deleted]
Hello, I noticed that MT4 and my Windows VPS get slower over time, and sometimes MT4/MT5 freezes. I suspect this happens because MT4/MT5 might be leaving large amounts of chart data, cache, or other files that keep loading, causing it to become slower and slower. I know it’s not a VPS problem
Hi, I go to Market > MetaTrader 5 > Experts > Free. I click on a Robot. In the left section there is a DOWNLOAD button. Once I click it, there is a prompt - "Do you have Meta Trader 5?" I click on "Yes" and nothing happens
Hi, How does it work, if we sell EA in the market how does the charges work. Is it one time upload charge that we have to pay or it will get deducted monthly repeatedly. I have developed an EA and want to upload for selling and I have USD 125 and kindly let me know on the same
Hi, i would know if there is any correlation in Tester about "modelling" option and timeframe option. That is, can I be sure that if I choose the " real tick based on real ticks" modelling, I will get the same ticks regardless of the timeframe chosen? I ask because I tried running a test on M1 and
How can I edit the What's New Description in the Product
Hey everyone, quick note first: This is not an ad. I’m genuinely curious how you use AI (Claude, Gemini, ChatGPT) in your MQL5 workflow to speed things up and reduce errors. I’d love to start a standing “Chatbots & Workflow” topic here—sharing real prompts, practices, and pitfalls. I’ve been coding
Hi All, I tested a EA and it is working fine in DEMO account . But it is not taking trade in Live Account. I am using [redacted] MT5Real. Kindly help me on this Hi All, I have 2 EA's tested in DEMO account and now loaded in [redacted] MT5 real account. Only one of the EA is taking orders and the
Hello everyone, maybe someone had similar problem when installing the Meta Trader Strategy Tester on virtual machine. So let me tell you in short that the problem is. I have a dedicated server from Hetzner . On that machine I have installed The Proxmox to easily install the OS that I need. I
I’m running MT5 backtests through the command line using a .bat and .ini file. Everything works — MT5 opens, runs the test, and shows “saving report…” window dialog — but no .html report is ever created in the specified directory. I’ve tried: Using /config: with full paths Different report names and
Hi there, Probably a really simple way but is there anyway to extract the result data from backtesting in MT5 into excel? I have backtested an EA over 2 years and have over 100 trades. I want to extract the buy and sell price of those trades to analysis. Any help would be much appreciated. Cheers
  Invalid Stop  (2)
Hello Can you kindly review my code and advise the cause of the invalid stop error. Please see the code below. Thanks #property copyright "User" #property link "" #property version "1.00" // Include necessary libraries for trading operations and indicators #include <Trade\Trade.mqh> #include
Hi, I am using MT5 on a Macbook. When i go to File > Open Data Folder > MQL5 > Experts, I am unable to paste/drag EX5 file in the Experts folder. Basically, nothing happens. No error nothing. Tried to refresh. Auto Trading button is ON. Don't know what is happening
How to stop and restart MQLś VPS automatically? like a timer...  in case EA does not have the option nor cannot adjust it with the spread... thnx,  L.
I don't know which version introduced the change, but until relatively recently it was possible to create a descendant of a structure and assign the "value" of its ancestor to this descendant: struct ExtDateTime : public MqlDateTime { void Set( const MqlDateTime& value ) { this = value
hey there, got an inpossible issue... on a live n demo account trading is disabled. i get it all of these things like ticks in settings, algotrading or login, password n have turned one click trades, charts... srsly i do not konw that else should i do... could u help me? its my fourth day when i
Can anyone help me test and run the official sample script: Scripts/Examples/Canvas/Chart/HistogramChartSample.mq5 Normally it should be displayed But what I get is: This may be a bug in the official code
Hey everyone, I’ve been running multiple backtests lately and noticed how easy it is to get great historical results that completely fall apart in live trading. Curious to know — how do you balance optimization versus keeping your strategy general enough to perform well in real conditions? Do you