// Chart Pattern Detection f_detectChartPatterns() => leftShoulder = high[2] > high[1] and high[2] > high[3] head = high[1] > high[2] and high[1] > high[0] rightShoulder = high[0] > high[1] and high[0] > high[-1] neckline = low[1] < low[2] and low[1] < low[0] headAndShoulders = leftShoulder and head and rightShoulder and neckline headAndShoulders
// Candlestick Pattern Detection f_detectCandlePatterns() => bullishEngulfing = close[1] < open[1] and close > open and close > open[1] and open < close[1] bearishEngulfing = close[1] > open[1] and close < open and close < open[1] and open > close[1] [bullishEngulfing, bearishEngulfing]
// Support and Resistance Zones f_calculateSupportResistance() => support = ta.lowest(low, 20) resistance = ta.highest(high, 20) [support, resistance]
// Buy/Sell Zones f_identifyBuySellZones() => rsi = ta.rsi(close, 14) ma = ta.sma(close, 20) buyZone = rsi < 30 and close > ma sellZone = rsi > 70 and close < ma [buyZone, sellZone]
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart
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.