// 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 pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e testarlo. Complimenti all'autore! Puoi usarlo gratuitamente, ma il riutilizzo di questo codice nelle pubblicazioni è disciplinato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.