Converted to pinescript v5.
Added the option to define whether the signal is Entry / Exit only, or a combined Entry & Exit Signal.
Suggest to use the "Other Notes" field to define a trade ID when posting separate Entry / Exit Signals.
If Entry / Exit is selected, only the relevant parts will be constructed in the message, other fields will be ignored.