




Overview
HeikinAshiBiasBot is a bias-analysis cBot designed to help discretionary traders quickly understand the current market environment without having to manually rebuild the same analysis every day.
Instead of placing orders, this cBot focuses on structure, sessions and volume, and combines three independent “engines” into one clear Final Bias:
- Strong / Mild Bullish
- Strong / Mild Bearish
- Bullish / Bearish / Range-Bound / Pending
It is intended for traders who want a consistent, rules-based daily bias reading, but may not always have time to perform full multi-session analysis from scratch.
What the cBot does
This cBot does not execute trades.
It runs on your chart and provides:
- A Heikin-Ashi structural bias on a user-defined higher timeframe
- A New York session zone bias, based on recent NY volume concentration
- A Session Volume bias, based on where VWAP and the session close sit inside the session’s high–low range
- A Final Bias (3 Engines), combining all three perspectives into a single directional view
- Chart visuals:
- NY volume-based zones
- Session range rectangle with VWAP line and % label
- Markers where Heikin pivots and inside-bar events triggered bias changes
It is a decision-support tool to align your own trading with the prevailing conditions.
Engine 1 – Heikin Bias Engine (Trend structure)
The first engine builds a higher-timeframe structural bias using Heikin-Ashi candles on a configurable bias timeframe (for example, H2, H4, H6):
- Converts standard bars into Heikin-Ashi
- Detects color flips and forms support and resistance pivots from recent swings
- Sets bias to:
- Bullish when price breaks above the most recent resistance pivot
- Bearish when price breaks below the most recent support pivot
- Includes an “Inclusive Flip” toggle (>= / <=) to fine-tune strictness
- Automatically prunes very old structure to keep calculations efficient
This gives you a slow, stable bias that is less sensitive to short-term noise.
Engine 2 – Heikin Inside-Bar Engine (Reversals & continuations)
The second engine refines that structural bias using Heikin-Ashi inside-bar behaviour:
- Tracks an anchor Heikin bar whose close extends in the direction of the current bias
- Counts consecutive inside bars, where both open and close remain inside the anchor body
- When the number of inside bars reaches your chosen threshold:
- A break beyond the anchor body in the same direction marks a continuation event
- A break beyond the anchor body in the opposite direction marks an early reversal and flips the Heikin bias
Visuals:
- Diamonds mark pivot-based flips
- Colored squares mark inside-bar reversals and continuations, clearly showing where the market shifted or broke out of compression.
Engine 3 – New York Zone Engine (Recent NY positioning)
The third engine focuses on New York session behaviour:
- Uses a dedicated NY timeframe (e.g. M15)
- For each fully completed NY session in the lookback:
- Identifies the two highest-volume candles
- Builds a zone from their overlap (intersection)
- If there is no clean overlap, constructs a centroid zone using volume-weighted wick activity
- Tracks up to the last three NY zones and classifies NY Bias based on where current price is:
- Above at least 2 of the recent zones → Bullish
- Below at least 2 of the recent zones → Bearish
- Otherwise → keeps the previous NY bias, with a controlled initialisation rule
Visuals:
- Up to three semi-transparent purple rectangles, fading with age, show where recent NY sessions concentrated activity.
Engine 4 – Session Volume Engine (VWAP and transaction point)
The fourth engine measures where a session actually transacted, rather than just the high and low:
- Session selection logic
- During Asia: uses the previous day’s combined London + New York session (automatically handling weekends).
- After Asia closes: uses the most recent fully closed session of the current day (Asia, London or New York).
- Calculations for the chosen session:
- Session high and low
- VWAP (volume-weighted average price) using tick volume and typical price
- Expresses VWAP as a percentage position inside that high–low range
- Classification:
- If VWAP sits in the lower band (e.g. ≤ 30%) → Bullish Session Volume Bias
- If VWAP sits in the upper band (e.g. ≥ 70%) → Bearish Session Volume Bias
- If VWAP is mid-range (between the bands), the engine uses session close vs VWAP as a tie-breaker:
- Close significantly above VWAP → Bullish
- Close significantly below VWAP → Bearish
- Close near VWAP → Neutral
All key thresholds (lower band, upper band, close-vs-VWAP tie-break %) are user inputs.
Visuals:
- A soft rectangle marking session high–low, colored by Session Volume bias
- A VWAP line across the session
- A small label showing the VWAP position as a percentage of the range (e.g. “23.5%”).
Final Bias – 3-Engine vote
The cBot then builds a Final Bias by combining:
- Heikin structural bias (Bullish / Bearish / other)
- NY bias (Bullish / Bearish / Pending)
- Session Volume bias (Bullish / Bearish / Neutral / Pending)
It counts Bullish vs Bearish votes and classifies:
- Strong Bullish / Strong Bearish – 3 engines aligned
- Mild Bullish / Mild Bearish – 2 engines aligned vs 1
- Bullish / Bearish – single clear direction when others are Pending
- Range-Bound – mixed picture
- Pending – no clear votes yet
The HUD on the chart displays:
- Heikin Bias
- NY Bias
- Session Volume Bias (with VWAP %)
- Final Bias (3 Engines) as the bottom line.
Strategy type, markets and usage
- Strategy type:
- Bias / context analyzer
- Trend-following and session-based directional framework
- Target symbols & periods:
- Designed for major FX pairs, indices and liquid commodities
- Typical bias timeframes: H1–H6 (via the “Bias Timeframe (minutes)” input)
- NY and session analysis typically use M15 for zone and volume calculations
- Trading use case:
- Discretionary intraday and swing traders who want a structured daily bias
- Helps align trade ideas (entries, exits and risk) with higher-timeframe structure, NY positioning and recent session volume
- Suitable as a chart overlay tool for manual execution, or as a bias filter inside a larger trading workflow
- Suggested leverage & account size:
- Works with any account size, since it does not place trades
- Commonly used in environments with leverage from 1:30 and above, where directional alignment matters for risk and position management
Important notes
- This cBot is an analysis tool only – it does not send orders or manage positions.
- It is intended to support the trader’s own decision-making by providing a consistent, rules-based bias calculation.







.jpg)










