The “Dynamic Trader OSCillator” was developed by Robert Miner (still him !), it was one of his favorite indicators.
It uses the “Stochastic RSI“, I did write the code on this website.
I’m not the author of this “DTOSC” code, I found it 2 years ago in order to use it.
Here is an example of DTOSC with parameters 13/8/5/5.
type = 2
if type = 1 then
a = 8
b = 5
c = 3
d = 3
endif
if type = 2 then
a = 13
b = 8
c = 5
d = 5
endif
if type = 3 then
a = 21
b = 13
c = 8
d = 8
endif
if type = 4 then
a = 34
b = 21
c = 13
d = 13
endif
storsi = 100 * ((rsi[a] - lowest[b](rsi[a])) / ((highest[b](rsi[a])) - lowest[b](rsi[a])))
dtosck = average[c](storsi)
dtoscd = average[d](dtosck)
Seuilhaut = 75
Seuilbas = 25
RETURN dtosck AS "DTOSCK" , dtoscd AS "DTOSCD" , Seuilhaut , Seuilbas