TradingView
DevLucem
21 Th06 2019 10:42

Heiken Ashi Line MTF 

EUR/CADOANDA

Mô tả

This scripts requests Heiken-Ashi on different time frames and plots their values on the chart on your current time frame
Bình luận
vijaypadayatchi
Hello,

Can you please share source code for this script..
DevLucem
@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)
Thêm nữa