Maybe the translation but what do you mean by transfer the SL to the profitability zone? And when 300 points in profit move the SL to 100 points past the open?
That is not a trivial thing to implement. You will need to identify those supports/resistances from the zigzag first and then plot the line. Can you do any of those things now?