Stargazer87

Earnings Volatility Average

Thanks to Dead_Hunter for his ROCEM code which inspired me.
This code looks back over X number of earnings cycles (default is 8) and X number of bars in each earnings cycle (default is 15) to calculate the largest move in each defined earnings period.
The count of earnings cycles starts with the latest past earnings date. The code ignores all future earnings dates in its calculations.
Then the code finds the average price move of those X number of earnings periods.
Using the average price move value the code displays the Price Increase and Price Decrease based on the current price bar.
You can also define how many legs you would create for the option trade and the total commission to open and total commission to close, allowing you to better define your possible breakeven points.
This code was developed to use on a Daily chart.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?