Matrix Series

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Matrix Series

Postby isamegrelo » Mon Oct 30, 2017 9:54 am

Source: https://www.prorealcode.com/prorealtime ... -indicator

//--External parameters
//Smoother=5
//SupResPeriod = 50
//SupResPercentage = 100
//PricePeriod = 16
//ob = 200
//os = -200

nn = Smoother

ys1 = ( high + low + close * 2 ) / 4
rk3 = exponentialaverage[nn](ys1)
rk4 = std[nn](ys1)
rk5 = (ys1 - rk3 ) * 200 / rk4
rk6 = exponentialaverage[nn](rk5)
up = exponentialaverage[nn](rk6)
down = exponentialaverage[nn](up)

if up<down then
Oo = up
else
oO = down
endif

if up<down then
Ll = down
else
Ll = up
endif
Cc = Ll

if up<down then
DRAWCANDLE(Oo,Cc,Oo,Cc)COLOURED(200,0,0)
else
DRAWCANDLE(Oo,Oo,Cc,Cc)COLOURED(0,200,0)
endif

//-------S/R Zones------
Lookback = SupResPeriod
PerCent = SupResPercentage
Pds = PricePeriod

C3 = cci[Pds](close)

Osc = C3
Value1 = Osc
Value2 = highest[Lookback](Value1)
Value3 = lowest[Lookback](Value1)
Value4 = Value2 - Value3
Value5 = Value4 * ( PerCent / 100 )
ResistanceLine = Value3 + Value5
SupportLine = Value2 - Value5

//--Overbought/Oversold/Warning Detail
UPshape = up > 200 and up>down
DOWNshape = down < -200 and up>down

if UPshape then
DRAWTEXT("+",barindex,highest[1](up)+20,Dialog,Bold,20) coloured(102,255,255)
endif
if DOWNshape then
DRAWTEXT("+",barindex,lowest[1](down)-20,Dialog,Bold,20) coloured(102,255,255)
endif

RETURN ResistanceLine COLOURED(0,200,0) STYLE(dottedline,1) as "Resistance line", SupportLine COLOURED(200,0,0) STYLE(dottedline,1) as "Support line"
isamegrelo
FXCodeBase: Initiate
 
Posts: 114
Joined: Mon May 29, 2017 3:36 pm



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Majestic-12 [Bot] and 16 guests