7-10 flattener trade
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © abhishekjoshi1493

//@version=5
indicator("My script")
fiveyytm = request.security(symbol = "TVC:IN05Y", timeframe = timeframe.period, expression = close)
tenyytm = request.security(symbol = "TVC:IN10Y", timeframe = timeframe.period, expression = close)

sevenyytm = request.security(symbol = "TVC:IN07Y", timeframe = timeframe.period, expression = close)
twoyytm = request.security(symbol = "TVC:IN02Y", timeframe = timeframe.period, expression = close)
//plot(tenyytm-fiveyytm)
plot(tenyytm-sevenyytm)
//plot(sevenyytm)
//plot(tenyytm-twoyytm)
