GUAN CHONG BHD
教育
已更新

SIRI PINE SCRIPT - Breakout bar dan garisan melintang

216
Menggunakan fungsi plot() untuk kita plotkan garisan melintang selepas terjadinya breakout untuk sekian bar.

Semoga terhibur.
註釋
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © BURSATRENDBANDCHART

//version=4
study("Top Line", overlay=true)

high10 = close > highest(high,10)[1]

topgreenbar = valuewhen(high10, high, 0)

plot(topgreenbar, title="Green Bar Top Line", color=topgreenbar != topgreenbar[1] ? na : color.green)

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。