How do I create dynamic client order IDs?

I need help identifying which signal is producing a buy/sell order.
I thought a good way would be to use the client_order_id, which would include a timestamp, the ticker, and some text that designates that signal.

Can someone provide some help on the code?