OPEN-SOURCE SCRIPT
CMA Technologies Heikin-Ashi Trend Follower

๐ท Strategy Name: CMA Technologies โ Heikin-Ashi Trend Follower Bot
๐ Type: Trend-Following / Smoother Trend Detection
๐ Recommended Timeframe: 1D (Daily)
๐ Test ONLY on Candlestick chart mode โ NOT Heikin-Ashi chart!
๐ Strategy Overview:
This strategy captures clean directional trends using Heikin-Ashi candle logic.
Heikin-Ashi candles are great for visual clarity โ they smooth out noise and highlight directional moves. This bot leverages that by waiting for two consecutive same-direction candles before entering a trade:
๐ 2 Bullish HA candles โ Long Entry
๐ 2 Bearish HA candles โ Short Entry
โ Exit is triggered when a candle of opposite direction appears
This helps reduce fakeouts and allows the bot to ride trends longer with cleaner logic.
โ ๏ธ IMPORTANT NOTICE โ Backtest Correctly:
DO NOT use the โHeikin-Ashiโ chart type when testing this bot.
Pine Script always runs on raw candlestick data โ but if your chart is Heikin-Ashi, youโll see fake or delayed results.
โ Always backtest on normal candles, even though the logic uses Heikin-Ashi internally.
โ We recommend using the 1D timeframe for optimal trend clarity.
โ๏ธ Parameters & Logic:
Trend Confirmation: 2 consecutive HA candles in same direction
Exit on HA candle flip
Position Size: 50% of equity
Commission: 0.05%
Max Pyramiding: 5
๐ง Best For:
Swing traders who want to ride trends longer
Traders who hate noise and need visual confirmation
Assets with clean trending phases (crypto majors, indices, gold)
๐ CMA Technologies โ We build structure inside volatility.
๐ More bots on our TradingView profile: CMATechnologies
๐ Type: Trend-Following / Smoother Trend Detection
๐ Recommended Timeframe: 1D (Daily)
๐ Test ONLY on Candlestick chart mode โ NOT Heikin-Ashi chart!
๐ Strategy Overview:
This strategy captures clean directional trends using Heikin-Ashi candle logic.
Heikin-Ashi candles are great for visual clarity โ they smooth out noise and highlight directional moves. This bot leverages that by waiting for two consecutive same-direction candles before entering a trade:
๐ 2 Bullish HA candles โ Long Entry
๐ 2 Bearish HA candles โ Short Entry
โ Exit is triggered when a candle of opposite direction appears
This helps reduce fakeouts and allows the bot to ride trends longer with cleaner logic.
โ ๏ธ IMPORTANT NOTICE โ Backtest Correctly:
DO NOT use the โHeikin-Ashiโ chart type when testing this bot.
Pine Script always runs on raw candlestick data โ but if your chart is Heikin-Ashi, youโll see fake or delayed results.
โ Always backtest on normal candles, even though the logic uses Heikin-Ashi internally.
โ We recommend using the 1D timeframe for optimal trend clarity.
โ๏ธ Parameters & Logic:
Trend Confirmation: 2 consecutive HA candles in same direction
Exit on HA candle flip
Position Size: 50% of equity
Commission: 0.05%
Max Pyramiding: 5
๐ง Best For:
Swing traders who want to ride trends longer
Traders who hate noise and need visual confirmation
Assets with clean trending phases (crypto majors, indices, gold)
๐ CMA Technologies โ We build structure inside volatility.
๐ More bots on our TradingView profile: CMATechnologies
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
"CMA Technologies โ Built on Math, Proven by Results."
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
"CMA Technologies โ Built on Math, Proven by Results."
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.