I am a bit confused by the signal cmds, cmd=flushpendingsignals and cmd=closeallpositions. For my system I will be inputting signals with limit orders prior to the close of market and I would like for all pending orders to execute at market price prior to the end of close. However, I have signals that are "conditionalupon" the execution of prior signals. Should I use "flush" or "close" all pending orders since the order of execution is important? Also, what are the differences?