Need script for modifying stop-loss by using this indicator

 

I Need script that modify your orders by updating the stop loss in line with the i_HighLow value. I trade by moving my stop loss to the boder of i-HighLow until I get stopped out in profit but I have to keep changing it manually. If the script can do this would be very usefull.

Method :

If open BUY position moving stoploss to highest high line (orange)
If open Sell position moving stoploss to lowest low line (blue)

Thanks.

Files:
Reason: