인터랙티브 파인이 나왔습니다

Oct 20, 2021

인터랙티브 프라이스와 타임 인풋 모드가 새로 나왔습니다. 이제는 인풋 위젯에서 고르는 대신 차트에서 클릭하여 고를 수 있습니다. 인터랙티브 모드는  input.time() 과 input.price() 에서 confirm = true 로 하여 켤 수 있습니다.

아래는 Anchored VWAP 인디케이터 코드이며, 여기서는 앵커 포인트를 같은 이름을 가진 드로잉 툴과 마찬가지로 인터랙티브 모드로 셋하였습니다: 

//@version=5
indicator("Anchored VWAP", overlay=true)
src = input.source(hlc3, "Source")
startCalculationDate = input.time(timestamp("20 Jan 2021"), "Start Calculation", confirm=true)
vwap_calc() =>
    var srcVolArray = array.new_float(na)
    var volArray = array.new_float(na)
    if startCalculationDate <= time
        array.push(srcVolArray, src*volume)
        array.push(volArray, volume)
    else
        array.clear(srcVolArray), array.clear(volArray)
    array.sum(srcVolArray)/array.sum(volArray)
anchoredVwap = vwap_calc()
plot(anchoredVwap, "VWAP", linewidth=3)

프라이스/타임을 한꺼번에 고르려면 inline 파라미터를 두 펑크션 콜에서 같은 값으로 하여 쓰십시오:

//@version=5
indicator("Point", overlay=true)
myPrice = input.price(100, inline="Point", confirm=true)
myTime = input.time(timestamp("2020-02-20"), inline="Point", confirm=true)
lblText = str.format("Price: {0, number}\nTime: {1, date} {1, time}", myPrice, myTime)
var l1 = label.new(myTime, myPrice, lblText, xloc=xloc.bar_time)

차트에 리마인더가 나타나 유저가 인터랙티브 모드에 있음을 알려줍니다: 

인디케이터를 넣고 차트에서 처음에 인터랙티브 셀렉션을 한 뒤에는 차트에서 포인트를 움직여 셀렉션 포인트를 바꿀 수 있습니다.

After adding an indicator and making an initial interactive selection on the chart, you can modify the selection points by selecting the indicator and moving the points on the chart.

다음 퍼블리케이션에 새로운 피처가 쓰이고 있습니다:

CAGR by TradingView

AutoTrail by Bjorgum

새로 나오는 파인 피처를 알고 싶으면 당사 파인 유저 매뉴얼의 릴리즈 노트를 읽어 보시기 바랍니다. 그리고 파인코더즈 어카운트는 Squawk Box 텔리그램 채널, 트위터 어카운트, 및 트레이딩뷰 파인 스크립트 퍼블릭 챗으로 부터 업데이트를 보내주고 있습니다.

많은 분들이 바라던 피처가 쓸모 있기를 바라면, 앞으로도 이어서 피드백/써제스쳔을 보내 주시기 바랍니다 — 여러분을 위한 트레이딩뷰를 만들어 드리고자 늘 여러분의 말을 귀 기울여 듣고 있습니다.

Look first Then leap

트레이딩뷰는 여러분을 위해 만들어졌으므로 트레이딩뷰의 멋진 기능을 최대한 활용하세요
차트 시작