Especially in closed-circuit complexes, you cannot effectively sell a ware you produce too much of, because if you allow NPC-traders to dock at that station, they will buy out your whole stock and kill the complex by doing so. Just the same with your own ships running on "Buy Ware Best" and "Sell Ware Best": You either set the prices too high and have a full cargobay, or you set them too low and have an empty storage space.
This script outsources all the external trading to special docking ports right next to the main complex hub. These station-parts can be configured separately. Only if the cargobay of the main complex is too full for one ware (>65%), it is passed over to the Salespoint. If it is too empty for a ware (<35%), the cargospace is refilled from the Buying-point.
This Script
This station command, if started on a Complex Hub, creates two additional sections of this Hub: One section where all resources of that complex are being bought a second time, and one that sells all wares that are products in the complex as well. The hub is charged 500.000cr for these two new sections. Each section (which really is a station in itself, though does not look so) can have separate price settings, and has got separate docking slots.
Advantages over a normal Complex Hub
* Complex can have different buying- and selling-price settings
* player-owned ships can be provided better prices for wares than NPC-ships
* NPC-ships are kept away from the few dockingports of a complex hub
* additional sections increase the hub's cargospace
* Complex remains a closed system, where only surplus and urgend need is given and taken from the free market
How does it work?
Setting up the additional sections in the Station Command Menu (Price: 500.000cr):

Sections have been added to the complex and are now visible on the sector map:

Complex Hub with the additional sections (without complex tubes in this picture):

Deactivating ware forwarding: Disallow other races to trade with one section:

This packet contains 4 Scriptfiles, 2 Textfiles, 2 readmes, 4 Pictures, 1 Script Installer File and an uninstall-routine. The readme conatins forther information about the script and additional tips.
Download V1.0

Technical
Commandslot: COMMAND_TYPE_STATION_1146
Pageid: 8773
This script is based on the X2-Script X2 Complex Kit - Complexes for X2 and works parallel to the Trade Command MK1/MK2-Extension.
DE