If you find it inconvenient or infeasible to code a solution for this problem, then a semi-manual approach may be attractive.
Traditionally a problem like this would be addressed from the slowest (known) planet inwards (Saturn, for your stated period from BC 5500-500).
Once you have fixed on a piece of ephemeris software to give you planetary ecliptic positions for any desired date (maybe Aldo Vitagliano's Solex?) first find the series of time-slices, about 29.5 yr apart, when Saturn was within your target range. There must be roughly 170 of these within your period, but most can be eliminated almost at first sight because Jupiter will be nowhere near the target area: its cycle with Saturn takes close to 20 years. The main factors that make target date-ranges hard to search automatically with precision include the irregularities due to retrogradations and orbital eccentricity, and (in your version of the problem) the elimination of the allowance for precession if that can't be automatically excluded in the software settings.
Once you have narrowed down to the fewer time-slices when both Saturn and Jupiter are within your range, you can make the next round of eliminations by reference to the positions of Mars within the time-slices still in play, eliminating those when Mars is not in your target area. Then look likewise among the surviving time-slices for Venus, Mercury and the Sun, and finally for the moon.
Results for the ancient end of your time-range will have considerable uncertainty for the moon because of the uncertainty at those epochs of DeltaT, the difference between mean solar and dynamical time.
To start you off, my quick and dirty calculations indicate that the two most recent time-ranges within your time-period when Saturn was within your target range fell in about (years) -506 and -536, but both these can immediately be eliminated since Jupiter was nowhere near. And so on.
I hope that may help.