Walter Bressert's 3-10 Oscillator is a detrending oscillator derived
from subtracting a 10 day moving average from a 3 day moving average.
The second plot is an 16 day of the 3-10 Oscillator.
The 16 period moving average is the slow line and the 3/10 oscillator is
the fast line.
For more information on the 3-10 Oscillator see Walter Bressert's book
"The Power of Oscillator/Cycle Combinations"
You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading.
this script was actually using future data because in version 2, the default value of parameter 'lookahead' in security() was on
therefore it lead to a Phenomenal backtesting result...
if you switch it into version 3 and place lookahead = barmerge.lookahead_off inside you will see the actual result