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

Video: Here Is Why Carvana Isn't Worried About Amazon

Video: Here Is Why Carvana Isn't Worried About Amazon

Jim Cramer: Okta Is a Very Expensive Stock

Jim Cramer: Okta Is a Very Expensive Stock

Midday Jolt: BlackBerry, Oil, and Microsoft

Midday Jolt: BlackBerry, Oil, and Microsoft

BlackBerry CEO: Stock Price Should Be Higher, We Are Looking at M&A

BlackBerry CEO: Stock Price Should Be Higher, We Are Looking at M&A

Jim Cramer: Some Industrials Stocks Are Becoming Great Values

Jim Cramer: Some Industrials Stocks Are Becoming Great Values