I believe the code for the market order is first and then below is the hold zone code but I havent looked in awhile. If you read it t should be obvious when you get to the output lines.
By the way if you want to use % of PC as SAFE just change that in the code.