TradingView
lvturner
29 Th07 2017 06:17

Ichimoku Volume Filtered Signals 

Ethereum / BitcoinKraken

Mô tả

For use whenever you would use an Ichimoku Indicator.

This indicator will print buy and sell signals when the following conditions are met - note all parameters for ichimoku, volume sma, etc are configurable

Buy
  • Price is above cloud
  • Tenkan-sen is above Kijun-sen
  • Volume is double or more than 20 sma volume
  • Volume is less then four times 20 sma volume
  • Candle is positive


Sell
  • Price is below cloud
  • Kijun-sen is above Tenkan-sen
  • Volume is double or more than 20 sma volume
  • Volume is less than four times 20 sma volume
  • Candle is negative


If you find this useful, consider sending some bitcoin my way 😀


1LbFxAYJSVPxirT8eW31QHaGbySHyPYgMq


Good luck and have fun!


Phát hành các Ghi chú

Inserted default colours to stop TV choosing weird ones by default.
Open sourcing le code.

Phát hành các Ghi chú

  • Volume min/max multipliers now floats
  • Changed default minimum volume to 1.5x
  • Added trend indicators - strong bull/bear represented above or below candles


Note: Finding this works best with Heiken Ashi candles
Bình luận
lvturner
//@version=3
study('Ichimoku Volume Filtered Signals', overlay=true)
volumeSmaPeriods = input(20, minval=1, title="Volume SMA")
volMultMin = input(1.5, minval=1, type=float, title="Minimum volume times over SMA")
volMultMax = input(4, minval=1, type=float, title="Maximum volume times over SMA")
tenkanPeriods = input(9, minval=1, title="Tenkan-sen Periods")
kijunPeriods = input(26, minval=1, title="Kinjun-sen Periods")
senkouPeriods = input(26, minval=1, title="Senkou Periods")
chikouPeriods = input(26, minval=1, title="Chikou Periods")

donchian(len) => avg(lowest(len), highest(len))

tenkanSen = donchian(tenkanPeriods)
kijunSen = donchian(kijunPeriods)
senkouA = (tenkanSen+kijunSen) / 2
senkouB = (highest(52)+lowest(52)) / 2
volSma = sma(volume, volumeSmaPeriods)


uptrend = tenkanSen > kijunSen

uptrend := uptrend and open > senkouA[senkouPeriods]
uptrend := uptrend and close > senkouA[senkouPeriods]
uptrend := uptrend and open > senkouB[senkouPeriods]
uptrend := uptrend and close > senkouB[senkouPeriods]
uptrend := uptrend and close[chikouPeriods] < close

buySignal = uptrend and (volume[0] >= (sma(volume, volumeSmaPeriods) * volMultMin))
buySignal := buySignal and (volume[0] < (sma(volume, volumeSmaPeriods) * volMultMax))
buySignal := buySignal and (close > open)


downtrend = tenkanSen < kijunSen

downtrend := downtrend and open < senkouA[senkouPeriods]
downtrend := downtrend and close < senkouA[senkouPeriods]
downtrend := downtrend and open < senkouB[senkouPeriods]
downtrend := downtrend and close < senkouB[senkouPeriods]
downtrend := downtrend and close[chikouPeriods] > close

sellSignal = downtrend and (volume[0] >= (sma(volume, volumeSmaPeriods) * volMultMin))
sellSignal := sellSignal and (volume[0] < (sma(volume, volumeSmaPeriods) * volMultMax))
sellSignal := sellSignal and (close < open)

plotshape(buySignal, title="Buy Signal", style=shape.triangleup, location=location.belowbar, size=size.auto, color=lime, transp=0)
plotshape(sellSignal, title="Sell Signal", style=shape.triangledown, location=location.abovebar, size=size.auto, color=red, transp=0)

plotshape(uptrend and not buySignal, style=shape.cross, location=location.belowbar, size=size.auto)
plotshape(downtrend and not sellSignal, style=shape.cross, location=location.abovebar, size=size.auto)


alertcondition(buySignal, title="Buy!", message="Buy!")
alertcondition(sellSignal, title="Sell!", message="Sell!")
aBigLucky
Hello lvturner?
I am very interested in your indicator
above source code like your logic?
I don't think it is same
EmpireConsulting
Hey Thanks alot for sharing I was really excited about this I copy and pasted to Pine it gets accepted but when applied nothing happens;-(
lvturner
@empirefxconsulting, Hmm, not sure why, did you try applying it to a chart?
davidwongv9
i cant see the source code ??
lvturner
@davidwongv9, sorry - seems trading view didn't open it up like I thought it would - will resolve once I'm not traveling
bgm
No signals at all
lvturner
@bgm, Which market/instrument, and have you checked the colour settings don't conflict with your chart backround?
INIFINIT3LIGHT
Sell Signal indicator is not showing up brother...
Thêm nữa