UnknownUnicorn12070690

WDAHA-My Indicator Script

BITSTAMP:BTCUSD   Bitcoin
Hey I have created a indicator script that you can use, I can't publish it on the free version so I will post it here!
WDAHA (weighted day and half average) which is the average of 1+1/2 or 1.5 candles, simple logic.
Type this into pine editor on tradingview and add to chart to try it. Works better on higher time frames. If you get an error just message me I can try to help fix it. Also bring it to top of visual to see it ontop of the candles (visual order -> bring to front).

//@version=4
study(title="Weighted Moving Average", shorttitle="WDAHA", overlay=true, resolution="")
len = input(1, minval=1, title="Length")
src = input(close, title="Source")
len2 = input(2,minval=1, title="Length")
src2 = input(close, title="Source")
offset = input(title="Offset", type=input.integer, defval=0, minval=-500, maxval=500)
out= (wma(src, len) + wma(src2,len2))/2.0
plot(out, color=color.white, title="WMA", offset=offset)




Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.