// 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. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.
هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.