Persian mirror typing in MetaTrader 5

 
Hello. I have a question. In MetaTrader 5, when I type Persian, words are written from left to right and letters are separated. And sometimes only a straight line is drawn and the text option does not work. Please help. Thanks.
 
koorosh koohdarIn MetaTrader 5, when I type
You want help, provide information. “When you type:”  where are you typing? What did you do before? Where is your screenshot?
 
RTL text rendering broken in CButton/CLabel after migration to DirectWrite (Persian/Arabic)


After recent MetaTrader 5 updates (Build 54xx+, Nov 2025),

all RTL languages (Persian/Arabic/Hebrew) are rendered incorrectly

in standard GUI controls such as CButton and CLabel.

Symptoms:

  • Text is displayed in reversed logical order
  • Characters are not shaped (Arabic/Persian letters are disconnected)
  • Changing font (Tahoma, Arial, Segoe UI, etc.) does NOT help

Root cause is very likely incomplete DirectWrite migration:

  • Text is drawn without using IDWriteTextLayout
  • No BiDi algorithm applied
  • No RTL flow/reading direction configured

This worked correctly before GDI → DirectWrite migration.

Affects:

This makes RTL languages unusable in MT5 GUI.

Please see minimal reproducible example below.


#include <Controls/Button.mqh>
#include <Controls/Label.mqh>

CButton btn;
CLabel  lbl;

int OnInit()
{
   btn.Create(0, "btn", 0, 10, 10, 200, 40);
   btn.Text("سلام دنیا");

   lbl.Create(0, "lbl", 0, 10, 60, 300, 25);
   lbl.Text("حد ضرر / حد سود فعال");

   return(INIT_SUCCEEDED);
}

 
William Roeder #:
You want help, provide information. “When you type:”  where are you typing? What did you do before? Where is your screenshot?

when I typing text for comment on my chart as persian the text is mirro

for exampel    سلام     --------م ا ل س

 

With respect and regards, Mr. Mashayekhi, thank you for your response. If you don't mind, please provide a step-by-step method for correcting this issue. I would be grateful.

Because I thought it was a problem with my system, I changed my Windows, but it didn't help. Thank you very much.

 

Forum on trading, automated trading systems and testing trading strategies

All about MT5 updates.

Alain Verleyen, 2025.12.16 22:54

In case you got an BETA update, for whatever reason, and you want to move to the last official release :

  • A Telegram channel has been created, you will always find there the last official release needed exe files.
  • MT5 Terminal is available in several versions according to your CPU capabilities. You can check which version you have to use in the Journal log, at the first entries after you started MT5.

Here my version is AVX2, an other possibility is X64

  • With this information you will know which zip file to download.


  • You then just have to replace your current exe files with the ones from the Zip. If you don't know how to do, then doing this operation is probably not a good idea.

After MT5 is restarted, you will have the last official release.

If you don't want to get beta-build updates again :

  • NEVER connect to MetaQuotes-Demo server.
  • NEVER use MT5 Terminal Help menu=>Check for Updates=>Last Beta Version.