Timed_exit_alert_for_webhook
// 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("Timed_exit_alert_for_webhook")

t = time(timeframe.period, input('1440- 1441:23456',title='Time to send in close order'))
//plot(na(t) ? 0 : 1)
//bgcolor(not na(t) ? green : na)
time_cond = na(t) ? 0 : 1
alertcondition(time_cond,title="alert time condition to exit position",message="close")

// @function TODO: add function description here
// @param x TODO: add parameter x description here
// @returns TODO: add what function returns
export fun(float x) =>
	//TODO : add function body and return value here
	x
