Faust

TSV moving average is plotted as an oscillator. OBV and PVT are calculated internally.
Four divergences are calculated for each indicator (regular bearish, regular bullish, hidden bearish, and hidden bullish) with three look-back periods (high, mid, and small).
For TSV, the fattest plotted line is the divergence with the highest look-back period, and the thinnest line is the divergence with the shortest look-back period.
For PVT, the larger the circle, the higher the divergence look-back period.
For OBV, the larger the triangle, the higher the divergence look-back period.
- Implemented a different method to draw divs for TSV to reduce the number of outputs on the chart and make space for the hidden div alerts.
- Added alerts for hidden divs
- Refactored inputs
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.