you could do this very easily with the Simplified creation tool.
Start with a 1m chart that has those indicators loaded.
Click NEW and the Simplified creation will walk you through it. I can’t remember if it has built in trailing stop code but you can find all sorts in the snippet library.
it’s a good way of learning how different ideas get represented in code.