OPEN-SOURCE SCRIPT

HS:- HA+BIAS

49
📝 Daily Bias + Heikin Ashi Step Line (Notes)
1️⃣ Indicator Purpose

Combines Daily Market Bias with Heikin Ashi Average

Displays HA average as a STEP LINE WITH BREAKS

HA line changes color based on bias

Works on any timeframe

Bias logic is always calculated from Daily data

2️⃣ Heikin Ashi Calculation

Uses Heikin Ashi candles internally

Does not change chart candles

Formula used:

HA Average = (HA Open + HA Close) / 2


Provides a smoother price reference than normal candles

3️⃣ Daily Reference Levels

Uses previous day:

High

Low

These levels define market structure

Fetched using Daily timeframe regardless of chart timeframe

4️⃣ Positive Bias Condition (Bullish)

Bias becomes POSITIVE only when both conditions are true:

Today Close > Previous Day High

Today Low > Previous Day Low

📌 Indicates strong bullish control

5️⃣ Negative Bias Condition (Bearish)

Bias becomes NEGATIVE only when both conditions are true:

Today Close < Previous Day Low

Today High < Previous Day High

📌 Indicates strong bearish control

6️⃣ Bias Hold Rule (Most Important)

Bias does NOT flip frequently

Bias remains unchanged until:

Both opposite conditions are satisfied

Prevents false signals during sideways markets

Bias Values:

+1 → Positive

-1 → Negative

0 → Neutral

7️⃣ Bias Memory Concept

Bias is stored using a state variable

Previous bias is carried forward when no condition is met

Ensures stable trend direction

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.