About Heikin Ashi Multi-Timeframe
Unlike multi-timeframe Heikin Ashi tools that only show colored rows in a separate pane, Heikin Ashi Multi-Timeframe draws the higher timeframes' candles on the price chart and states the result in words.
How it works
- Heikin Ashi uses the standard formula: close = (open + high + low + close) / 4, open = (previous open + previous close) / 2, high and low include the open and close.
- The middle and long timeframe candles are built bar by bar from the chart's own bars. The rows and the agreement on past bars use the colors those candles had at that bar, so the history looks the same as it did live.
- Agreement is checked on closed candles: the last closed chart bar, and the last closed middle and long timeframe candle. The result does not change inside a higher timeframe candle. The color of the forming candle is shown next to it, for example "(forming bullish)".
- Auto timeframes picks the next two timeframes up: 5m and 15m on 1m, 15m and 1h on 5m, 1h and 4h on 15m, 4h and D on 30m and 1h, D and W on 4h, W and M on D. Turn it off to choose them yourself.
- Heikin Ashi type "Smoothed" applies an EMA (length 5) to the Heikin Ashi values, counted in each timeframe's own candles. It is used for all three timeframes.
On the chart
- Top right: the result (All 3 bullish, 2 of 3 bullish, 2 of 3 bearish, All 3 bearish), bars since all three agreed, and each timeframe with its color and how many candles in a row.
- Long timeframe candles: solid boxes with a light fill and wicks. Middle timeframe candles: dotted boxes. Line style, width and fill can be set for each.
- Three thin rows at the bottom: long timeframe on top, middle timeframe in the middle, chart timeframe at the bottom. Each row has the color its Heikin Ashi candle had at that bar.
- Optional: color the chart's candles by the chart timeframe's Heikin Ashi.
- Green is bullish and red is bearish. Every part can be turned off.
Alerts
Use the "Any alert() function call" condition. "All 3 agree": when the three timeframes become all bullish or all bearish. "All 3 agree or stop agreeing": also when they stop being the same color. Sent at bar close.
Notes
- The middle and long timeframes must be higher than the chart. A monthly chart has no higher timeframe.
- Heikin Ashi open depends on the candles before it, so the first higher timeframe candles on the chart can differ from that timeframe's own Heikin Ashi chart.
How to add it
- 1Open the script page on TradingView with the button above (or here).
- 2Click “Add to favorites” on that page.
- 3On any chart, open Indicators, go to Favorites and click Heikin Ashi Multi-Timeframe [Saikix].