LancerB-1B SonicDominance For ThinkOrSwim

Adeodatus

Active member
Plus
LancerB-1B SonicDominance ver. 7

First, appreciate the back-up, this board has been my go to source for advice, and the tons of feedback.

After many experimens=ts the code imaged needs to run in real time, however asis, it well may be leaning towards a good one.


2025-12-21-TOS_CHARTSA.png
 
Last edited by a moderator:

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

What is SET Long or SET short?
1B Sonic used the combinations of Entropy BIAS, Price Recursion and Price Heartbeat to plot the SET LONG (SL) and SET SHORT (SS). Entropy Bias is used as calculations to standard deviations of PPS to plot both SL and SS signals as SET-UP signals for trades, not a signal to open a brand new position.

OPEN LONG (OL) and OPEN SHORT (OS) bubbles are Machine Logic using a Heartbeat Bias (long and short) to generate its signals.

Both combinations are trade signals, however adding to a trade is the SET (long or short) signal. Seems not to work when a SL or SS are use as signs to open initial trade position.

I'm still testing and recoding this script for speed and accuracy.

Note: Image is 1 min chart.
2025-12-31-TOS_CHARTSA.png
 
The code:

"Entropy BIAS, Price Recursion, the Price Heartbeat & Machine Logic use of Heartbeat Bias"

These are the code, so the effects of entropy & recursion is studied, and also the important significance to add heartbeat will keep the machine alive, and once it sees an Entropy affect on heartbeat indication, we need to know if the patient (ticker) would live or not, thus bleed down any heartbeat bias.

[LancerB-1B SonicDominance, another Stratosphere Surveillance Platform, Hot-Spot Targeting and Missile Pad Alerts.
 
Does LancerB-1B SonicDominance repaint?

Would love to test out your code. Could you post it?
 
These scripts hit boundaries. This one went past several, and was sent to Level 14 Blue Zone analysis. Thus far, have not been advised one way or the other. Without it, the world will not stop turning. The draw in time has my attention at Trend Speed Analyzer thread at pre-sent-time for now.

Speed Analysis
 
The code:

"Entropy BIAS, Price Recursion, the Price Heartbeat & Machine Logic use of Heartbeat Bias"

These are the code, so the effects of entropy & recursion is studied, and also the important significance to add heartbeat will keep the machine alive, and once it sees an Entropy affect on heartbeat indication, we need to know if the patient (ticker) would live or not, thus bleed down any heartbeat bias.

[LancerB-1B SonicDominance, another Stratosphere Surveillance Platform, Hot-Spot Targeting and Missile Pad Alerts.
is there a code that combines all of those together and is it scannable for the alerts ... (most of the time the code here are nto scannable ready for alert settings) ..
 
is there a code that combines all of those together and is it scannable for the alerts ... (most of the time the code here are nto scannable ready for alert settings) ..
An interesting idea, watch for a bit, it may be moved to forget to reply right away. Coding takes repppeatdd tempts. Fighting is just a small part of the battle, winnings hard to take.
 
The code:

"Entropy BIAS, Price Recursion, the Price Heartbeat & Machine Logic use of Heartbeat Bias"

These are the code, so the effects of entropy & recursion is studied, and also the important significance to add heartbeat will keep the machine alive, and once it sees an Entropy affect on heartbeat indication, we need to know if the patient (ticker) would live or not, thus bleed down any heartbeat bias.

[LancerB-1B SonicDominance, another Stratosphere Surveillance Platform, Hot-Spot Targeting and Missile Pad Alerts.
Sorry but I tried copy pasting this in TOS Script. it doesn't work. Is this TOS Script or strategy. Please let us know the steps to get this work. Ideally its a script and or tos link script given. Please provide it.
 
Sorry but I tried copy pasting this in TOS Script. it doesn't work. Is this TOS Script or strategy. Please let us know the steps to get this work. Ideally its a script and or tos link script given. Please provide it.
Good one. That script which you seek is nnoo lonnnger to be found----renamed and fought over, sad it left as did the diamonds in the Louvre Apollo Gallery by thieves disguised as workers. Any effort to replace then is useless. Another script, more oriented toward trading, is now on as the A_cept5Min_Press_7d code. Script at this location: The Empress's Saphire. Good Luck Adasager7
 
What the author really built (decoded)
“Entropy Bias = standard deviations of PPS”
That is almost certainly a rolling dispersion / volatility‐normalized price series
****think z-score of a smoothed price stream

So:
Entropy Bias ≈ how stretched price is relative to its recent distribution
This is not information theory entropy.
It is statistical dispersion dressed up with a marketing name.

“Price Recursion”
That usually means a recursive filter. In ThinkScript terms:

x = f(price) + decay * x[1]

Same family as:
  • VIP Weighted Alpha recursion
  • Ehlers filters
  • adaptive smoothing
So this is just: memory + decay

“Price Heartbeat”

This is the most obvious one. That is almost always a short-term directional pulse
In practice this is usually:
  • very short ROC
  • short EMA slope
  • or candle impulse
So, Heartbeat ≈ fast directional bias

Now the key part of the author’s comment, "SET LONG / SET SHORT are set-ups, not new entries"

and "OPEN LONG / OPEN SHORT are “machine logic” using Heartbeat bias"

This is extremely important. They are explicitly saying:

SET signals = location / stretch / preparation

OPEN signals = timing / trigger

That is actually a 2-layer system:

setup → trigger

Why it feels broken when you try to use SET as entries. They told you directly "Seems not to work when SL or SS are used as signs to open initial trade position."

Because those are not directional confirmation.
They are “price is statistically stretched and preparing”

That is the same class of signal as:
  • our Gann σ zones
  • our pullbackLong / pullbackShort
  • our TMO deep pullback states
Now the important comparison to what I and others are building

My current architecture is: Environment → Readiness → Execution
Let’s map their language into ours:

Their “Entropy Bias + Price Recursion” maps to: our stretch / readiness layer

Their “Price Heartbeat OPEN signals” maps to: our execution trigger layer

So conceptually this is not crazy. But…

Here is the big difference (and why I would not adopt it). Their entire stack is built only on price transforms

There is:
  • no structure
  • no auction context
  • no environment gating
  • no HTF bias

So their pipeline is,


price stretch → price pulse → trade


Our pipeline is:


environment → structure → readiness → execution


That is much safer.

Now the most important practical point for you

Look again at what they said: "OPEN LONG and OPEN SHORT bubbles are Machine Logic"

That is exactly what you already saw:
  • lots of repeated OPEN SHORT
  • lots of re-affirmation bubbles

This is typical of fast pulse engines. They fire whenever the pulse condition is true again. That is why your chart is covered with them.

Does this add anything you don’t already have? No.
You already have:
stretch / readiness
  • Gann σ zones
  • WA ROC + slope
  • TMO exhaustion
pulse / execution
  • TMO cross / slope / turn
  • micro structure / reclaim logic

And ours are:
  • controllable
  • interpretable
  • and layered behind environment filters
The one part that is philosophically aligned with you is this sentence, SET LONG and SET SHORT are set-up signals for trades, not a signal to open a brand new position.

This is exactly how you treat:
  • pullback zones
  • execution permissions
  • readiness flags

So the idea is fine. The implementation is just:
  • rebranded
  • compressed into a single black box
  • and not environment-aware.
Blunt answer to your real question "Is this a fundamentally different or better engine than what you now use?" No. It is simply a z-score stretch + recursive smoothing + fast slope trigger

We have already built a cleaner version of this:
  • without marketing names
  • without hidden machine logic
  • and integrated into your proper gating stack.
Final take (straight up)

The author’s comments confirm, "This is a 2-stage setup/trigger engine." But....

You already implemented the same idea in a safer and more professional way:
  • SET ≈ your pullback / stretch zones
  • OPEN ≈ your TMO / structure trigger
with environment script and HTF structure added on top. So there is no real edge here for you — only branding.
 
Last edited by a moderator:
Here is an example of what you can find here if you were a VIP, the VIP version includes more as in triggers and entries but this one will cover pretty much what was described.
Code:
# =========================================================
# antwerks and a forgotten the name other author– Clean Stretch / Recursion / Pulse Engine
# replaces:
#   "entropy bias"  -> z-score stretch
#   "price recursion" -> recursive smoothing
#   "heartbeat" -> fast slope pulse
#
# SET  = readiness
# OPEN = trigger
# =========================================================

declare lower;

# -------------------------
# Inputs
# -------------------------
input baseLength   = 30;   # lookback for z-score
input smoothLen    = 10;   # recursive smoother
input decay        = 0.85; # recursion memory
input pulseLen     = 3;    # fast slope window
input zStretch     = 1.25; # stretch threshold

# -------------------------
# Price source
# -------------------------
def src = (high + low + close) / 3;

# =========================================================
# 1. Recursive smoothed price (price recursion)
# =========================================================

rec recPrice =
    if IsNaN(recPrice[1]) then src
    else decay * recPrice[1] + (1 - decay) * src;

def smoothPrice = ExpAverage(recPrice, smoothLen);

# =========================================================
# 2. Z-score stretch (entropy bias replacement)
# =========================================================

def meanP = Average(smoothPrice, baseLength);
def devP  = StDev(smoothPrice, baseLength);

def z =
    if devP != 0
    then (smoothPrice - meanP) / devP
    else 0;

# stretch / readiness
def stretchLong  = z <= -zStretch;
def stretchShort = z >=  zStretch;

# =========================================================
# 3. Fast pulse (heartbeat replacement)
# =========================================================

def fastSlope = smoothPrice - smoothPrice[pulseLen];

def pulseUp   = fastSlope > 0 and fastSlope[1] <= 0;
def pulseDown = fastSlope < 0 and fastSlope[1] >= 0;

# =========================================================
# SET = readiness
# =========================================================

plot SET_Long  = stretchLong;
plot SET_Short = stretchShort;

SET_Long.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
SET_Long.SetDefaultColor(Color.CYAN);
SET_Long.SetLineWeight(2);

SET_Short.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
SET_Short.SetDefaultColor(Color.MAGENTA);
SET_Short.SetLineWeight(2);

# =========================================================
# OPEN = trigger
# (must occur AFTER stretch)
# =========================================================

plot OPEN_Long  = stretchLong[1] and pulseUp;
plot OPEN_Short = stretchShort[1] and pulseDown;

OPEN_Long.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
OPEN_Long.SetDefaultColor(Color.GREEN);
OPEN_Long.SetLineWeight(3);

OPEN_Short.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
OPEN_Short.SetDefaultColor(Color.RED);
OPEN_Short.SetLineWeight(3);

# =========================================================
# Diagnostic plots
# =========================================================

plot Zscore = z;
Zscore.AssignValueColor(
    if z > 0 then Color.RED else Color.GREEN
);
Zscore.SetLineWeight(1);

plot Zero = 0;
Zero.SetDefaultColor(Color.DARK_GRAY);

# =========================================================
# Minimal labels
# =========================================================

AddLabel(yes,
    if stretchLong then "SET: LONG (stretch)"
    else if stretchShort then "SET: SHORT (stretch)"
    else "SET: none",
    if stretchLong then Color.CYAN
    else if stretchShort then Color.MAGENTA
    else Color.DARK_GRAY
);

AddLabel(yes,
    if pulseUp then "PULSE: UP"
    else if pulseDown then "PULSE: DOWN"
    else "PULSE: none",
    if pulseUp then Color.GREEN
    else if pulseDown then Color.RED
    else Color.DARK_GRAY
);

If you want the arrows (I usually just do not show them- hide) on ht eupper chart then you must run this companion piece too
Code:
declare upper;

input baseLength   = 30;
input smoothLen    = 10;
input decay        = 0.85;
input pulseLen     = 3;
input zStretch     = 1.25;

def src = (high + low + close) / 3;

rec recPrice =
    if IsNaN(recPrice[1]) then src
    else decay * recPrice[1] + (1 - decay) * src;

def smoothPrice = ExpAverage(recPrice, smoothLen);

def meanP = Average(smoothPrice, baseLength);
def devP  = StDev(smoothPrice, baseLength);

def z =
    if devP != 0
    then (smoothPrice - meanP) / devP
    else 0;

def stretchLong  = z <= -zStretch;
def stretchShort = z >=  zStretch;

def fastSlope = smoothPrice - smoothPrice[pulseLen];

def pulseUp   = fastSlope > 0 and fastSlope[1] <= 0;
def pulseDown = fastSlope < 0 and fastSlope[1] >= 0;

def openLong  = stretchLong[1]  and pulseUp;
def openShort = stretchShort[1] and pulseDown;

plot OPEN_L = if openLong then low else Double.NaN;
OPEN_L.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
OPEN_L.SetDefaultColor(Color.CYAN);
OPEN_L.SetLineWeight(3);

plot OPEN_S = if openShort then high else Double.NaN;
OPEN_S.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
OPEN_S.SetDefaultColor(Color.MAGENTA);
OPEN_S.SetLineWeight(3);
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
1507 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