TradingView
ASIFKERIM
25 nov. 2020 14:05

Asif Hlc3 Trade 

Bitcoin / United States DollarCoinbase

Description

A very simple script to identity trend of various time frames based on hlc 3 values

Try and improve ,Thank you very much & if you like the script hit the Cheer button..
Commentaires
surapol4345
I see difference between version 2 & 4 . Please help.
//@version=4
study("Asif Hlc3 Trade", shorttitle="Asif Hlc 3", overlay = true)
ha_t = heikinashi(syminfo.tickerid)
OneDay=security(ha_t, 'D', hlc3[0])
plot(OneDay, color = #6633FF, style = plot.style_line, linewidth = 3, title="One Day")

//@version=2
study("Asif Hlc3 Trade", shorttitle="Asif Hlc 3", overlay = true)
ha_t = heikinashi(tickerid)
OneDay=security(ha_t, 'D', hlc3[0])
plot(OneDay, color = #6633FF, style = line, linewidth = 3, title="One Day")

They behave differently. It happen when I tried to upgrade a pine script from v2 to v4.
Thanks
surapol4345
Please note that using v2 with others gives much better result than v4.
ASIFKERIM
@surapol4345, use this

//@version=4
study("Asif Hlc3 Trade", shorttitle="Asif Hlc 3", overlay = true)//

FourHr=security(syminfo.tickerid, '240', hl2)

OneDay=security(syminfo.tickerid, 'D', hl2)

plot(FourHr, color = #BF1111FF, style = plot.style_line, linewidth = 2, title="Four Hour")

plot(OneDay, color = #6633FF, style = plot.style_line, linewidth = 3, title="One Day")
rafaelfernandesadvogado
Very cool and clean! I like it! Good job!
Plus