Help me code my strategy in tradescript for my class

Hello I am a student studying Forex Trading and I am in a class of tradescript and I need help in coding this strategy.

If I am using Crossover of the T3 Tilson period 3 and 5 and I am looking to enter the market (Buy or Sale) upon a confirmation candle and a stop loss of 30 Pips and when is above the 20 plus Pips in Profit cancel and replace stop loss to break even and for every 10 Pips of profit cancel and replace stop loss to lock in profit.

Can you help me with a Code.

There is no such Tilson predefined function …please specify in brief about your condition.​

Where r you taking classes in Tradescript ?