You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Unfortunately, I can't reproduce this (although I've had it before too). As you realise, the only way to (possibly) get the bug fixed is to provide MetaQuotes with a way to reproduce it.
Once I have such a procedure, I can report the bug.
Useless but interesting examples of working with bits.
1. Getting the average of two integers. The usual way (x + y) >> 1 can lead to overflow when adding large x and y. Here is the solution (the speed is only slightly slower):
2. Number flipping (b31...b0 --> b0...b31) is used sometimes in cryptography and radio engineering, usually done in a loop. Here's a solution almost twice as fast:
uint ReverseBits(uint v) { v = ((v >> 1) & 0x55555555) | ((v & 0x55555555) << 1); v = ((v >> 2) & 0x33333333) | ((v & 0x33333333) << 2); v = ((v >> 4) & 0x0F0F0F0F) | ((v & 0x0F0F0F0F) << 4); v = ((v >> 8) & 0x00FF00FF) | ((v & 0x00FF00FF) << 8); v = (v >> 16) | (v << 16); return v; }How diverse margin requirements can be.
I have no idea how to work with it through MQL5.
Fórum de negociação, sistemas de negociação automatizados e testes de estratégias de negociação
Bibliotecas: JSON Library for LLMs
fxsaber, 2026.02.19 08:14
Interesting result.
Result.
Therefore, double checking can be replaced with single checking.
Probably invented an ancient bicycle. For parsing numbers, a cheap digit identifier.
Are ':', ';', '<', '=', '>', '?' and those with codes in the range 70..7F parsed normally? Or are they numbers too?
But in some cases it can be used for identification as well.
Fórum de negociação, sistemas de negociação automatizados e testes de estratégias de negociação
Bibliotecas: JSON Library for LLMs
fxsaber, 2026.02.19 09:02
A more versatile option.Result.
Are ':', ';', '<', '=', '>', '?' and those with codes in the range 70..7F parsed normally? Or are they numbers too?
Fórum de negociação, sistemas de negociação automatizados e testes de estratégias de negociação
Bibliotecas: JSON Library for LLMs
fxsaber, 2026.02.19 23:12
Into work techniques
now ssd m2 are sold on 16gb intel optane(original), new 150 write without reduction, and read about 900, resource almost eternal for 16gb - 180tb
if someone has enough 16gb for a tester and a slot is available (or in PCI through an adapter) good solution
the price is just under 400r! search on ozone M10 16gb
someone under the system cache takes, the resource is almost eternal
You need to create a copy of a real symbol into a custom one. To do this, we need to transfer all the bar history to the custom one.
And we need to know if it is possible to do it or not. For this purpose I wrote such a function.
Is there a more elegant option to find out if all bars are available or not?
Description:
Currently, in MQL5, an Expert Advisor is strictly bound to the chart it is running on. There is no native, event-driven way to detect when a user switches focus (clicks) between different chart tabs within the terminal unless the EA is present on every single chart.
While a high-frequency OnTimer (e.g., 50ms) can poll CHART_BRING_TO_TOP, this is inefficient and resource-heavy when managing many charts.
Proposed Solution:
Introduce a new event handler: void OnChartSwitch(long focusedChartID, string symbol, ENUM_TIMEFRAME period).
This event should:
Trigger whenever the user clicks on a different chart tab in the terminal.
Be available to any EA running in the terminal, regardless of which chart the EA is physically attached to (or at least provide a global chart property accessible via OnChartEvent).
Use Case:
Multi-symbol Dashboards: Allowing a single "Controller" EA to sync external tools (via DLL/Named Pipes) or GUI panels instantly when the trader navigates through their Market Watch or open charts.
Dynamic Analysis: Syncing external Order Management Systems (OMS) with the currently viewed symbol without needing to attach an EA to dozens of open windows.
Benefit:
Significant reduction in CPU overhead compared to Timer-based polling and a much more responsive "Push" architecture for modern trading setups.