To make it a programming analogy, to someone who has no clue about coding a yearly bonus to each developer based on lines of code written sounds like a good way to reward the more productive developers. But anyone with a couple days experience realizes how trivial that system would be to game.
Perhaps this is unnecessarily pedantic, but what you're describing is a "conflict of interest" problem, not an "insider trading" problem. You can have either problem without the other, and depending on how you crack down on insider trading, it could be completely ineffective at solving the conflict of interest problem.
I want to add that there's a real possibility that legislation to address this (totally legitimate) issue goes too far and makes it even harder for non-wealthy people to run for public office - I think it's unreasonable for a new congressperson who owns a home and a small amount of an S&P index fund to have to set up a blind trust for their partner's uncle.
It's the same conflict of interests problem here. Are your politicians acting for the sake of the public, or do they have their own financial interests in mind when putting forth a policy? E.g. if they've made financial commitments in expectation of a policy that will benefit that investment, that can most certainly influence their decision on said policy.
Consider the extreme: a congress person shorts a stock because they know a downturn is coming, then they enact policies that prolong the downturn and in turn increase their windfall.
Compared to the impact they can have at their job (positive or negative), this just doesn't seem like a big deal to me. Obviously I'd prefer if they didn't do it, but I don't see why it needs to be a bigger issue.
Insider trading causes two problems:
* Undermines faith in, and thus reduces efficacy of, financial markets
* Reduces the overall returns for everyone else a bit
While it becomes a problem when rampant throughout the market, I don't think a few hundred members of congress would collectively have much impact here.
I'm also a little wary of the kind of person who's willing to go into politics and isn't in it for the money. While there are a handful of truly dedicated public servants, most people who aren't in it for the money are either extreme ideologues or power hungry narcissists. I'll take a politician who's mildly financially corrupt over someone who wants to abolish either taxes or private property, and way over one who wants to become a dictator.