LEAPS Backtest Struggle

Posted by Ambitious-Sun533@reddit | Python | View on Reddit | 4 comments

Hi All - i have been trying to backtest this with help for Copilot and have met my limit with frustrations. Anyone talented with Python have a way to get this done?

The concept is to backtest a long term leveraged trading strategy using QQQ Options.

Buy: 60 Delta QQQ options contract with 12 months expiration
Buy criteria: When price gaps down by at least 1% and price is above 100 SMA. Gap down defined as at least 1% when taking into account prior day close and current day opening price.

Sell criteria: when option contract is at 50%

Win definition - option gets sold at 50%

Loss definition - option expires worthless

My assumption is historically this should have a high win rate which would overcome any 100% losses. Not going to get rich but some income over the course of the year.

Bull market - When price gaps down by at least 1% and price is above 100 SMA