pips bar

The horizontal position of the pips bar is offset to the right of the latest bar by the specified bar amount, and the vertical position can be selected from Top, Middle, or Bottom, calculated using the maximum and minimum values visible on the chart.
pip = syminfo.mintick * (syminfo.type == "forex" ? 10 : 1)
pip = syminfo.mintick * 10
This indicator defines 1 pip as 10 times the minimum tick value of the chart. For 'OANDA:XAGUSD', where this standard method doesn't display the pips bar correctly, it automatically sets 1 pip to 0.01. For other cases where the standard method doesn't display correctly, I've made it possible to input the pip value manually.
Now, you can select the horizontal position. The default 'Right' setting displays it on the right side of the last chart bar as before. When 'Left' is selected, it displays the bar offset from the right side of the leftmost visible chart bar.
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.