Modified Smoothed Heiken Ashi

This code is based on Smoothed HA candle which will work on all chart types
condition for BUY:
1. When close crosses Smoothed HA
2.Close should be in side upper band
3. BBW must be greater than the average

vice versa for sell
this code takes data from HA chart so that it can be applied on all chart type.
Bollinger band and Bollinger band width conditions added for removal of unwanted signals
Alert added so that you can apply alert and check it in real time performance
thanks to The Secret Mindset You tube channel from where I got the idea to convert this into a pine script indicator
smooth HA taken from "Smoothed Heiken Ashi Candles v1" at //@jackvmk
Release Notes: updated BBW length to 20 on screen
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
An enthusiast Engineer and trader. I code my strategies in pine script.DM me or Mail Me for any Info at, you can donate me at PayPal on mentioned mail.


Hi, I really liked your work, tell me how to change the color in places, green top red down?
+1 Reply
@lemoon38,you can change it in line no 38,65,62. If you are not able to do it yourself then mention all the colour you want explaining in chart (share chart link here) and i will do it for you.
lemoon38 badshah_e_alam
@badshah_e_alam, Thank you very much for your answer, I did it differently. Did I swap col = o2> c2? color.lime on line 36
@lemoon38, yes u are right if you want to change the color of Smoothed Heiken ashi bars.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out