Nice catch, thanks a lotROMB wrote: ↑Mon, 21. Jan 19, 22:12Hi Euclid. After some debugging I finally able to find what is the issue in your script, and why it goes into negative profits.
In Version 0.6, File: AutoTraderOptions\aiscripts\stationautotrade.xml Line: 209 you set buyoffer to new offer each time you analyze new ware. Because of this you loosing actual profitable buyoffer. I fixed this by renaming $byoffer to $byoffertmp on lines 209, 226-229, 232 and adding after line 232Hope that helpsCode: Select all
<set_value name="$buyoffer" exact="$buyoffertmp" />
I've uploaded a new version with the changes you've suggested. Please see changelog in the OP for details.
Cheers Euclid