How can I import mql4 codes directly into metaeditor 5?

William Roeder  
REZA RAJ: How can I use mql 4 codes in meta editor 5?

The editor for MT4 and MT5 are the same. So I assume you mean meta Trader 5.

You don't. They have to be converted.
          Migrating from MQL4 to MQL5 - MQL5 Articles № 18 (2010)
          Transferring Indicators from MQL4 to MQL5 (2010)
          MQL's OOP notes: Converting MetaTrader 4 indicators to MetaTrader 5 (2016)
          Market Condition Evaluation based on standard indicators in Metatrader 5 - Trading Systems - MQL5 programming forum - Page 222 #2218 (2017)
          Problem with drawing indicators in mql5 - General - MQL5 programming forum #2 (2021)