+1 888 340 6572

# Oscillators > D_Three Ten Osc

Article/Author: Bill Mars, P.O. Box 231, St. Marys, OH 45885, FAX (419) 394-2165

File Includes: Indicator > D_Three Ten Osc

Category: Indicator > Oscillators

Description:

TradeStation does not allow the user to make a Multi Data Chart with a Tick Bar Chart and any other type a chart. This indicator allows the user to plot a daily 3-10 Oscillator on a Tick Bar Chart.

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 simple moving average 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"

Usage:

A buy is when the slow line is above zero and the fast line dips below zero and then hooks up. The first cross is the strongest probabilities fall off on second and third pullbacks.

EasyLanguage Code:
```VARS: PRICE(0), EMA1(0), EMA2(0), ALPHA1(.50), ALPHA2(.182),
ALPHA3(.118) , D_HIGH(0), D_LOW(0), FIRSTDAY(TRUE);

IF DATE <> DATE[1]  AND DAYOFWEEK(DATE[1]) <> 0 THEN BEGIN
PRICE =  (D_HIGH + D_LOW) /2;
IF FIRSTDAY = TRUE THEN BEGIN
PRICE = (H[1]+L[1])/2;
EMA1 = PRICE;
EMA2 = PRICE;
VALUE2 = 0;
FIRSTDAY = FALSE;
END;
EMA1  =  (ALPHA1 * PRICE) + ((1 - ALPHA1) *  EMA1);
EMA2  =  ((ALPHA2) * PRICE) + ((1 - (ALPHA2)) *  EMA2);
VALUE1 = (EMA1 - EMA2);
VALUE2 = (ALPHA3 * VALUE1) + ((1 - ALPHA3) *  VALUE2);
PLOT1[1](VALUE1,"D_3-10");
PLOT2[1](VALUE2,"D_AVE");
PLOT3(0," ");
D_LOW = LOW;
D_HIGH = HIGH;
END;

IF HIGH > D_HIGH THEN D_HIGH = HIGH;
IF LOW  < D_LOW THEN D_LOW = LOW;

{ALPHA IS THE CONSTANT FOR THE EMA FILTER.
WERE THE EMA RELATES TO THE SMA BY:  ALPHA = 2 / (LENGTH + 1)
FOR AN EXAMPLE SOME COMMON VALUES ARE:
ALPHA	LENGTH
.50	3 DAYS
.40	4 DAYS
.25	7 DAYS
.20	9 DAYS
.182	10 DAYS
.133	14 DAYS
.118	16 DAYS
.095	20 DAYS
.069	28 DAYS}```