TradingView
DevLucem
Jun 21, 2019 10:42 AM
Heiken Ashi Line MTF
OANDA:EURCAD
30
EUR/CAD
OANDA
Description
⋅
Jun 21, 2019 10:42 AM
This scripts requests Heiken-Ashi on different time frames and plots their values on the chart on your current time frame
Oscillators
Trend Analysis
Volatility
heiken-ashi
multitimeframe
Comments
vijaypadayatchi
⋅
Apr 23, 2024 7:34 AM
Hello,
Can you please share source code for this script..
DevLucem
⋅
Apr 24, 2024 7:49 AM
@vijaypadayatchi
, Sure thing
//@version=3 study(title="Heiken Ashi Line", overlay=true) in_src = input(title="Source", type=source, defval=close) timeframe = input('60', type=resolution) up_clr = lime down_clr = red ha_handle = heikinashi(tickerid) ha_open = security(ha_handle, timeframe, open) ha_close = security(ha_handle, timeframe, close) ha_color = ha_close > ha_open ? up_clr : down_clr plot(in_src, title='HA line', color=ha_color, linewidth=2, style=line)
More
Can you please share source code for this script..