Trade mode does run tick by tick.
It is not advisable to run in trade mode before thoroughly testing in test mode.

+ for a stop
- for a limit

Buy Stop = enterLong(0,entry) .... pending buy above price
Buy Limit = enterLong(0,-entry) .... pending buy below price
Sell Stop = enterShort(0,entry) .... pending sell below price
Sell Limit = enterShort(0,-entry) .... pending sell above price

you must use the correct one or risk entering at market