You Are At The Deluxe Triple D Stochastic Page
No There Is No Charge - If You Learn Or Get Something From It  - Contribute What You Think It Is Worth - Trading Is A Craft - I Should Learn It Well

"If, by chance, something less or more proper or necessary I omitted, your indulgence for me is entreated, as there is no one who is without fault, and in all things altogether circumspect." - Fibonacci
Contribute Here - Thank You
Return To Indicators - TOS Scripts - Page

George Lane’s description of his famous indicator: "Stochastic measures the momentum of price.  If you visualize a rocket going up in the air – before it can turn down, it must slow down.
Momentum always changes direction before price.
"As prices move down, the close of the day has a tendency to crowd the lower portion of the daily range. Just before you get to the absolute price low,
The market does not have as much push as it did. 
The closes no longer crowd the bottom of the daily range. Therefore, Stochastic turns up at or before the final price low.

Take what he said and reverse it for when the market is moving higher also.
If you visualize a rocket slamming into the earth, it has slowed down abruptly, before it can turn up, a ton of (money) momentum comes in to take a new one back up.
George passed away in 2004 before the major advent of day traders and the advent of robots trading the markets. He did believe in Fibonacci and the percentages of 0 to 100.

Deluxe Triple D Stochastic - StockK

With All Due Respect To The Creator Of Stochastic, George Lane

George Lane had the right idea, get up and trade in the morning & then take a nap and go live. Stochastic is the letters K and D from the alphabet.
George Lane & Stochastic
If you use a out of the box StockK it really leaves alot to be desired, great tool but totally under scripted.
If you use a StockK with RSI, scripted in it, WHY? They are both momentum indicators. Use one or the other.
StockK uses price, high, low, close, for its formula, RSI only uses price, also if you put it in perspective RSI is the same measurement as
any moving average you use on price, as is Fibonacci, there is a study in TOS called Reverse Engineering RSI, try it you will see.
Both have a scale of 0 to 100, and the so called overbought, oversold, there's that 0 to 100 roman numeral decimal thing again, Fibonacci.
 Actually if you go in the formula of StockK, you can make the 0, minus anything you want, and make the 100, into a 1000, it ranges the same.
In the SMI Stochastic Momentum Index study the range is infinite. Is anything ever really overbought or oversold?
Maybe its underbought and undersold. Trade What You See, Not What You Hear.

With Deluxe Triple D StockK you have the following.

1. An expanded operating window, it is scripted with a -10 line and a 110 line so it makes the window bigger. It does not alter the formula.
So you can get some definition of movement and your bubble isn't always
disappearing. Leave them on and color them whatever background color you use.

2. It is scripted with a 0 line and a 100 line, the true scale of operation, and your bubble doesn't disappear.

3. It is scripted with a 40, 50, and 60 line , if you so such desire or need to use them.

4. It is scripted with deluxe factory FullK and FullD color choices, Normal, OverBought, OverSold. What Normal is escapes the imagination.

5. It is scripted with FullK and FullD slope color choices, you choose the colors. You decide what plot you want to use, factory or slope! Or use both. Line and Dots!
Slope coloring helps to count the waves and or cross recross, net sellers, net buyers action.

6. It is scripted with a cross of FullK crossing D dperiod1, which is FullDSlope1, with arrows, Learn to watch the slope color change more so then the arrow coming on.
The Hull Crossover script works great as a heads up that something is happening to check the slope on the FullK. Mindful, Mindful, Mindful.

7. It is scripted with a color cloud between FullK, FullD, looking at a StockK with no cloud ruins your brain. With the cloud and the slope FullK, FullD
the action is so defined. So easy to see and check whats going on. To set the colors on the cloud you use the Globals tab in the edit study box.
Use whatever settings you desire. George Lane used 14 K, 14 D, slowing period 3. They seem to work best!
It is scripted with a second cloud between FullK, FullDSlope1.

8. It has two extra D period levels, dperiod1 and dperiod2 and or FullDSlope1 and FullDSlope2. FullDSlope1 is used as the cross signal with Full K
FullDSlope2 is used as a center line between Full K and Full D, George Lane had his settings at 14 FullK, 14 FullD, 3 slowing period,
FullDSlope1 setting of 2, it triggers the FullKCross Up or Down Arrows, FullDSlope2 setting of 7, center between 14 FullK and 14 FullD.
A lot of people use faster settings, then you end up getting stomped out and start getting confused, the additional D levels gives you a better view of direction.
You get in a bias of the 14 settings, you can better trade in the right direction.

9. Added Alerts, when FullK crosses FullDSlope1 and creates the arrow on the chart you can set an alert, bell, chime, etc.

10. Added Label when FullK crosses FullDSlope1, UP or DOWN, you can go into Edit Sources and scroll down to
Add Label and write whatever you want to be on the screen.

Updated - Removed these crosses.
It still has the factory Breakout script, for a Full K or Full D cross of the overbought or oversold, seems useless, so many times FullK and FullD never contact them
and or to many false signals in such a sensitive area and more of a distraction then anything.

Use the factory FullK, FullD, or the FullKSlope, FullDSlope. Same plots, different choice of coloring's.
George Lane used 14, 14, 3, the two additional D's use 2, 7. Try it!

On the FullKCrossUp, FullKCrossDown, you need to use Numerical arrows, up or down.

To set colors on the cloud use the Globals tab in the study edit box.
No the cloud is on all the time, it is the driving force of improving the StockK study.
No there is no cloud for when StockK is above 80 or below 20, you don't need it.
In reality the whole overbought, oversold wording misconstrues the whole study process, it doesn't have to be overbought, oversold.
Watch for a change in the slope color in coordination of a known Fivot and overall bias of price action. Mindful, Mindfulness.

Alerts, set it up the way you want.

To change the text in the label, right click the study and choose Edit Sources, scroll down to AddLabel and write whatever you like.
TOS scripting only allows upper left hand corner for location.

One hour chart, 14 EMA moving average, one day showing day Fivots, Hull crossover and Deluxe Triple D StockK and Deluxe StockK.
One hour Time Chart is great and alot of people use it, the choice is yours between Time or Range!

Which StockK is easier to interrupt?  

WARNING about Range Charts in TOS - Use the 10 Day for Time Interval, any other setting doesn't function correctly. Thats subject to change.

40 tick & or points Range Chart, 14 EMA Price Cloud Price Line, and day Fivots, Hull crossover and Deluxe Triple D StockK and Deluxe StockK.
Which StockK is easier to interrupt?  

WARNING about Range Charts in TOS - Use the 10 Day for Time Interval, any other setting doesn't function correctly. Thats subject to change.

40 tick & or points Range Chart, 14 EMA Price Cloud Price Line, and day Fivots, Hull crossover and Deluxe Triple D StockK.

WARNING about Range Charts in TOS - Use the 10 Day for Time Interval, any other setting doesn't function correctly. Thats subject to change.

60 tick & or points Range Chart, 14 EMA Price Cloud Price Line, and day Fivots, Hull crossover and Deluxe Triple D StockK and Deluxe StockK.
Which StockK is easier to interrupt?  

WARNING about Range Charts in TOS - Use the 10 Day for Time Interval, any other setting doesn't function correctly. Thats subject to change.

60 tick & or points Range Chart, 14 EMA Price Cloud Price Line, and day Fivots, Hull crossover and Deluxe Triple D StockK.

Script For Think Or Swim - Copy & Paste

declare lower;

input over_bought = 80;
input over_sold = 20;
input KPeriod = 10;
input DPeriod = 10;
input slowing_period = 3;
input DPeriod1 = 10;
input DPeriod2 = 10;
input priceH = high;
input priceL = low;
input priceC = close;
input averageType = AverageType.SIMPLE;

def lowest_k = Lowest(priceL, KPeriod);
def c1 = priceC - lowest_k;
def c2 = Highest(priceH, KPeriod) - lowest_k;
def FastK = if c2 != 0 then c1 / c2 * 100 else 0;

plot FullK = MovingAverage(averageType, FastK, slowing_period);
plot FullD = MovingAverage(averageType, FullK, DPeriod);
def FullD1 = MovingAverage(averageType, FullK, DPeriod1);
def FullD2 = MovingAverage(averageType, FullK, DPeriod2);

plot FullKSlope = FullK;
FullKSlope.DefineColor("Up", GetColor(1));
FullKSlope.DefineColor("Down", GetColor(0));
FullKSlope.AssignValueColor(if FullKSlope  > FullKSlope [1] then FullKSlope .Color("Up") else FullKSlope .Color("Down"));

plot FullDSlope = FullD;
FullDSlope.DefineColor("Up", GetColor(1));
FullDSlope.DefineColor("Down", GetColor(0));
FullDSlope.AssignValueColor(if FullDSlope  > FullDSlope [1] then FullDSlope .Color("Up") else FullDSlope.Color("Down"));

plot FullDSlope1 = FullD1;
FullDSlope1.DefineColor("Up", GetColor(1));
FullDSlope1.DefineColor("Down", GetColor(0));
FullDSlope1.AssignValueColor(if FullDSlope1  > FullDSlope1 [1] then FullDSlope1 .Color("Up") else FullDSlope1.Color("Down"));

plot FullDSlope2 = FullD2;
FullDSlope2.DefineColor("Up", GetColor(1));
FullDSlope2.DefineColor("Down", GetColor(0));
FullDSlope2.AssignValueColor(if FullDSlope2  > FullDSlope2 [1] then FullDSlope2 .Color("Up") else FullDSlope2.Color("Down"));

plot FullKCrossUp = if FullK crosses above FullDSlope1 then FullDSlope1 else Double.NaN;
plot FullKCrossDown = if FullK crosses below FullDSlope1 then FullDSlope1 else Double.NaN;

plot OverBought = over_bought;
plot OverSold = over_sold;

AddCloud (FullK, FullD, GlobalColor("Bullish"), GlobalColor("Bearish"));
DefineGlobalColor("Bullish", Color.GREEN);
DefineGlobalColor("Bearish", Color.RED);

AddCloud (FullK, FullDSlope1, GlobalColor("Bullish"), GlobalColor("Bearish"));
DefineGlobalColor("Bullish", Color.GREEN);
DefineGlobalColor("Bearish", Color.RED);

plot MinusTen = -10;

plot Zero = 0;

plot Forty = 40;

plot Fifty = 50;

plot Sixty = 60;

plot OneHundred = 100;

plot OneHundredTen = 110;

FullK.DefineColor("OverBought", GetColor(5));
FullK.DefineColor("Normal", GetColor(7));
FullK.DefineColor("OverSold", GetColor(1));
FullK.AssignValueColor(if FullK > over_bought then FullK.Color("OverBought") else if FullK < over_sold then FullK.Color("OverSold") else FullK.Color("Normal"));

FullD.DefineColor("OverBought", GetColor(5));
FullD.DefineColor("Normal", GetColor(7));
FullD.DefineColor("OverSold", GetColor(1));
FullD.AssignValueColor(if FullD > over_bought then FullD.Color("OverBought") else if FullD < over_sold then FullD.Color("OverSold") else FullD.Color("Normal"));


# Start Labels ---------------------------------------------------------------------------------

def uptrend = FullK > FullDSlope1;
def downtrend = FullK < FullDSlope1;

AddLabel(uptrend, "UP-ARROW SLOPE", Color.DARK_GREEN);
AddLabel(downtrend, "DOWN-ARROW SLOPE", Color.DARK_RED);

# Alerts ----------------------------------------------------------------------------------------

Alert(Crosses(FullK, FullDSlope1, CrossingDirection.ABOVE), "Stochastic Buy", Alert.ONCE, Sound.Ding);

Alert(Crosses(FullK, FullDSlope1, CrossingDirection.BELOW), "Stochastic Sell", Alert.ONCE, Sound.Ding);

Investing And Trading Involve Significant Financial Risk And Is Not Suitable For Everyone. All Information Is Intended For Educational Purposes Only.
To the fullest extent of the law, we will not be liable to any person or entity for the quality, accuracy, completeness, reliability, or timeliness of the information provided on this website,
 or for any direct, indirect, consequential, incidental, special or punitive  damages that may arise out of the use of information we provide to any person or entity
 (including, but not limited to, lost profits, loss of opportunities, trading losses, and damages that may result from any inaccuracy or incompleteness of this information).
We encourage you to invest carefully and read investment information available at the websites of the SEC at and FINRA at


Honor - Respect - Freedom - Country