I've found that my car starts to detonate when I get greedy. Basically set your timing low and your fuel pressure high, then go from there. Adjust it to a point that the car doesn't ping under normal full boost situations, or any situation for that matter.
Just don't get greedy with timing and boost. Each car is different so it's hard to say what exactly would work on your car.
For an example, here is how my car is setup. And I never detonate-that I know of.
fuel pressure @ 44 lbs with line on.
base timing @ 9* with BTM set at 0.
Boost set @ 12 lbs
91 octane pump gas here in Utah.
msd 6btm ignition
36 lb injectors
T-rex inline pump
255 intank pump
I do also have a custom chip right now that helps the situation, but even without the chip my car doesn't detonate. It does run leaner (more lean?) though.