This is a script to place Heiken Ashi candles on your chart alongside another candle type or more importantly, using the variables from this script, you can build a strategy using Heiken Ashi candles that will depict true/proper entries and exits in a strategy when using the backtest feature.
//@version=5 indicator('Heiken Ashi Candles', 'Heiken Ashi', overlay=true)
//Heiken Ashi isHA = input(true, 'HA Candles')
heikenashi_1 = ticker.heikinashi(syminfo.tickerid) data = isHA ? heikenashi_1 : syminfo.tickerid
o = request.security(data, timeframe.period, open) h = request.security(data, timeframe.period, high) l = request.security(data, timeframe.period, low) c = request.security(data, timeframe.period, close) col = c > o ? color.lime : color.red
There is a method of trading using bar charts over Heiken Ashi candles. It was worked out some years ago in another forum. Type (randy candles) into a search engine. I'm not sure if one is allowed to mention other forums here which is why I've said search engines. I'm using the method on mt4 but wanted to use the method here as well which is why I just came looking for HA candles. Thanks CryptoRox
randyandrajie
⋅
Is there a way that I can get that actual price to go up and down inside the Heiken Ashi bar? I am guessing that these bars will work in regular bar mode.