Pegasystems (PEGA) investors are having a great year. 

Shares of the tech hardware and services provider have skyrocketed 28% this year, dusting the 5% gain for the Nasdaq Composite . Pegasystems founder and CEO Alan Trefler tells TheStreet the market is rewarding the company for being in the right place, at the right now. For example, the company -- which Trefler founded in 1983 -- is a player in artificial intelligence that helps improve the workflow of businesses.

Trefler also discussed the need for tech companies to protect customer data and how cyber threats remain a real issue. 

More from Video

Former U.S. Education Secretary: Voters Are to Blame for Struggling Schools

Former U.S. Education Secretary: Voters Are to Blame for Struggling Schools

Meet Blackbird, the New 'Uber of the Skies'

Meet Blackbird, the New 'Uber of the Skies'

Here's How to Trade Walmart, Nordstrom, Macy's and J.C. Penney After Earnings

Here's How to Trade Walmart, Nordstrom, Macy's and J.C. Penney After Earnings

Here's Why Stock Picking Is Especially Important in the Retail Sector

Here's Why Stock Picking Is Especially Important in the Retail Sector

Tip For Financial Advisors: Think Outside the Box

Tip For Financial Advisors: Think Outside the Box