If it's your trailer the e-track is an ideal solution. I ran two rows horizontally along the sides of my 5x8. I can strap across the upper part of the pin, and then get a second strap lower down. Depending on the brand and age of the pin, the lower strap could take some finagling depending on how low the head is to the floor. Measure a folded up pin before you install the e-track and you will be able to figure out where to position it on the side of your trailer. I got my e-track at harbor freight.
If the trailer isn't yours, like a u-haul, then it will have wooden rails on the inside that include partial cutouts between the wall and the rail which are there to let you tie onto it. Small ratchet straps can usually either fit through or hook onto the holes in the wood rails. Same principle applies as above in terms of strapping it down it's just that in this case you'll probably only have one set of rails at whatever height they put them at to work with. In my experience the rails in u-haul trailers have always been set up intelligently so no worries.
In either case the pin should be so solidly tied down that if you try to shake the pin, the whole trailer will move.
Like stretch said, be sure to use cardboard or moving blankets to protect the cabinet edges from the rope or ratchet straps. Ditto for where ever the ratcheting part of the ratchet strap happens to end up. You don't want it rubbing on the cabinet of the pin.
BTW, let me know if you also want advice on how to pack approx 26 pins into a 26' box truck for a cross-country move. That was not super-fun, but they made it unscathed.
Good luck