The Set methods cannot submit orders without an entry being filled so the orders being submitted would mean that you had also entered into a position.
As mentioned while I cannot test the code for you there are ways for you to test this code by using prints. A Print would be suggested inside your entry condition so you can see when that is becoming true. When that condition becomes true you will enter a position and the targets will be submitted once the entry has filled. When you test the script and see the targets you should also see a print confirming that is working as expected.

Comment