Description: The Period Candle Counter is a Pine Script v6 indicator designed to track and display candle statistics within a user-defined time range. This tool provides valuable insights into market movement by counting green (bullish) and red (bearish) candles within the selected period, along with their respective percentages.
Additionally, it calculates the total duration of the selected candles based on the current chart timeframe. This allows traders to understand how much actual market time has passed during the analyzed period.
Features & Functionality: ✅ Custom Time Selection:
Users can define a start and end time for the analysis. The indicator automatically identifies and tracks candles within this period. ✅ Candle Count & Percentages:
Total Candles in the selected period. Green Candle Count & Percentage (bullish candles). Red Candle Count & Percentage (bearish candles). ✅ Time Calculation:
Multiplies the number of candles by the chart timeframe. Converts the total time into hours and minutes (e.g., "2h 30m"). ✅ User-Friendly Display:
Data is neatly organized in a panel positioned in the top-right corner of the chart. Background highlighting is applied during the selected period for easy visualization. Use Cases: 📊 Trend Analysis – Helps traders identify whether a session was bullish or bearish. ⏳ Market Session Timing – Understand how long a specific trend or movement lasted. 📉 Backtesting Strategy Support – Evaluate historical periods efficiently.
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.