Stress

Dear All 

How to get the stress value manually when applying a strain to a cell at NVT ensemble. I am applying increment strain to a cell and I want to calculate the stress to build stress-strain curve. 

Best Regards