TradingView
fikira
22 de Jul de 2022 02:11

Debug tool - table 

Bitcoin / U.S. dollarBitstamp

Descrição

When having a script with lot's of values, it can be difficult to seek the values you need to debug
For example, here, multiple values aren't visible anymore (right side chart)


————————————————————————————————————————————————————————————————
This script show a way where you can show the values in a table on 1 particular bar, with 2 options:

1)
'middle' -> here the script uses chart.left_visible_bar_time and chart.right_visible_bar_time to calculate the middle
the values of that bar (in orange box) is shown, you can check the value by putting your mouse cursor on that bar:


Just zooming in/out, or scrolling through history will automatically show you the middle and the values of that bar.
Using the arrows on your keyboard will allow you to go 1 bar further/back each time.
(Give it some time to load though, also, sometimes you need to click anywhere on the chart before arrows start working)

2)
'time' -> settings -> Date -> the orange bar will be placed on the chosen bar, the values will be placed in the table as well.

————————————————————————————————————————————————————————————————

If the table interfere with the candles, you can alter  the position without changing the placement of the orange bar -> settings -> position table

This script holds lots of values, just to show the difference between values placed on the chart, and values, placed in the table.
To make more clear how the script works, an 'example' (v_rsi1 / rsi1) is highlighted in the code itself

Cheers!

Notas de Lançamento

––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––

This script is part of a collection of educational scripts
If you want to return to the open source INDEX page, click here
-> Education: INDEX
Comentários
ehsanz87
hi. i want an indicator to show me bars every day at hour 10:30 in timeframe ih.
indicator("tt121tt" , overlay = true)

if time == (hour == 10 and minute == 30)
bgcolor(color = color.black)

i wrote this code for it. but it can't do it !!!! how can i fix eror ????
fikira
@ehsanz87,
You can ask Pine programming questions in one of these forums:
- tradingview.com/chat/{
- t.me/PineCodersQA
- stackoverflow.com/questions/tagged/pine-script?tab=Newest

Thank you
Holidaya35
I love how it can be moved around easily in the time mode. Fantastic tool!
fikira
@Holidaya35, Thanks! 👍🏻
UnknownUnicorn17032407
very nice!
fikira
@xcpov, thanks!
Mais