Free Scan! Basic Coding On Think or Swim.
Creating buy and sell signals on the stochastic momentum Index.
# Stochastic Momentum Index Scan Bull and Bear
#
# TD Ameritrade IP Company, Inc. (c) 2008-2021
#
declare lower;
input over_bought = 40.0;
input over_sold = -40.0;
input percentDLength = 3;
input percentKLength = 5;
def min_low = Lowest(low, percentKLength);
def max_high = Highest(high, percentKLength);
def rel_diff = close - (max_high + min_low) / 2;
def diff = max_high - min_low;
def avgrel = ExpAverage(ExpAverage(rel_diff, percentDLength), percentDLength);
def avgdiff = ExpAverage(ExpAverage(diff, percentDLength), percentDLength);
def SMI = if avgdiff != 0 then avgrel / (avgdiff / 2) * 100 else 0;
def AvgSMI = ExpAverage(SMI, percentDLength);
def overbought = over_bought;
def oversold = over_sold;
Plot Uparrow = SMI > AvgSmi and SMI[1] < AvgSMI[1] and SMI < Oversold and AvgSMI < Oversold ;
def DownArrow = SMI < AvgSmi and SMI[1] > AvgSMI[1] and SMI > OverBought and AvgSMI > Oversold ;
-
43:52
World Nomac
13 hours agoInside China's $1 Billion Copy of Paris (near Shanghai) 🇨🇳
1.39K1 -
8:39
ErmzPlays
20 hours agoThe Acolyte is Modern Day Garbage
1.29K10 -
19:09
Scammer Payback
2 days agoConfronting Scammer Payback Imposters
13.3K20 -
23:30
Mr Reagan
19 hours agoGorka HUMILIATES Cathy Newman
37K104 -
42:22
The Why Files
3 days agoProject Looking Glass | The Time Warriors of the 2012 Apocalypse
97.7K89 -
1:36:46
Roseanne Barr
6 days ago $212.98 earnedFor Love of Country with Tulsi Gabbard | The Roseanne Barr Podcast #50
236K681 -
1:47:41
The Charlie Kirk Show
10 hours agoTHOUGHTCRIME Ep. 48 — Trump Rally Aftermath + Pride Month + "White Fortressing"?
100K54 -
2:15:48
Laura Loomer
10 hours agoEP52: THE GREAT REPLACEMENT: Trump and Biden Spar Over Border Policies Ahead of First Presidential Debate
58.5K31 -
1:29:23
Kim Iversen
11 hours agoJournalists Critical of Israel Fired and Threatened With Arrest! | What Is “Scholasticide” In Palestine?
83K122 -
2:01:58
Melonie Mac
13 hours agoGo Boom Live Ep 6
55.3K14