//@version=5 indicator("BSF V.7.0.1", overlay=true) // กำหนดตัวแปรต่าง ๆ sma_length_short = 14 sma_length_long = 50 rsi_length = 14 lookback = 20 adxPeriod = 14 adxSmoothing = 14 // Smoothing period for ADX // คำนวณค่า SMA และ RSI sma_short = ta.sma(close, sma_length_short) sma_long = ta.sma(close, sma_length_long) rsi = ta.rsi(close, rsi_length) // คำนวณ...