캔들 뉴 시리즈를 플롯하려면?

(Korean)

OHLC 밸류가 님의 스크립트에 따라 셈해지는 바 또는 캔들  새 시리즈를 플롯하려면 plotcandle() 이나 plotbar() 펑크션을 쓰십시오. 이런 펑크션을 쓴 스크립트를 차트에 넣으면 지정된 파라미터를 써서 바 또는 캔들 시리즈를 플롯해 줍니다. 보기로, 아래 스크립트는 메인 시리즈 밸류와 견주어 볼 때 두배 많은 OHLC 밸류를 가진 레드 앤 그린 캔들 시리즈를 플롯합니다.

 

//@version=3
study("My Script")
plotcandle(open*2, high*2, low*2, close*2, title='Title', color = open < close ? green : red, wickcolor=black)

(English) How do I plot a new series of candles based on script calculations?

To plot a new series of bars or candles where OHLC values are based on your calculations use plotcandle() or plotbar() functions. After adding them to a chart, a script with such functions plots series of bars or series of candles with specified parameters. For example, this script will plot a series of red and green candles with OHLC values twice as much compared to values of the main series. 

//@version=3
study("My Script")
plotcandle(open*2, high*2, low*2, close*2, title='Title', color = open < close ? green : red, wickcolor=black)