Retiree investor and Social Security Question

Hi. I'm 57 years old, retired since age 51. Is there a way to have a business or tax strategy simply managing my investments while contributing or being able to have capital gains income count toward retirement benefits at age 62?  I check my yearly Social Security benefits and they continue to lower every year since I retired from the workforce even though my capital gains taxes are more than they ever have been ... Thank You