New to pinescript and coding in general and I wanted to know if something is possible before I go down this rabbit hole. Would it be possible tho write a strategy that tests the outcome of buying the close the day before earnings and selling the open. Or selling the open of dividend dates and buying the open of the next day candle?