This is your run-of-the-mill stochastic indicator, with one slight difference. I added Fibonacci ratios [0, 0.272, 0.318, 0.414, 0.5, 0.618, 0.786, 100] and colored them across the rainbow for aesthetics.
I noticed that the stochastic moving averages, K & D, would reverse in between 0 & 100. Just like price, they were likely Fibonacci ratios.
My original plan was to create a strategy script, and trade whenever K & D crosses the Fib levels. However, they do not cross them perfectly, rather they merely float near them and reverse. Therefore, the strategy would have never made the trades.
As you will notice in the script, there is Bitcoin Hash Rate data imported. I did so because I would like to create a stochastic hash rate indicator at some point. For those of you with this same passion, there is the hash data to mess around with; consider it an Easter Egg...
Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.