TradingView
DevLucem
2019年6月21日午前10時42分

Heiken Ashi Line MTF 

EUR/CADOANDA

詳細

This scripts requests Heiken-Ashi on different time frames and plots their values on the chart on your current time frame
コメント
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)
詳細