OPEN-SOURCE SCRIPT
מעודכן

Custom Step Bar Count

56
Here is a professional description for your TradingView script, suitable for the "Description" field when publishing.

I have provided two versions: a **Standard Version** (detailed and professional) and a **Short Version** (concise).

### Option 1: Standard Version (Recommended for Publishing)

**Title:** Custom Step Bar Count

**Description:**
This indicator is an advanced bar counting tool designed for traders who need to track time cycles or specific bar sequences with custom arithmetic progressions. Unlike standard counters that simply display "1, 2, 3," this script allows you to decouple the **display frequency** from the **displayed value**.

The counter automatically resets at the beginning of every new trading day.

**Key Features:**
* **Custom Display Interval:** Choose how often a label appears (e.g., every 5 bars).
* **Custom Number Increment:** Define the value step for the displayed numbers (e.g., count by 3s).
* **Daily Reset:** The count restarts automatically at the beginning of each session.
* **Visual Customization:** Adjust label size and text color to fit your chart theme.

**How it works (Example):**
If you want to track a cycle where every **5th** bar represents a value of **3**:
1. Set **Display Every X Bars** to `5`.
2. Set **Number Increment** to `3`.

**Result:**
* Bar 5 shows label "**3**"
* Bar 10 shows label "**6**"
* Bar 15 shows label "**9**"

This is particularly useful for specific time-based strategies, Gann analysis, or backtesting setups that require non-linear counting.

---

### Option 2: Short Version (Concise)

**Title:** Custom Step Bar Count

**Description:**
A flexible bar counting utility that resets daily. This script allows you to customize both the frequency of the labels and the numeric step value.

**Settings:**
* **Display Every X Bars:** Controls the gap between labels (e.g., every 5th bar).
* **Number Increment:** Controls the number sequence (e.g., increments of 3).

**Example:**
With an interval of **5** and an increment of **3**, the script will display:
* 5th Bar: **3**
* 10th Bar: **6**
* 15th Bar: **9**

Includes options for text color and label size. Updated for Pine Script v6.
הערות שחרור
update

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.