binancash

Simple box to look up down trend

CME_MINI:NQ1!   E-迷你納斯達克100指數期貨
A simple box in 20 candle to monitor price

Top is the highest and bottom is the lowest of close in 20 candles.

As close is moving outside this box then the signal is up or down trend.

Code sample:
low_val = ta.lowest(close, 20)
high_val = ta.highest(close, 20)
//Create Box
box bx = na
bx := box.new(time, high_val, time, low_val, xloc=xloc.bar_time, bgcolor=color.new(color.aqua, 90), border_width=1)
box.delete(bx)

免責聲明

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