Where trade script works

Please brief your question,In general Tradescript works in zerodha pi , with the help of tradescript we can write our condition and can apply it in backtest, create scripted alerts, scanners , Expert Advisors etc