I am trying to automatically attach essentially a limit stop loss order after every buy signal thats recieved. Functions are at line 102 and 111.  From my thought process, after the condition of the Buy Signal runs, the Sell Singal should then apply the specified parameters to the open holding.  

Can anyone please advise?

Author