Setting Stop Loss Error

 

Hi can anyone share the code for the following problem

Problem statement :  Need to place a SL on new high (when candle closes at new high ) the sell position must be close

Reason: