Stoploss and Target in absolute number

Hi,
In my strategy i like to place a stop loss of 20 points and target of 30 points, following way i have coded, but i’m not getting the desired result i.e it is not exiting at defined target. please tell me is there anything wrong that i have coded.