options_expiration_and_strike_price_calculator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © natronix

//@version=5

// @description TODO: add library description here
library("options_expiration_and_strike_price_calculator")

// @function TODO: add function description here
// @param x TODO: add parameter x description here
// @returns TODO: add what function returns
//plot(datemonth,"exp date")
monthexp = month(time) + input(1)
dayexp = dayofmonth(time) + input(1)
yearexp = year(time) - 2000
plot(yearexp,"expyear")
plot(monthexp,"expmonth")
plot(dayexp,"expday")

//price rounded to nearest whole plus input(1) for strike price 


//input.symbol(input(QQQ),"ticker", tooltip, inline, group, confirm)

symbol =request.security(input("QQQ"),"1",close)

strikeprice = math.round(symbol + input(1))
plot(strikeprice,"strike")

export fun(float x) =>
	//TODO : add function body and return value here
	x
