I\'ve written some simple code to always set my risk at 1% no matter where my stop loss is set. Here\'s what it looks like when I open a short position.
SL =