Ocean7Deep6- Smart Money For ThinkOrSwim

Adeodatus

Active member
Plus
Ocean7Deep6- Smart Money Velocity Engine Fold

Searching for a system to run the institutional trade data on the 5 minute chart. a combination of methods to revitalize the theory for institutional trades moving PPS, when and why if the slope, pulse and acceleration will indicate when to enter and exit. (No Option trades)
This version includes Auto-Mod for the 1, 5 and 30 minute charts. will adjust to chart. This version includes Extreme bubbles
2025-11-30-TOS_CHARTSA.png


Code:
#===============================
#===========================================================
# SMART MONEY VELOCITY ENGINE v1.2
# With Auto-Mode + Extreme Bubble Signals
# ADEODATUS 2025_11_30
#===========================================================

declare lower;

#-----------------------------------------------------------
# AUTO-MODE ENGINE
#-----------------------------------------------------------
# 0 = Swing, 1 = Intraday, 2 = Scalp

def agg = GetAggregationPeriod();

def mode =
    if agg <= AggregationPeriod.FIVE_MIN then 2 else
    if agg <= AggregationPeriod.THIRTY_MIN then 1 else
    0;

# Mode-based length scaling
def baseLen = if mode == 2 then 10 else if mode == 1 then 20 else 34;
def accelLen = if mode == 2 then 3 else if mode == 1 then 5 else 8;
def lrLen = if mode == 2 then 10 else if mode == 1 then 20 else 30;
def pulseFast = if mode == 2 then 5 else if mode == 1 then 8 else 13;
def pulseSlow = if mode == 2 then 13 else if mode == 1 then 21 else 34;

# Threshold tuning based on mode
def extremeTop = if mode == 2 then 85 else if mode == 1 then 80 else 75;
def extremeBottom = if mode == 2 then 15 else if mode == 1 then 20 else 25;

#-----------------------------------------------------------
# PRICE + VOLUME PRESSURE (VSMI CORE)
#-----------------------------------------------------------
def H = high;
def L = low;
def C = close;
def V = volume;

def r = if H - L == 0 then 0.0001 else H - L;
def buyP = V * (C - L) / r;
def sellP = V * (H - C) / r;

def VSMI = ExpAverage(buyP - sellP, baseLen);

#-----------------------------------------------------------
# VELOCITY / VW-VELOCITY / ACCELERATION
#-----------------------------------------------------------
def Vel = VSMI - VSMI[1];

def VWVel = Vel * (V / Average(V, baseLen));

def Accel = Vel - Vel[1];
def AccelSm = ExpAverage(Accel, accelLen);

#-----------------------------------------------------------
# LR-SLOPE + INSTITUTIONAL PULSE
#-----------------------------------------------------------
def Slope = Inertia(VSMI, lrLen);

def fast = ExpAverage(C, pulseFast);
def slow = ExpAverage(C, pulseSlow);
def Pulse = fast - slow;

#-----------------------------------------------------------
# COMPOSITE SCORE (0–100)
#-----------------------------------------------------------
def nVel  = (Vel - Lowest(Vel, baseLen)) /
            (Highest(Vel, baseLen) - Lowest(Vel, baseLen) + 0.0001);

def nVW   = (VWVel - Lowest(VWVel, baseLen)) /
            (Highest(VWVel, baseLen) - Lowest(VWVel, baseLen) + 0.0001);

def nAcc  = (AccelSm - Lowest(AccelSm, baseLen)) /
            (Highest(AccelSm, baseLen) - Lowest(AccelSm, baseLen) + 0.0001);

def nSlope = (Slope - Lowest(Slope, baseLen)) /
             (Highest(Slope, baseLen) - Lowest(Slope, baseLen) + 0.0001);

def nPulse = (Pulse - Lowest(Pulse, baseLen)) /
             (Highest(Pulse, baseLen) - Lowest(Pulse, baseLen) + 0.0001);

def CompRaw = (nVel + nVW + nAcc + nSlope + nPulse) / 5;
def CompScore = CompRaw * 100;

#-----------------------------------------------------------
# EXTREME BUBBLE SIGNALS
#-----------------------------------------------------------

# --- Bull Exhaust / Surge
def BullExtreme =
    CompScore > extremeTop and
    AccelSm > 0 and
    nVW > 0.6;

# --- Bear Dump / Unwind
def BearExtreme =
    CompScore < extremeBottom and
    AccelSm < 0 and
    nVW < 0.4;

# --- Acceleration Spike
def AccelSpikeUp = AccelSm > Highest(AccelSm[1], baseLen) and AccelSm > 0;
def AccelSpikeDn = AccelSm < Lowest(AccelSm[1], baseLen) and AccelSm < 0;

#-----------------------------------------------------------
# BUBBLE PLOTTING
#-----------------------------------------------------------
AddChartBubble(
    BullExtreme,
    CompScore,
    "▲ BULL EX",
    Color.GREEN,
    yes
);

AddChartBubble(
    BearExtreme,
    CompScore,
    "▼ BEAR EX",
    Color.RED,
    no
);

AddChartBubble(
    AccelSpikeUp,
    CompScore,
    "bull-top",
    Color.CYAN,
    yes
);

#AddChartBubble(
   # AccelSpikeDn,
   # CompScore,
   # "A-",
   # Color.MAGENTA,
   # no);

#-----------------------------------------------------------
# MAIN PLOTS
#-----------------------------------------------------------
plot pVelocity = Vel;
pVelocity.SetDefaultColor(Color.CYAN);

plot pVW = VWVel;
pVW.SetDefaultColor(Color.YELLOW);

plot pAccel = AccelSm;
pAccel.SetDefaultColor(Color.MAGENTA);

plot pSlope = Slope;
pSlope.SetDefaultColor(Color.ORANGE);

plot pPulse = Pulse;
pPulse.SetDefaultColor(Color.LIGHT_GREEN);

plot pComp = CompScore;
pComp.SetDefaultColor(Color.WHITE);
pComp.SetLineWeight(3);
 
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
412 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top