how to write a script for supertrend (5,1.1) , RSi crossing 45 and MACD crssover between -1 and 1Intraday momentum crosssing 45

how to write a script for supertrend (5,1.1) , RSi crossing 45 and MACD crssover between -1 and 1Intraday momentum crosssing 45