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.
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(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)
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!")