fikira

chart visible bar time

fikira Wizard 업데이트됨   
With the latest added features chart.left_visible_bar_time and chart.right_visible_bar_time it is now possible to
place label.new() positions at the equivalent of 'location.top' and 'location.bottom'

The following are examples of functions which enables to find the visible chart highest/lowest bars:
highest_visible_chart() => 
    var float highs = na
    highs := time == chart.left_visible_bar_time                  ? high : 
             time >  chart.left_visible_bar_time and high > highs ? high : highs

lowest_visible_chart()  => 
    var float lows = na
    lows  := time == chart.left_visible_bar_time                  ? low  : 
             time >  chart.left_visible_bar_time and low  < lows  ? low  : lows

In this example labels are plotted when a sma crosses another sma

Also combined with 3 boxes, scrolling gives insights how the features work

To all who make Tradingview the way it is, lots and lots of thanks!

Cheers!
릴리즈 노트:
Added label which gives the current time and time from left & right bar of the visible chart (adjustable by UTC)

In this case the label is not deleted through code on each new bar, because the script is reloaded every bar
(due to chart.right_visible_bar_time, chart.left_visible_bar_time), hence 'starting with a clean slate'
릴리즈 노트:
+ extra information regarding time format
릴리즈 노트:
update
릴리즈 노트:
Added label which keeps track of latest price, even if you scrolling back
릴리즈 노트:
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

LuxAlgo Dev: www.luxalgo.com
PineCoder: www.pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?