Set them before the trade, or use function parameters.

enterLong (0,0,Stop1,TP1);
enterShort (0,0,Stop2,TP2);