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 |
Ambitious-Sun533@reddit (OP)
Thanks for the feedback? Not really sure what is wrong with the logic. The criteria is pretty straight forward. The code to produce a backtest output via python not so much.
AlexMTBDude@reddit
What you describe is not a Python problem, but a logical problem.
Ambitious-Sun533@reddit (OP)
Alex please take life’s frustrations out somewhere else lol
AlexMTBDude@reddit
Ad hominem, dude :(