////////////////////////////////////////////////// nguontinhieu = input.string('RSI tăng động', 'Nguồn tín hiệu', options=['RSI tăng động', 'RSI bình tĩnh'], group = group_tinhieu)
float rsix = switch nguontinhieu 'RSI tăng động' => ta.rsi(rsic, lenrsi) 'RSI bình tĩnh' => ta.linreg(rsic2, smooth, 0)
/////////////////////////////////////////////////////////////////// overboughtlevel = input.int(75 ,title='Ngưỡng quá mua', group = group_tinhieu) oversoldlevel = input.int(25 ,title='Ngưỡng quá bán', group = group_tinhieu) heso = input.int(3, title = 'Độ chính xác', group = group_tinhieu) upBar = close > open downBar = close < open threeUpBars = math.sum(upBar ? 1 : 0, heso) == heso threeDownBars = math.sum(downBar ? 1 : 0, heso) == heso overbought = rsix > overboughtlevel and threeUpBars oversold = rsix < oversoldlevel and threeDownBars
// TABLE AND CELLS CONFIG // Post Timeframe in format KhungTxt(x)=> out = x if not str.contains(x, "S") and not str.contains(x, "M") and not str.contains(x, "W") and not str.contains(x, "D") if str.tonumber(x)%60 == 0 out := str.tostring(str.tonumber(x)/60)+"H" else out := x + "m" out
if barstate.islast // table.clear(tbl, 0, 0, 2, 7)
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.