I am attempting to automate my strategy and have added a comment into the strategy entry/exits with = "Buy {{ticker}} q=xxxx" as an example. I then use this {{strategy.order.comment}} in the alert message.
What returns is a ticker code like BTCUSDT.P which is not accepted by Bybit - they are expecting BTCUSDT.
As I've coded that comment parameter section to be copied easily across all entries/TP/SLs, I am now unsure how to resolve this without manually hardcoding each individual entry/exit.
Are there any suggestions to trimming the .P values from the tickers? I assume there's possibly a library somewhere or one that could be created to do so?
I've spent a good part of this afternoon research Stack, google, youtube but without finding anything remotely helpful. Has anyone else come across this and been able to resolve it?