// 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]
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. Você pode favoritá-lo para usá-lo em um gráfico.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.