
I read something saying that this is a problem caused by disabling stations, but I'm using this setup where all of my stations are named the same, and enable/disable them based on a condition like this for instance

It's working exceptionally well, but the only downside is that I do get trains stopping in the middle of tracks and won't even change their course if both stations are disabled I believe?

This happens when, for instance, I have a loading condition that will call the train (100k oil is filled for instance), and an unloading condition that will call the train (less than 20k oil in the tank left for instance). And these conditions are the same in all of my stations with the same name.
Again, this works like a charm but it'll be perfect if I could have trains just not stopping in the middle of nowhere!