Webby % Off 52 Week For ThinkOrSwim

This script is a phase-of-pullback model inside a trend.
So when you say “phase cycling” here, what I really mean is it is where price is in the pullback - recovery - extension sequence relative to prior highs.
Now let’s read this TSLA chart strictly from the Off-High engine/script.

cTUxiNu.png

1. What we are looking at in the Lower pane/plot:
  • Cyan represents Off 52-week high (Off52)
  • Magenta represents Off 50-day high (Off50)
  • Zones: (%)
    • Green: 0 to −8
    • Yellow: −8 to −15
    • Red: −15 to −25
On the right scale your current value is about −16.3% (you can literally see -16.34 on the right axis)
That is coming from the 52-week high anchor.

2. Where it is right now (phase)- Current phase = deep pullback / late discount zone
By your zones:
  • It is below −15
  • Inside the red zone
So structurally TSLA is in a deep retracement relative to its 52-week high. This is not a trend-extension phase. This is a pullback / repair phase.

3. Why it is there?
Look at the price structure above:
  • Strong multi-month trend
  • Blow-off / final push near the top
  • Then:
    • rejection from the upper structure
    • loss of the steep trendline
    • compression under the broken range
    • options walls above (you have call walls marked)
So mechanically price is there because:
✔ price failed continuation near highs
✔ supply entered above ~460–480
✔ market is digesting that move
Your Off-High model simply reflects price is still far from the last dominant acceptance area near highs.
This is exactly what it should show.

4. The important nuance on your chart, let's look closely: The cyan (52-week) line is still sloping down
But…The magenta (50-day high) line already turned up earlier and then rolled
That tells you something very useful, Shorter-term structure tried to repair before long-term structure did.
This is classic counter-trend repair then failure then deeper discount, which matches the actual candles.

5. Where we are in the “phase cycle”?
Using only this model:

Phase map for this tool:
ZoneMeaning
Greenextension / near highs
Yellownormal pullback
Reddeep pullback / repair phase
So right now TSLA is in late red zone, that is repair phase, not momentum phase.

6. The key observation on this chart is the most important thing in the lower pane:
Your Off52 (cyan) has:
  • made a lower low
  • and is now starting to flatten
Not rising yet. Flattening. That is selling pressure is no longer increasing relative to the high.
This is an early condition only.
Not a trigger!!!

7. When is a potential move to be expected (with this model)?
This model does not forecast by time. It forecasts by location repair.
The next tradable phase for continuation-style trades comes when: Off52 reclaims the −15 line
In your script:
plot Z2 = -15

plot Z2 = -15

So the first structural improvement signal from this model is the Cyan line moves back up into the yellow zone (above -15)
That is the “repair completed” phase. Right now:
  • you are still below it
So this is still base-building / damage-repair territory

8. The clean rule for your stack
For your system, the best way to use this is:

Phase gating:​

  • Red zone:
    • only structure-based reversals
    • no continuation bias
  • Yellow zone:
    • structure reclaim + WA + trigger allowed
  • Green zone:
    • continuation and trend entries
Right now TSLA is only eligible for reversal / base trades, not trend continuation.

9. Tying it back to the chart shows it already has:
  • broken trendline
  • supply zone above
  • options resistance above
  • compression under 450
Your Off-High model confirms the same thing that price has not repaired enough of the prior high displacement. This is perfect alignment.

10. Short, direct answer to the question, What Where Why When?
Where is it? Deep pullback phase (red zone), about −16% off the 52-week high.

Why is it there?
Because TSLA failed continuation near the highs and is still structurally far from the last accepted value near the top of the range.

When would a potential move be expected using this model?
Not by date. By phase. And the phase is when the cyan line (Off52) re-enters the yellow zone (above −15) and you simultaneously see:
  • structure reclaim on price
  • your WA / bias stack flip back to tradable
That is the point where this model says the repair phase is ending. Until then, this tool is telling you environment = recovery / digestion, not trend.

Code:
# -------------------------------------------
# Off-High Distance (Percent / ATR)
# antwerks – clean structural distance model
# -------------------------------------------

declare lower;

input mode = { default Percent, ATR };
input atrLength = 21;
input src = close;

# Lookbacks
input lookback52w = 251;
input lookback50d = 49;
input lookback18m = 375;

input cutoffEnabled = yes;

# Cutoffs (to keep scaling clean)
input pctCutoff = 25;   # %
input atrCutoff = 10;   # ATRs

# -------------------------------------------------
# High anchors
# -------------------------------------------------

def high52  = Highest(high, lookback52w);
def high50  = Highest(high, lookback50d);
def high18m = Highest(high, lookback18m);

def atr = Average(TrueRange(high, close, low), atrLength);

# -------------------------------------------------
# Percent distances
# -------------------------------------------------

def pct52  = if high52  != 0 then (src - high52 ) / high52  * 100 else 0;
def pct50  = if high50  != 0 then (src - high50 ) / high50  * 100 else 0;
def pct18m = if high18m != 0 then (src - high18m) / high18m * 100 else 0;

# -------------------------------------------------
# ATR distances
# -------------------------------------------------

def atr52  = if atr != 0 then (src - high52 ) / atr else 0;
def atr50  = if atr != 0 then (src - high50 ) / atr else 0;
def atr18m = if atr != 0 then (src - high18m) / atr else 0;

# -------------------------------------------------
# Cutoff logic (same idea as the TV script)
# -------------------------------------------------

def pct52_c  =
    if !cutoffEnabled then pct52
    else if pct52 < -pctCutoff then -pctCutoff
    else if pct52 > 0 then 0
    else pct52;

def pct50_c  =
    if !cutoffEnabled then pct50
    else if pct50 < -pctCutoff then -pctCutoff
    else if pct50 > 0 then 0
    else pct50;

def pct18m_c =
    if !cutoffEnabled then pct18m
    else if pct18m < -pctCutoff then -pctCutoff
    else if pct18m > 0 then 0
    else pct18m;

def atr52_c  =
    if !cutoffEnabled then atr52
    else if atr52 < -atrCutoff then -atrCutoff
    else if atr52 > 0 then 0
    else atr52;

def atr50_c  =
    if !cutoffEnabled then atr50
    else if atr50 < -atrCutoff then -atrCutoff
    else if atr50 > 0 then 0
    else atr50;

def atr18m_c =
    if !cutoffEnabled then atr18m
    else if atr18m < -atrCutoff then -atrCutoff
    else if atr18m > 0 then 0
    else atr18m;

# -------------------------------------------------
# Plots
# -------------------------------------------------

plot Off52 =
    if mode == mode.Percent then pct52_c else atr52_c;

plot Off50 =
    if mode == mode.Percent then pct50_c else atr50_c;

plot Off18M =
    if mode == mode.Percent then pct18m_c else atr18m_c;

Off52.SetDefaultColor(Color.CYAN);
Off50.SetDefaultColor(Color.MAGENTA);
Off18M.SetDefaultColor(Color.DARK_GRAY);

Off52.SetLineWeight(2);
Off50.SetLineWeight(1);
Off18M.SetLineWeight(1);

# -------------------------------------------------
# Zone references (same structure as the Pine script)
# -------------------------------------------------

plot Z0 = 0;

plot Z1 =
    if mode == mode.Percent then -8 else -4;

plot Z2 =
    if mode == mode.Percent then -15 else -8;

plot Z3 =
    if mode == mode.Percent then -25 else -10;

Z0.SetDefaultColor(Color.GRAY);
Z1.SetDefaultColor(Color.LIGHT_GRAY);
Z2.SetDefaultColor(Color.LIGHT_GRAY);
Z3.SetDefaultColor(Color.LIGHT_GRAY);

Z0.SetStyle(Curve.SHORT_DASH);
Z1.SetStyle(Curve.SHORT_DASH);
Z2.SetStyle(Curve.SHORT_DASH);
Z3.SetStyle(Curve.SHORT_DASH);

Z0.HideBubble(); Z1.HideBubble(); Z2.HideBubble(); Z3.HideBubble();
Z0.HideTitle();  Z1.HideTitle();  Z2.HideTitle();  Z3.HideTitle();

# -------------------------------------------------
# Light background zones
# -------------------------------------------------

AddCloud(Z0, Z1, Color.DARK_GREEN, Color.DARK_GREEN);
AddCloud(Z1, Z2, Color.YELLOW, Color.YELLOW);
AddCloud(Z2, Z3, Color.RED, Color.RED);
 

RDMercer

Member
Plus
I put alot of scripts up here on this board but have been somewhat lax in describing the applications to them, I do define the intent (most of the time) but mostly I do not go back and apply it to a real chart and then explain how I would use it. I will try to attempt to do that here for the script I just put above.

FIRST-This script is a phase-of-pullback model inside a trend.
So when you say “phase cycling” here, what I really mean is it is where price is in the pullback - recovery - extension sequence relative to prior highs.
Now let’s read this TSLA chart strictly from the Off-High engine/script.

1. What we are looking at in the Lower pane/plot:
  • Cyan represents Off 52-week high (Off52)
  • Magenta represents Off 50-day high (Off50)
  • Zones: (%)
    • Green: 0 to −8
    • Yellow: −8 to −15
    • Red: −15 to −25
On the right scale your current value is about −16.3% (you can literally see -16.34 on the right axis)
That is coming from the 52-week high anchor.

2. Where it is right now (phase)- Current phase = deep pullback / late discount zone
By your zones:
  • It is below −15
  • Inside the red zone
So structurally TSLA is in a deep retracement relative to its 52-week high. This is not a trend-extension phase. This is a pullback / repair phase.

3. Why it is there?
Look at the price structure above:
  • Strong multi-month trend
  • Blow-off / final push near the top
  • Then:
    • rejection from the upper structure
    • loss of the steep trendline
    • compression under the broken range
    • options walls above (you have call walls marked)
So mechanically price is there because:
✔ price failed continuation near highs
✔ supply entered above ~460–480
✔ market is digesting that move
Your Off-High model simply reflects price is still far from the last dominant acceptance area near highs.
This is exactly what it should show.

4. The important nuance on your chart, let's look closely: The cyan (52-week) line is still sloping down
But…The magenta (50-day high) line already turned up earlier and then rolled
That tells you something very useful, Shorter-term structure tried to repair before long-term structure did.
This is classic counter-trend repair then failure then deeper discount, which matches the actual candles.

5. Where we are in the “phase cycle”?
Using only this model:

Phase map for this tool:
ZoneMeaning
Greenextension / near highs
Yellownormal pullback
Reddeep pullback / repair phase
So right now TSLA is in late red zone, that is repair phase, not momentum phase.

6. The key observation on this chart is the most important thing in the lower pane:
Your Off52 (cyan) has:
  • made a lower low
  • and is now starting to flatten
Not rising yet. Flattening. That is selling pressure is no longer increasing relative to the high.
This is an early condition only.
Not a trigger!!!

7. When is a potential move to be expected (with this model)?
This model does not forecast by time. It forecasts by location repair.
The next tradable phase for continuation-style trades comes when: Off52 reclaims the −15 line
In your script:
plot Z2 = -15

plot Z2 = -15

So the first structural improvement signal from this model is the Cyan line moves back up into the yellow zone (above -15)
That is the “repair completed” phase. Right now:
  • you are still below it
So this is still base-building / damage-repair territory

8. The clean rule for your stack
For your system, the best way to use this is:

Phase gating:​

  • Red zone:
    • only structure-based reversals
    • no continuation bias
  • Yellow zone:
    • structure reclaim + WA + trigger allowed
  • Green zone:
    • continuation and trend entries
Right now TSLA is only eligible for reversal / base trades, not trend continuation.

9. Tying it back to the chart shows it already has:
  • broken trendline
  • supply zone above
  • options resistance above
  • compression under 450
Your Off-High model confirms the same thing that price has not repaired enough of the prior high displacement. This is perfect alignment.

10. Short, direct answer to the question, What Where Why When?
Where is it? Deep pullback phase (red zone), about −16% off the 52-week high.

Why is it there?
Because TSLA failed continuation near the highs and is still structurally far from the last accepted value near the top of the range.

When would a potential move be expected using this model?
Not by date. By phase. And the phase is when the cyan line (Off52) re-enters the yellow zone (above −15) and you simultaneously see:
  • structure reclaim on price
  • your WA / bias stack flip back to tradable
That is the point where this model says the repair phase is ending. Until then, this tool is telling you environment = recovery / digestion, not trend.

I put alot of scripts up here on this board but have been somewhat lax in describing the applications to them, I do define the intent (most of the time) but mostly I do not go back and apply it to a real chart and then explain how I would use it. I will try to attempt to do that here for the script I just put above.

FIRST-This script is a phase-of-pullback model inside a trend.
So when you say “phase cycling” here, what I really mean is it is where price is in the pullback - recovery - extension sequence relative to prior highs.
Now let’s read this TSLA chart strictly from the Off-High engine/script.

1. What we are looking at in the Lower pane/plot:
  • Cyan represents Off 52-week high (Off52)
  • Magenta represents Off 50-day high (Off50)
  • Zones: (%)
    • Green: 0 to −8
    • Yellow: −8 to −15
    • Red: −15 to −25
On the right scale your current value is about −16.3% (you can literally see -16.34 on the right axis)
That is coming from the 52-week high anchor.

2. Where it is right now (phase)- Current phase = deep pullback / late discount zone
By your zones:
  • It is below −15
  • Inside the red zone
So structurally TSLA is in a deep retracement relative to its 52-week high. This is not a trend-extension phase. This is a pullback / repair phase.

3. Why it is there?
Look at the price structure above:
  • Strong multi-month trend
  • Blow-off / final push near the top
  • Then:
    • rejection from the upper structure
    • loss of the steep trendline
    • compression under the broken range
    • options walls above (you have call walls marked)
So mechanically price is there because:
✔ price failed continuation near highs
✔ supply entered above ~460–480
✔ market is digesting that move
Your Off-High model simply reflects price is still far from the last dominant acceptance area near highs.
This is exactly what it should show.

4. The important nuance on your chart, let's look closely: The cyan (52-week) line is still sloping down
But…The magenta (50-day high) line already turned up earlier and then rolled
That tells you something very useful, Shorter-term structure tried to repair before long-term structure did.
This is classic counter-trend repair then failure then deeper discount, which matches the actual candles.

5. Where we are in the “phase cycle”?
Using only this model:

Phase map for this tool:
ZoneMeaning
Greenextension / near highs
Yellownormal pullback
Reddeep pullback / repair phase
So right now TSLA is in late red zone, that is repair phase, not momentum phase.

6. The key observation on this chart is the most important thing in the lower pane:
Your Off52 (cyan) has:
  • made a lower low
  • and is now starting to flatten
Not rising yet. Flattening. That is selling pressure is no longer increasing relative to the high.
This is an early condition only.
Not a trigger!!!

7. When is a potential move to be expected (with this model)?
This model does not forecast by time. It forecasts by location repair.
The next tradable phase for continuation-style trades comes when: Off52 reclaims the −15 line
In your script:
plot Z2 = -15

plot Z2 = -15

So the first structural improvement signal from this model is the Cyan line moves back up into the yellow zone (above -15)
That is the “repair completed” phase. Right now:
  • you are still below it
So this is still base-building / damage-repair territory

8. The clean rule for your stack
For your system, the best way to use this is:

Phase gating:​

  • Red zone:
    • only structure-based reversals
    • no continuation bias
  • Yellow zone:
    • structure reclaim + WA + trigger allowed
  • Green zone:
    • continuation and trend entries
Right now TSLA is only eligible for reversal / base trades, not trend continuation.

9. Tying it back to the chart shows it already has:
  • broken trendline
  • supply zone above
  • options resistance above
  • compression under 450
Your Off-High model confirms the same thing that price has not repaired enough of the prior high displacement. This is perfect alignment.

10. Short, direct answer to the question, What Where Why When?
Where is it? Deep pullback phase (red zone), about −16% off the 52-week high.

Why is it there?
Because TSLA failed continuation near the highs and is still structurally far from the last accepted value near the top of the range.

When would a potential move be expected using this model?
Not by date. By phase. And the phase is when the cyan line (Off52) re-enters the yellow zone (above −15) and you simultaneously see:
  • structure reclaim on price
  • your WA / bias stack flip back to tradable
That is the point where this model says the repair phase is ending. Until then, this tool is telling you environment = recovery / digestion, not trend.

Thanks again for responding. I'm having issues displaying your indicator in lower chart area TOS. Attached is a screenshot following a lot of manual chart scaling gymnastics. I must scroll down miles to reach the area where the three colored areas are compressed to lines; resize everything; scroll around to obtain the attached screenshot. Only visible if I expand the Y axis and reposition / expand the upper chart area. It looks like this is some kind of scaling issue but what do I know? I Further, while the indicator appears to be working it also seems use percentage or point values v expressed in ATR's? lastly, if I scroll through a watchlist, it defaults back to the unusable scaling at each symbol. Any ideas or fix suggestions much appreciated?
 
Last edited:
wow reloaded it again and I do not have that issue- it might be a setting that you have but I am not sure what that plot is, can you identify the "high" plot for me? it looks to be the price action - and that is not in the code. delete it and recopy and reload if you haven't done that already and check your settings to make sure
these should be the only plots in the code
Code:
# -------------------------------------------------
# Plots
# -------------------------------------------------

plot Off52 =
    if mode == mode.Percent then pct52_c else atr52_c;

plot Off50 =
    if mode == mode.Percent then pct50_c else atr50_c;

plot Off18M =
    if mode == mode.Percent then pct18m_c else atr18m_c;

Off52.SetDefaultColor(Color.CYAN);
Off50.SetDefaultColor(Color.MAGENTA);
Off18M.SetDefaultColor(Color.DARK_GRAY);

Off52.SetLineWeight(2);
Off50.SetLineWeight(1);
Off18M.SetLineWeight(1);

# -------------------------------------------------
# Zone references (same structure as the Pine script)
# -------------------------------------------------

plot Z0 = 0;

plot Z1 =
    if mode == mode.Percent then -8 else -4;

plot Z2 =
    if mode == mode.Percent then -15 else -8;

plot Z3 =
    if mode == mode.Percent then -25 else -10;
 
wow reloaded it again and I do not have that issue- it might be a setting that you have but I am not sure what that plot is, can you identify the "high" plot for me? it looks to be the price action - and that is not in the code. delete it and recopy and reload if you haven't done that already and check your settings to make sure
these should be the only plots in the code
Code:
# -------------------------------------------------
# Plots
# -------------------------------------------------

plot Off52 =
    if mode == mode.Percent then pct52_c else atr52_c;

plot Off50 =
    if mode == mode.Percent then pct50_c else atr50_c;

plot Off18M =
    if mode == mode.Percent then pct18m_c else atr18m_c;

Off52.SetDefaultColor(Color.CYAN);
Off50.SetDefaultColor(Color.MAGENTA);
Off18M.SetDefaultColor(Color.DARK_GRAY);

Off52.SetLineWeight(2);
Off50.SetLineWeight(1);
Off18M.SetLineWeight(1);

# -------------------------------------------------
# Zone references (same structure as the Pine script)
# -------------------------------------------------

plot Z0 = 0;

plot Z1 =
    if mode == mode.Percent then -8 else -4;

plot Z2 =
    if mode == mode.Percent then -15 else -8;

plot Z3 =
    if mode == mode.Percent then -25 else -10;
Yeah, I'm completely F'n stumped!!! Verified / reloaded the code and the chart results are identical as above screenshot. I have resolved that the dollar value of a charted symbol plays a direct role re chart scaling as the script does not like hi-priced symbols. Meanwhile, have been through every TOS setting / startup / scaling configuration and can locate nothing as a fix. Gonna have to give TOS help a call to see if they can offer anything. I'm a long-time TOS user and NEVER encountered this behavior. Will report back.... many thanks!
 
Yeah, I'm completely F'n stumped!!! Verified / reloaded the code and the chart results are identical as above screenshot. I have resolved that the dollar value of a charted symbol plays a direct role re chart scaling as the script does not like hi-priced symbols. Meanwhile, have been through every TOS setting / startup / scaling configuration and can locate nothing as a fix. Gonna have to give TOS help a call to see if they can offer anything. I'm a long-time TOS user and NEVER encountered this behavior. Will report back.... many thanks!

Try not loading it on demand
 
well I tried that but i still did not have the issue .... it has to be a setting let's try this
load it through the setup https://tos.mx/!zsn5IYqI
BINGO !! This worked like a charm.
@RDMercer do not run this chart on demand

This shared chart link will override whatever defaults in your setup that is causing your issues:
http://tos.mx/!d8wVz8E9 MUST follow these instructions for loading shared links.

XpqaXZC.png
U 'Da Man!! Thank you so much for this suggestion; the script is working as it should.
 
I put alot of scripts up here on this board but have been somewhat lax in describing the applications to them, I do define the intent (most of the time) but mostly I do not go back and apply it to a real chart and then explain how I would use it. I will try to attempt to do that here for the script I just put above.

FIRST-This script is a phase-of-pullback model inside a trend.
So when you say “phase cycling” here, what I really mean is it is where price is in the pullback - recovery - extension sequence relative to prior highs.
Now let’s read this TSLA chart strictly from the Off-High engine/script.

1. What we are looking at in the Lower pane/plot:
  • Cyan represents Off 52-week high (Off52)
  • Magenta represents Off 50-day high (Off50)
  • Zones: (%)
    • Green: 0 to −8
    • Yellow: −8 to −15
    • Red: −15 to −25
On the right scale your current value is about −16.3% (you can literally see -16.34 on the right axis)
That is coming from the 52-week high anchor.

2. Where it is right now (phase)- Current phase = deep pullback / late discount zone
By your zones:
  • It is below −15
  • Inside the red zone
So structurally TSLA is in a deep retracement relative to its 52-week high. This is not a trend-extension phase. This is a pullback / repair phase.

3. Why it is there?
Look at the price structure above:
  • Strong multi-month trend
  • Blow-off / final push near the top
  • Then:
    • rejection from the upper structure
    • loss of the steep trendline
    • compression under the broken range
    • options walls above (you have call walls marked)
So mechanically price is there because:
✔ price failed continuation near highs
✔ supply entered above ~460–480
✔ market is digesting that move
Your Off-High model simply reflects price is still far from the last dominant acceptance area near highs.
This is exactly what it should show.

4. The important nuance on your chart, let's look closely: The cyan (52-week) line is still sloping down
But…The magenta (50-day high) line already turned up earlier and then rolled
That tells you something very useful, Shorter-term structure tried to repair before long-term structure did.
This is classic counter-trend repair then failure then deeper discount, which matches the actual candles.

5. Where we are in the “phase cycle”?
Using only this model:

Phase map for this tool:
ZoneMeaning
Greenextension / near highs
Yellownormal pullback
Reddeep pullback / repair phase
So right now TSLA is in late red zone, that is repair phase, not momentum phase.

6. The key observation on this chart is the most important thing in the lower pane:
Your Off52 (cyan) has:
  • made a lower low
  • and is now starting to flatten
Not rising yet. Flattening. That is selling pressure is no longer increasing relative to the high.
This is an early condition only.
Not a trigger!!!

7. When is a potential move to be expected (with this model)?
This model does not forecast by time. It forecasts by location repair.
The next tradable phase for continuation-style trades comes when: Off52 reclaims the −15 line
In your script:
plot Z2 = -15

plot Z2 = -15

So the first structural improvement signal from this model is the Cyan line moves back up into the yellow zone (above -15)
That is the “repair completed” phase. Right now:
  • you are still below it
So this is still base-building / damage-repair territory

8. The clean rule for your stack
For your system, the best way to use this is:

Phase gating:​

  • Red zone:
    • only structure-based reversals
    • no continuation bias
  • Yellow zone:
    • structure reclaim + WA + trigger allowed
  • Green zone:
    • continuation and trend entries
Right now TSLA is only eligible for reversal / base trades, not trend continuation.

9. Tying it back to the chart shows it already has:
  • broken trendline
  • supply zone above
  • options resistance above
  • compression under 450
Your Off-High model confirms the same thing that price has not repaired enough of the prior high displacement. This is perfect alignment.

10. Short, direct answer to the question, What Where Why When?
Where is it? Deep pullback phase (red zone), about −16% off the 52-week high.

Why is it there?
Because TSLA failed continuation near the highs and is still structurally far from the last accepted value near the top of the range.

When would a potential move be expected using this model?
Not by date. By phase. And the phase is when the cyan line (Off52) re-enters the yellow zone (above −15) and you simultaneously see:
  • structure reclaim on price
  • your WA / bias stack flip back to tradable
That is the point where this model says the repair phase is ending. Until then, this tool is telling you environment = recovery / digestion, not trend.

Great synopsis and gonna dig into this now that the script is functioning. So I fully understand the output correctly: It is user optional to view the price amount off 52W Hi by either Percentage or ATR by simply right click>edit in the lower area? I like it!!
 
@RDMercer do not run this chart on demand

This shared chart link will override whatever defaults in your setup that is causing your issues:
http://tos.mx/!d8wVz8E9 MUST follow these instructions for loading shared links.

XpqaXZC.png
Just to clarify, what does running a script "on demand" define? Is it copy/pasting/ saving a thinkscript text as a new study and trying to execute it a chart? Over time I've copy/pasted scripts from various sources and never experienced an issue. Thanks!
 
Just to clarify, what does running a script "on demand" define? Is it copy/pasting/ saving a thinkscript text as a new study and trying to execute it a chart? Over time I've copy/pasted scripts from various sources and never experienced an issue. Thanks!


Great question!

When attempting to define a problem in order to craft a solution.
It is important to have a stable testing environment.

"on demand" is a contrived environment:
not run on the live ToS servers​
using algorithms, not live ToS data feeds.​
It is not a known environment

The problem presented as being unique to you;
No one else could repllicate it.

Therefore, removing the "on demand" environment was an essential diagnostic step.
 

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
1377 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