Return value of the Price Oscillator technical indicator of momentum for selected price.

The S parameter is the short term moving average and L as the long term one.

Syntax:

Calculation :

The price oscillator is calculated by subtracting a short moving average by a long one. In its percentage form, the result is divided by the short moving average and multiplied by 100. The parameters are the number of days of both moving averages.

Interpretation :

Buy/Sell opportunities occur when the oscillator crosses the 0 level.