This background indicator will give you the ichimoku trend.
The conditions are as follows.
The price must be outside the cloud and the chikou must be free.
Simple, but appreciable for visual comfort.
You will have an indicator applicable on the price and an indicator in histogram.
//--------------------Indicateur Screener Ichimoku Buy
//Ichimoku
Tenkan = (highest[9](high)+lowest[9](low))/2
Kijun = (highest[26](high)+lowest[26](low))/2
SpanA = (tenkan[26]+kijun[26])/2
SpanB = (highest[52](high[26])+lowest[52](low[26]))/2
//--------------------Condition Haussière
//Trend Haussier
A1 = close > SpanA and close > SpanB
A2 = close > high[26]
A3 = close > SpanA[26] and close > SpanB[26]
A4 = close > Kijun[26] and close > Tenkan[26]
A = A1 and A2 and A3 and A4
Screener [A]
//--------------------Indicateur Screener Ichimoku Sell
//Ichimoku
Tenkan = (highest[9](high)+lowest[9](low))/2
Kijun = (highest[26](high)+lowest[26](low))/2
SpanA = (tenkan[26]+kijun[26])/2
SpanB = (highest[52](high[26])+lowest[52](low[26]))/2
//--------------------Condition Baissière
//Trend Baissier
V1 = close < SpanA and close < SpanB
V2 = close < low[26]
V3 = close < SpanA[26] and close < SpanB[26]
V4 = close < Kijun[26] and close < Tenkan[26]
V = V1 and V2 and V3 and V4
Screener [V]
Also two Screeners will be offered to you, one for the uptrend, one for the downtrend.
//--------------------Indicateur Ichimoku BackGround
//Ichimoku
Tenkan = (highest[9](high)+lowest[9](low))/2
Kijun = (highest[26](high)+lowest[26](low))/2
SpanA = (tenkan[26]+kijun[26])/2
SpanB = (highest[52](high[26])+lowest[52](low[26]))/2
//--------------------Condition Haussière
//Trend Haussier
A1 = close > SpanA and close > SpanB
A2 = close > high[26]
A3 = close > SpanA[26] and close > SpanB[26]
A4 = close > Kijun[26] and close > Tenkan[26]
A = A1 and A2 and A3 and A4
if A then
backgroundcolor(62,169,203,30)
endif
//--------------------Condition Baissière
//Trend Baissier
V1 = close < SpanA and close < SpanB
V2 = close < low[26]
V3 = close < SpanA[26] and close < SpanB[26]
V4 = close < Kijun[26] and close < Tenkan[26]
V = V1 and V2 and V3 and V4
if V then
backgroundcolor(73,73,73,30)
endif
Return
//--------------------Paramettre de Base Ichimoku Histogramme
//Paramettre de Cadrage
if close > open then
signalC = 1
else
signalC = 0
endif
if signalC = 1 then
drawcandle(4,4,4,4)coloured(0,0,0,0)
endif
if signalC = 0 then
drawcandle(0,0,0,0)coloured(0,0,0,0)
endif
//--------------------Indicateur
//Ichimoku
Tenkan = (highest[9](high)+lowest[9](low))/2
Kijun = (highest[26](high)+lowest[26](low))/2
SpanA = (tenkan[26]+kijun[26])/2
SpanB = (highest[52](high[26])+lowest[52](low[26]))/2
//--------------------Condition Haussière
//Cumo
CUA = close > SpanA and close > SpanB
if CUA then
SignalCUA = 1
else
SignalCUA = 0
endif
if SignalCUA = 1 then
drawrectangle(barindex[1],1,barindex,2)coloured(32,162,236)
endif
//Chikou
CHA1 = close > SpanA[26] and close > SpanB[26]
CHA2 = close > Tenkan[26] and close > Kijun[26]
CHA3 = close > high[26]
CHA = CHA1 and CHA2 and CHA3
if CHA then
SignalCHA = 1
else
SignalCHA = 0
endif
if SignalCHA = 1 then
drawrectangle(barindex[1],2,barindex,3)coloured(32,162,236)
endif
//Commande Haussière
if SignalCUA = 1 and SignalCHA = 1 then
drawrectangle(barindex[1],3,barindex,4)coloured(48,138,19)
endif
//--------------------Condition Baissière
//Cumo
CUV = close < SpanA and close < SpanB
if CUV then
SignalCUV = 1
else
SignalCUV = 0
endif
if SignalCUV = 1 then
drawrectangle(barindex[1],1,barindex,2)coloured(73,73,73)
endif
//Chikou
CHV1 = close < SpanA[26] and close < SpanB[26]
CHV2 = close < Tenkan[26] and close < Kijun[26]
CHV3 = close < low[26]
CHV = CHV1 and CHV2 and CHV3
if CHV then
SignalCHV = 1
else
SignalCHV = 0
endif
if SignalCHV = 1 then
drawrectangle(barindex[1],2,barindex,3)coloured(73,73,73)
endif
//Commande Baissière
if SignalCUV = 1 and SignalCHV = 1 then
drawrectangle(barindex[1],1,barindex,0)coloured(193,12,12)
endif
Return 4 coloured(73,73,73,100) as "4", 3 coloured(73,73,73,100) as "3", 1 coloured(73,73,73,100) as "1", 0 coloured(73,73,73,100) as "0"