A Stamford company executive has been charged with insider trading.

Dennis W. Hamilton of Norwalk was recently arrested on a criminal complaint and appeared in New Haven court to face the charges. He was later released on a $2 million bond into home confinement with electronic monitoring.

As alleged in the complaint, Hamilton was vice president of tax at Harman International Industries Inc. Beginning in 2009, Harman reportedly allowed company insiders to buy or sell Harman securities in the public market during a declared trading window period, which he and other executives participated in until notification in September 2013 that the employees were no longer able to engage in the open market.

According to the complaint, in October 2013, Hamilton received financial earnings releases and was in a conference call discussing common stock. Later that month, Hamilton purchased 17,000 shares of Hamilton stock for between $72.07 and $72.67 per share through a Charles Schwab account for him and his wife. He reported positive earnings and the closing price increased to $81.02. Between Oct. 31, 2013 and Nov. 5, 2013, Hamilton reportedly wrote at least 200 covered calls at a strike price of $70, expiring on Nov. 16, 2013, for a premium of $203,366. Hamilton gained $131,958 on the shares he purchased in October.

The complaint charges Hamilton securities fraud-insider trading, an offense that carries a maximum term of imprisonment of 20 years.