I'm not sure there is a good rule of thumb for shock cord length.
If you believe "blow it out or blow it up " and drogueless recovery, then i think you need +5 times rocket length for both shock cords and lots of prayers. The length will compensate for the too large of charges and the shock involved at deployment. Without a drogue to keep the fin can above the payload, the long cord will cause extreme loads on the anchors when the main chute opens and stops while the fin can fall the full length of those cords and hits bottom very hard. This isn't usually an issue with smaller rockets, but as you get bigger and heavier it can bite you.
Watch your recovery. The longest part of the flight is usually the fall from apogee to main deployment. You can get a ballistic flight profile after the apogee charge opens the rocket. When the payload comes down point first and drags the fin can, it's ballistic. Maybe not as fast as if the rocket was together, but it's probably a lot faster then you designed for. When that happens, if the fin can doesn't hit and collapse the main after it opens, it drops to the end of the shock cords. The longer the cords, the more the main slows while the fin can falls and the greater the difference in speed when the fin can finally hits the end of the cords. Of course when the main opens and the fin can doesn't foul the main or break off the cord when it hits bottom and everything comes down together, the LCO usually says "Great Flight", everyone claps and nobody pays any attention to the fact the flight was really a near miss.
If you use a reasonable apogee charge and a drogue chute to keep the payload above the fin can the whole way down, you can use shock cords that are 2 times the rocket length or less and not have any issues.
The idea of a cord length as long as the highest tree is kind of tongue in cheek and doesn't work most of the time. Every time I've landed in a tree, it's draped across the tree and the nose cone is just as high as the fin can. You would have to have a cord at least 2 times the tree height to have any chance of aiding recovery and that is only if it lands in a lone tree. If it's a cluster of trees or a woods, it just drapes across more trees and makes the whole recovery process tougher.
As you can see, my opinions on recovery don't follow the majority so take them any way you want.
Good luck and I hope you have lots of great flights.