hello everyone, can someone please look at my trades and help me figure out why my stop limits get cancelled? You will see that my algo places trades and then a stop limit that subsequently gets cancelled.  I want my stoplosses to prevent me from ever loosing more than 2%. If pair goes down more than 0.9991 % from where i purchased it, the stop limit order should trigger and buy back or sell my lots. You will see this in the  variable called twoPercent. 

i know that i am setholdings to 10% of my portfolio but my stoplimit is for 500,000 lots. how do i make sure my stoplimit is ordering whatever allocation of the pair i have in my portfolio at the time?