Fractals made of ZigZag that marks support and resistance.
In Higher timeframe, we can obtained the trend.
Candlesticks are painted with the color of the trend, found by the last support or resistance.
///////////////////////////////////////////////////////////////////////
REM Trader Zone ARRZZ
REM Trader Zone ARRZZ | indicator
REM 03.07.2018
REM RB @ www.tiburonesdealetacorta.com
REM Sharing www.tiburonesdealetacorta.com
////////////////////////////////////////////////////////////////////////
ATR = averagetruerange[3](close)
Data = customclose
mov = ZigZag[6](close)
cuerpo = ( close - open )
Alcista = mov>mov[1] and mov[1]<mov[2]
Bajista = mov<mov[1] and mov[1]>mov[2]
If cuerpo > 0 then
if alcista then
DRAWARROWUP(barindex,low-atr/4) coloured(0,200,0)
drawtext(" --------------------------------------------------------------------------------------------------------------------------",barindex[0],data[1]) coloured(0,146,193)
r=0
g=200
b=0
endif
endif
If cuerpo < 0 then
if bajista then
DRAWARROWDOWN(barindex[0],high+atr/4) coloured(200,0,0)
drawtext(" ---------------------------------------------------------------------------------------------------------------------------",barindex[0],data[1]) coloured(204,51,0)
r=200
g=0
b=0
endif
endif
drawcandle(open,high,low,close) coloured(r,g,b)
return