signal ( 19,39, 16 )
should be
signal ( 19, 39, 9 )
for details, read Gerald Appel book Tecnical Analysis Power Tools for Active Investors, start page 165....