Try script in attachment as custom algorithm.
Every time when you start "idle" delay, bot will travel to Jita instead of planet manager function. So you need to start 15 minute idle delay just before log off delay.
Прикрепленный файлИмя файла:
Courier.zipРазмер файла: 565
This does not guarantee that bot will reach destination although. Traveling may be interrupted with downtime or DC. Need to add traveling function to trader algorithm itself, but this will require a patch as AT is non traveling trader.
Courier's home station is a station where you store ore. Don't set it to a station where you trade and bot will not sell your ore. The only important is faction of home station. Also home station may not have storyline agents.