Original LUA oscillator: http://fxcodebase.com/code/viewtopic.php?f=17&t=27917.
Formulas (if Use_Smoothing):
SM = Moving average(MA, Second_Smoothing_Length, Second_Smoothing_Method),
Signal = Moving average(SM, Signal_Length, Signal_Method), where
MA = Moving average(Raw, First_Smoothing_Length, First_Smoothing_Method),
Raw[i] = Close[i]-(Min+Max)/2,
Min, Max - minimum and maximum price at range from (i-Length) to i.
Formulas (if not Use_Smoothing):
Sm[i] = Close[i]-(Min+Max)/2,
Signal = Moving average(SM, Signal_Length, Signal_Method), where
Min, Max - minimum and maximum price at range from (i-Length) to i.
Download: