OPEN-SOURCE SCRIPT
HS:- HA+BIAS

📝 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
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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.