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

//@version=4
study(title="Lowest Close", overlay=true)
days =  input(title="Days", defval = 61)

//find lowest close in last 61 days
lowest = close
for i = 1 to days-1
	if (close[i]<lowest)
    	lowest := close[i]

plot(lowest, "Lowest", color=#8E1599)