You just escape it with a backslash:
my\_stock\_ticker is what you type to get my_stock_ticker
The syntax seems to work for all markdown parsers. However, php markdown parsers use the numeric character reference _ instead of the actual character in it's output.