TradingView
Trendoscope
25 de Ago. de 2021 12:32

Price Ratios 

HUB24 LIMITEDASX

Descripción

Just a handy financial ratio bar where you can quickly view key price ratios.

Position, text size and color combinations can be set from input settings. Header is readjusted according to the table position chosen.

For example, if position selected as top-center or bottom-center or middle-center, orientation of the table will be horizantal and would display like this:


Otherwise, table will have vertical orientation like this:


You can also move it to new panel and use it along with other financials scripts such as:


With that, your screen would look something like this:

Notas de prensa

Convert to pine v5
Comentarios
cms1001
Amazing work.
Killerfish
Wonderful
thehive2010
Study error {Resolve_error "FUND}
Trendoscope
@thehive2010, whats the ticker?
thehive2010
@HeWhoMustNotBeNamed, maybe its the currency, i am using it on indian market.
rafaelcoisaa
@HeWhoMustNotBeNamed, Master of the zigzags,

how to improve this zigzag bellow that connect in live all the pivots 1,1 with HHLL labels in the 'Zig Zag array' style?
I tried to change in the 'Zig Zag array' the highest/lowestbars function with pivothigh/low function but to much pivots get out.

//@version=4
study("ZigZag", overlay = true, max_lines_count = 500, max_labels_count = 500)

h = pivothigh(1,0)
l = pivotlow(1,0)

var dirUp = false
var lastLow = 0.0
var lastHigh = 0.0
var timeLow = bar_index
var timeHigh = bar_index
var line li = na

f_drawLine() =>
line.new(
timeHigh, lastHigh,
timeLow, lastLow,
xloc.bar_index, color=dirUp ? color.teal : color.orange, width=2
)

if dirUp
if l
lastLow := low
timeLow := bar_index
line.delete(li)
li := f_drawLine()

if h
lastHigh := high
timeHigh := bar_index
dirUp := false
li := f_drawLine()

if not dirUp
if h
lastHigh := high
timeHigh := bar_index
line.delete(li)
li := f_drawLine()

if l
lastLow := low
timeLow := bar_index
dirUp := true
li := f_drawLine()
Más