In our backtester, you can test a strategy that trades around earnings as well as strategies that avoid earnings.
To use the earnings date feature, select Entry Date Triggers setting how many days before earnings to initiate a trade and then select Exit Date Triggers to set when to exit relative to earnings.
To avoid earnings, you would set the Entry Date Trigger min/max however many days before you want. For the covered call strategy, we set these to min=20 and max=75 to make sure we don't trade back into a strategy that we just exited. This gives us enough time to be in the trade before exiting the day before earnings announcement.
If you want to trade a strategy around earnings, you can set the entry days lower like min/max 1 to 3.
Instead of before, set the Occurrence to after.
Here is an example avoiding earnings, an INTC short call:
Here is an example trading earnings, an AMZN iron butterfly: