Stroke with only Pistons and Crank?

A lot goes into fighting detonation. Cam timing, chamber design, timing curve, quench, cooling system and more. There are a lot smarter people than me on here that can help you out with the mathmatics. And figure dynamic and static compression. It's just not me.