OPEN-SOURCE SCRIPT
업데이트됨 Cryptocurrency Sentiment

Overview
This script focuses on calculating and visualizing the sentiment difference between LONG positions and SHORT positions for a selected cryptocurrency pair on the Bitfinex exchange. It provides a clean and clear visual representation of the sentiment, helping traders analyze market behavior.
Key Features
*The script automatically detects the cryptocurrency symbol from the chart (syminfo.basecurrency) and dynamically constructs the LONGS and SHORTS ticker symbols.*
*Works seamlessly for pairs like BTCUSD, ETHUSD, and others available on Bitfinex.*
*The sentiment difference is calculated as:*
Sentiment Difference=−1×(100− SHORTS/LONGS ×100)
*LONGS: The total number of long positions.*
*SHORTS: The total number of short positions.*
*If SHORTS is 0, the value is safely skipped to avoid division errors.*
*The script visually highlights the sentiment difference:*
*Green Line: Indicates that LONG positions are dominant (bullish sentiment).*
*Red Line: Indicates that SHORT positions are dominant (bearish sentiment).*
*A gray horizontal line at 0 helps users quickly identify the transition between bullish (above zero) and bearish (below zero) sentiment.*
How It Works
*The script uses request.security to fetch LONGS and SHORTS data at the current chart timeframe (timeframe.period) for the dynamically generated Bitfinex tickers.*
*Missing or invalid data (NaN) is filtered out to prevent errors.
Extreme spikes or irregular values are safely avoided.*
*The sentiment difference is plotted with dynamic color coding:*
*Green when LONGS > SHORTS (bullish sentiment).*
*Red when SHORTS > LONGS (bearish sentiment).*
Benefits
*Market Sentiment Insight: Helps traders quickly identify if the market is leaning towards bullish or bearish sentiment based on actual LONG and SHORT position data.*
*Dynamic and Adaptive: Automatically adjusts to the selected cryptocurrency symbol on the chart.*
*Clean Visualization: Focuses solely on sentiment difference with color-coded signals, making it easy to interpret.*
Best Use Cases
*Trend Confirmation: Use the sentiment difference to confirm trends during bullish or bearish moves.*
*Market Reversals: Identify potential reversals when sentiment shifts from positive (green) to negative (red) or vice versa.*
*Sentiment Monitoring: Monitor the overall market bias for cryptocurrencies like BTC, ETH, XRP, etc., in real-time.*
Sample Chart Output
*Above Zero → Green Line: Bullish sentiment dominates.*
*Below Zero → Red Line: Bearish sentiment dominates.*
*Zero Line → Transition point for shifts in sentiment.*
This script focuses on calculating and visualizing the sentiment difference between LONG positions and SHORT positions for a selected cryptocurrency pair on the Bitfinex exchange. It provides a clean and clear visual representation of the sentiment, helping traders analyze market behavior.
Key Features
- Dynamic Symbol Selection:
*The script automatically detects the cryptocurrency symbol from the chart (syminfo.basecurrency) and dynamically constructs the LONGS and SHORTS ticker symbols.*
*Works seamlessly for pairs like BTCUSD, ETHUSD, and others available on Bitfinex.*
- Sentiment Calculation:
*The sentiment difference is calculated as:*
Sentiment Difference=−1×(100− SHORTS/LONGS ×100)
*LONGS: The total number of long positions.*
*SHORTS: The total number of short positions.*
*If SHORTS is 0, the value is safely skipped to avoid division errors.*
- Color Coding:
*The script visually highlights the sentiment difference:*
*Green Line: Indicates that LONG positions are dominant (bullish sentiment).*
*Red Line: Indicates that SHORT positions are dominant (bearish sentiment).*
- Zero Reference Line:
*A gray horizontal line at 0 helps users quickly identify the transition between bullish (above zero) and bearish (below zero) sentiment.*
How It Works
- Fetching Data:
*The script uses request.security to fetch LONGS and SHORTS data at the current chart timeframe (timeframe.period) for the dynamically generated Bitfinex tickers.*
- Handling Data:
*Missing or invalid data (NaN) is filtered out to prevent errors.
Extreme spikes or irregular values are safely avoided.*
- Visualization:
*The sentiment difference is plotted with dynamic color coding:*
*Green when LONGS > SHORTS (bullish sentiment).*
*Red when SHORTS > LONGS (bearish sentiment).*
Benefits
*Market Sentiment Insight: Helps traders quickly identify if the market is leaning towards bullish or bearish sentiment based on actual LONG and SHORT position data.*
*Dynamic and Adaptive: Automatically adjusts to the selected cryptocurrency symbol on the chart.*
*Clean Visualization: Focuses solely on sentiment difference with color-coded signals, making it easy to interpret.*
Best Use Cases
*Trend Confirmation: Use the sentiment difference to confirm trends during bullish or bearish moves.*
*Market Reversals: Identify potential reversals when sentiment shifts from positive (green) to negative (red) or vice versa.*
*Sentiment Monitoring: Monitor the overall market bias for cryptocurrencies like BTC, ETH, XRP, etc., in real-time.*
Sample Chart Output
*Above Zero → Green Line: Bullish sentiment dominates.*
*Below Zero → Red Line: Bearish sentiment dominates.*
*Zero Line → Transition point for shifts in sentiment.*
릴리즈 노트
OverviewThis script focuses on calculating and visualizing the sentiment difference between LONG positions and SHORT positions for a selected cryptocurrency pair on the Bitfinex exchange. It provides a clean and clear visual representation of the sentiment, helping traders analyze market behavior.
Key Features
Dynamic Symbol Selection:
*The script automatically detects the cryptocurrency symbol from the chart (syminfo.basecurrency) and dynamically constructs the LONGS and SHORTS ticker symbols.*
*Works seamlessly for pairs like BTCUSD, ETHUSD, and others available on Bitfinex.*
Sentiment Calculation:
*The sentiment difference is calculated as:*
Sentiment Difference=−1×(100− SHORTS/LONGS ×100)
*LONGS: The total number of long positions.*
*SHORTS: The total number of short positions.*
*If SHORTS is 0, the value is safely skipped to avoid division errors.*
Color Coding:
*The script visually highlights the sentiment difference:*
*Green Line: Indicates that LONG positions are dominant (bullish sentiment).*
*Red Line: Indicates that SHORT positions are dominant (bearish sentiment).*
Zero Reference Line:
*A gray horizontal line at 0 helps users quickly identify the transition between bullish (above zero) and bearish (below zero) sentiment.*
How It Works
Fetching Data:
*The script uses request.security to fetch LONGS and SHORTS data at the current chart timeframe (timeframe.period) for the dynamically generated Bitfinex tickers.*
Handling Data:
*Missing or invalid data (NaN) is filtered out to prevent errors.
Extreme spikes or irregular values are safely avoided.*
Visualization:
*The sentiment difference is plotted with dynamic color coding:*
*Green when LONGS > SHORTS (bullish sentiment).*
*Red when SHORTS > LONGS (bearish sentiment).*
Benefits
*Market Sentiment Insight: Helps traders quickly identify if the market is leaning towards bullish or bearish sentiment based on actual LONG and SHORT position data.*
*Dynamic and Adaptive: Automatically adjusts to the selected cryptocurrency symbol on the chart.*
*Clean Visualization: Focuses solely on sentiment difference with color-coded signals, making it easy to interpret.*
Best Use Cases
*Trend Confirmation: Use the sentiment difference to confirm trends during bullish or bearish moves.*
*Market Reversals: Identify potential reversals when sentiment shifts from positive (green) to negative (red) or vice versa.*
*Sentiment Monitoring: Monitor the overall market bias for cryptocurrencies like BTC, ETH, XRP, etc., in real-time.*
Sample Chart Output
*Above Zero → Green Line: Bullish sentiment dominates.*
*Below Zero → Red Line: Bearish sentiment dominates.*
*Zero Line → Transition point for shifts in sentiment.*
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.