Script for this idea:
study(title="17th of each month", shorttitle="17th", overlay=true) dir = close[30] > close data = dayofmonth == 16 or dayofmonth >= 14 and dayofmonth <= 15 and dayofweek == thursday plotshape(data and dir, color=lime, style=shape.arrowup, text="Buy", location=location.abovebar ) plotshape(data and not dir, color=red, style=shape.arrowdown, text="Sell", location=location.belowbar)