As to my knowledge, tradingview uses the standard stoch formula. Nonstandard indicators had to be written by script. But this is normally trivial. The example in the tutorial is a particularly complex indicator.