// DTOSC DECOMPOSE PRC
a = 8
b = 5
c = 3
d = 3
storsi = 100 * ((rsi[a] - lowest[b](rsi[a])) / ((highest[b](rsi[a])) - lowest[b](rsi[a])))
dtosck = average[c](storsi)
dtoscd = average[d](dtosck)
/////////////////////////////////////////////////////////////////////////
a2 = 13
b2 = 8
c2 = 5
d2 = 5
storsi2 = 100 * ((rsi[a2] - lowest[b2](rsi[a2])) / ((highest[b2](rsi[a2])) - lowest[b2](rsi[a2])))
dtosck2 = average[c2](storsi2)
dtoscd2 = average[d2](dtosck2)
//////////////////////////////////////////////////////////////////////////
a3 = 21
b3 = 13
c3 = 8
d3 = 8
storsi3 = 100 * ((rsi[a3] - lowest[b3](rsi[a3])) / ((highest[b3](rsi[a3])) - lowest[b3](rsi[a3])))
dtosck3 = average[c3](storsi3)
dtoscd3 = average[d3](dtosck3)
//////////////////////////////////////////////////////////////////////
a4 = 34
b4 = 21
c4 = 13
d4 = 13
storsi4 = 100 * ((rsi[a4] - lowest[b4](rsi[a4])) / ((highest[b4](rsi[a4])) - lowest[b4](rsi[a4])))
dtosck4 = average[c4](storsi4)
dtoscd4 = average[d4](dtosck4)
////////////////////////////////////////////////////////////////////////
seuilbas = 10
seuilhaut = 90
RETURN dtosck AS "DTOSCK" , dtoscd AS "DTOSCD" , dtosck2 AS "DTOSCK2" , dtoscd2 AS "DTOSCD2" ,dtosck3 AS "DTOSCK3" , dtoscd3 AS "DTOSCD3", dtosck4 AS "DTOSCK4" , dtoscd4 AS "DTOSCD4", Seuilbas as "Seuilbas" , Seuilhaut as " Seuilhaut "