Can MQL4 codes inside a trading robot compromise Forex account security and privacy?

 
I worked for 5 months on optimizing several robots that I had downloaded from MQL5 and the Internet.
Can MQL4 code written for a robot send your broker's login message to a hacker? Two weeks after I charged my account and started trading with bots
, I was hacked and my account was completely emptied through Cryptocurrencies.
 
Alireza Heidarinejhad: Can MQL4 code written for a robot send your broker's login message to a hacker?
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. You enter your details into the terminal. The code has no access.

  3. If you enabled DLL access, then the code could have read the terminal's files (via Windows DLL) and figured out your details and sent them via the DLL. (This is why code, not executables, can be posted here.)