OPEN-SOURCE SCRIPT
Cập nhật

Sigmoidal Candle Count Risk (SCCR)

1 217
Sigmoidal Candle Count Risk (SCCR)

This indicator is designed to identify potential reversal levels based on the number of consecutive candles moving in the same direction. Its core premise is based on the sequence of consecutive candles moving in uniform. The assumption is that an increasing sequence of consecutive candles heightens the likelihood of a reversal.

Functionality:
  • It uses the sigmoid function to translate the difference between bullish (upward) and bearish (downward) candle counts into a risk value ranging from 0 (low risk, bullish sentiment) to 1 (high risk, bearish sentiment)

Pine Script®
1/(1+math.exp(-((usum+dsum)/2)))

  • Additionally, it uses a symmetrically weighted moving average for smoothing.

Pine Script®
ta.swma()
Phát hành các Ghi chú
Made a mistake in the previous description. Here is the corrected sigmoid function:
Pine Script®
1/(1+math.exp(-(usum-dsum)))


Also updated the RiskMeasure() parameters from close>open,open>close to close>close[1],close[1]>close to better reflect increases/decreases in price.
Phát hành các Ghi chú
Added a timeframe option. Larger timeframe readings tend to provide more probable setups.
Phát hành các Ghi chú
Changed scale from 0-1 to 0-100 and added middle line.
Phát hành các Ghi chú
General script clean up, visual updates, and added description in the script.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.