BURSATRENDBANDCHART

SIRI PINE SCRIPT - Breakout bar dan garisan melintang

Éducation
MYX:GCB   GUAN CHONG BHD
Menggunakan fungsi plot() untuk kita plotkan garisan melintang selepas terjadinya breakout untuk sekian bar.

Semoga terhibur.
Commentaire:
// 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)

topgreenbar = valuewhen(high10, high, 0)

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

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.