Kindly write a code for startergy in 5 min intraday chart of supertrend (7,1). Buy signal generates when above supertrend setup shows buy and sell signal generates when above supertrend shows sell signal. Stoploss occurs when supertrend changes from buy mode to sell mode or vice versa while in active trade.
It is not possible to code Supertrend in Tradescript. If you are using Amibroker you can connect it with Pi and can use Super Trend Indicator AFL, or you can use Supertrend in KITE