Thanks @jstap. The solution for what I wanted is actually much easier than I thought. Draw a horizontal line and then use object on the chart as a stop loss mode. I had to create seperate Buy and Sell buttons, since I want to open trades manually with this EA. But I'm really happy with it. I just pull the line to my intended stop and click buy or sell. Position size all automatic.
S