How To Share a Chart in ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
Here is a tutorial on how to share a chart in ThinkorSwim.

Step 1: Click on the Share icon right above the chart itself.

X8XJ6pN.png


Step 2: A name will be generated automatically for your chart. It follows the Chart_date format (ex: Chart_20230127). If you want to rename it, feel free to do so.

Step 3: Click Share.

LnoNCMq.png


Step 4: You'll be provided with a link to your shared ThinkorSwim chart.

notnpMq.png


This link will allow other users to access your chart and view it exactly as you have set it up.

It is important to note that if you include custom indicators or studies on your chart, they will also be shared with the link.
 
Shared Chart Links are one of the best features of the ToS app. Members can share and discuss trading charts.

So you have successfully imported a shared chart: https://usethinkscript.com/threads/...ed-item-error-in-thinkorswim.5098/#post-57930
What now?

Maintaining the shared indicators that you have imported is of vital importance.
You have to be cognizant that all those shared indicators will quickly accumulate.
Your custom studies stored on the Schwab servers are not indexed.
Therefore, the more you have, exponentially creates lag to access the ones that you use
https://usethinkscript.com/threads/too-many-custom-studies-slows-down-thinkorswim.18577/#post-141129.

When you import a chart link, it adds a set of those indicators to your custom library.
You decide you want to look at that link, again? It adds ANOTHER set of those indicators again!

Quickly, your custom library becomes bloated with indicators that you are not even using.


1. If a chart that you have imported, which have future value, make sure to save the chart setup!
click on the beaker at top of chart
click on Save Study Set
kLy0VBs.png

This way you are not re-importing the link, multiple times, which bloats your library.

2. The chart setup does not fit your style of trading?
BUT some of the indicators, you want to save for future use?
click on the indicator, that you want to save, and give it a name that does not have the word "SHARED" in the title. That way, when you clean out all those other shared studies, it will not get deleted by mistake.


3. Of most importance, clean out those shared linked indicators!
Copy the studies which might have future interest to your computer:
https://usethinkscript.com/threads/how-to-backup-user-created-tos-chart-studies-strategies.14979/
https://usethinkscript.com/threads/best-way-to-save-lines-of-code.14973/#post-122479

And then DELETE all those shared indicators!
7MUor6e.png

The shared indicators are at the bottom of your study library
Put your cursor on the first shared indicator
Hold the shift key and press the down arrow.
Color all those shared indicators and hit delete.

This is the single most important action to speed up your ToS app.
Keep your study library lean and mean.

FYI, if you have accumulated a lot of shared studies, deleting them is going to take a significant amount of time. The custom studies are NOT indexed! So, plan this action to occur, NOT during market hours.
Go out to dinner, go walk the dog. The delete action will complete eventually.
You will see a significant performance increase, once they are gone.
 
Last edited by a moderator:
check the below:

CODE Update - - Added Signal Options

CSS:
#// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
#//@KivancOzbilgic
#indicator(title='Twin Range Filter', overlay=true)
# Converted by Sam4Cok@Samer800     - 11/2024
# added signal options by Sam4Cok@Samer800 -  12/2024

input timeframe = AggregationPeriod.MIN;
input source = FundamentalType.CLOSE; #(defval=close, title='Source')
input colorSignalBar = yes;
input signalOptions = {Default "Bubbles", "Arrows", "Don't Show"}; #(title='Show Buy/Sell Signals ?', defval=true)
input FastPeriod = 27; #, minval=1, title='Fast period')
input FastRangeMulti = 1.6; #, minval=0.1, title='Fast range')
input SlowPeriod = 55; #, minval=1, title='Slow period')
input SlowRangeMulti = 2.0; #, minval=0.1, title='Slow range')

def na = Double.NaN;
def last = isNaN(close);
def current = GetAggregationPeriod();
def tf = Max(current, timeframe);
def dif = AbsValue(Fundamental(source, Period = tf) - Fundamental(source, Period = tf)[1]);
def ohlc = ohlc4;
def sig;
Switch (signalOptions) {
Case "Don't Show" : sig = 0;
Case "Arrows" : sig = -1;
Default : sig = 1;
}

Script smoothrng {
input dif = close;
input t = 27;
input m = 1.6;
input x1 = close;
    def wper = t * 2 - 1;
#    def dif = AbsValue(x - x[1]);
    def avrng = ExpAverage(dif, t);
    def smoothrng = ExpAverage(avrng, wper) * m;
    plot out = smoothrng;
}
Script rngfilt {
input x = close;
input r = close;
    def rngfilt;
    def PreFilt = if isNaN(rngfilt[1]) then 0 else rngfilt[1];
    rngfilt = if x > PreFilt then if x - r < PreFilt then PreFilt else x - r else
              if x + r > PreFilt then PreFilt else x + r;
    plot out = if rngfilt then rngfilt else x;
}
def smrng1 = smoothrng(dif, FastPeriod, FastRangeMulti);
def smrng2 = smoothrng(dif, SlowPeriod, SlowRangeMulti);
def smrng = (smrng1 + smrng2) / 2;
def filt = rngfilt(Fundamental(source, Period = tf), smrng);
def upward;
def downward;
def PreUp = if isNaN(upward[1]) then 0 else upward[1];
def PreDn = if isNaN(downward[1]) then 0 else downward[1];
    upward = if filt > filt[1] then PreUp + 1 else
             if filt < filt[1] then 0 else PreUp;
    downward = if filt < filt[1] then PreDn + 1 else
               if filt > filt[1] then 0 else PreDn;
def STR = filt + smrng;
def STS = filt - smrng;
def FUB;
def FLB;
def TRF;
def FUB1 = if isNaN(FUB[1]) then 0 else FUB[1];
def FLB1 = if isNaN(FLB[1]) then 0 else FLB[1];
def TRF1 = if isNaN(TRF[1]) then 0 else TRF[1];
    FUB = if STR < FUB1 or close(Period = tf)[1] > FUB1 then STR else FUB1;
    FLB = if STS > FLB1 or close(Period = tf)[1] < FLB1 then STS else FLB1;
    TRF = if TRF1 == FUB1 and close(Period = tf) <= FUB then FUB else
          if TRF1 == FUB1 and close(Period = tf) >= FUB then FLB else
          if TRF1 == FLB1 and close(Period = tf) >= FLB then FLB else
          if TRF1 == FLB1 and close(Period = tf) <= FLB then FUB else FUB;
def Trfff = if TRF then TRF else na;
def dir = if close(Period = tf) > Trfff then 1 else -1;

#-- plots
plot TRFup = if last then na else if dir>0 then Trfff else na;
plot TRFdn = if last then na else if dir<0 then Trfff else na;
TRFup.SetDefaultColor(Color.GREEN);
TRFdn.SetDefaultColor(Color.RED);

AddCloud(ohlc, TRFup, Color.DARK_GREEN, Color.DARK_RED);
AddCloud(TRFdn, ohlc, Color.DARK_RED, Color.DARK_RED);

#-- Signals
def crossUp = Crosses(close, TRF, CrossingDirection.ABOVE);
def crossDn = Crosses(close, TRF, CrossingDirection.BELOW);
plot long  = if sig < 0 and crossUp then Trfff else na;
plot short = if sig < 0 and crossDn then Trfff else na;
long.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
short.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
long.SetDefaultColor(Color.GREEN);
short.SetDefaultColor(Color.RED);

AddChartBubble(sig>0 and crossUp, Trfff, "B", Color.GREEN, no);
AddChartBubble(sig>0 and crossDn, Trfff, "S", Color.RED);

AssignPriceColor(if !colorSignalBar then Color.CURRENT else
                 if crossUp then Color.CYAN else
                 if crossDn then Color.MAGENTA else Color.CURRENT);

#-- END of CODE
CSS:
#// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
#//@KivancOzbilgic
#indicator(title='Twin Range Filter', overlay=true)
# Converted by Sam4Cok@Samer800     - 11/2024


input timeframe = AggregationPeriod.MIN;
input source = FundamentalType.CLOSE; #(defval=close, title='Source')
input showSignals = yes; #(title='Show Buy/Sell Signals ?', defval=true)
input FastPeriod = 27; #, minval=1, title='Fast period')
input FastRangeMulti = 1.6; #, minval=0.1, title='Fast range')
input SlowPeriod = 55; #, minval=1, title='Slow period')
input SlowRangeMulti = 2.0; #, minval=0.1, title='Slow range')

def na = Double.NaN;
def last = isNaN(close);
def current = GetAggregationPeriod();
def tf = Max(current, timeframe);
def src = if !last then Fundamental(FundamentalType = source, Period = tf) else src[1];
def src1 = if !last then Fundamental(FundamentalType = source, Period = tf)[1] else src1[1];
def dif = AbsValue(src - src1);
def ohlc = ohlc4;

Script smoothrng {
input dif = close;
input t = 27;
input m = 1.6;
input x1 = close;
    def wper = t * 2 - 1;
#    def dif = AbsValue(x - x[1]);
    def avrng = ExpAverage(dif, t);
    def smoothrng = ExpAverage(avrng, wper) * m;
    plot out = smoothrng;
}
Script rngfilt {
input x = close;
input r = close;
    def rngfilt;
    def PreFilt = if isNaN(rngfilt[1]) then 0 else rngfilt[1];
    rngfilt = if x > PreFilt then if x - r < PreFilt then PreFilt else x - r else
              if x + r > PreFilt then PreFilt else x + r;
    plot out = if rngfilt then rngfilt else x;
}
def smrng1 = smoothrng(dif, FastPeriod, FastRangeMulti);
def smrng2 = smoothrng(dif, SlowPeriod, SlowRangeMulti);
def smrng = (smrng1 + smrng2) / 2;
def filt = rngfilt(src, smrng);
def upward; # = 0.0
def downward;
def PreUp = if isNaN(upward[1]) then 0 else upward[1];
def PreDn = if isNaN(downward[1]) then 0 else downward[1];
    upward = if filt > filt[1] then PreUp + 1 else
             if filt < filt[1] then 0 else PreUp;
    downward = if filt < filt[1] then PreDn + 1 else
               if filt > filt[1] then 0 else PreDn;
def STR = filt + smrng;
def STS = filt - smrng;
def FUB;
def FLB;
def TRF;
def FUB1 = if isNaN(FUB[1]) then 0 else FUB[1];
def FLB1 = if isNaN(FLB[1]) then 0 else FLB[1];
def TRF1 = if isNaN(TRF[1]) then 0 else TRF[1];
    FUB = if STR < FUB1 or close(Period = tf)[1] > FUB1 then STR else FUB1;
    FLB = if STS > FLB1 or close(Period = tf)[1] < FLB1 then STS else FLB1;
    TRF = if TRF1 == FUB1 and close(Period = tf) <= FUB then FUB else
          if TRF1 == FUB1 and close(Period = tf) >= FUB then FLB else
          if TRF1 == FLB1 and close(Period = tf) >= FLB then FLB else
          if TRF1 == FLB1 and close(Period = tf) <= FLB then FUB else FUB;
def Trfff = if TRF then TRF else na;
def dir = if close(Period = tf) > Trfff then 1 else -1;

#-- plots
plot TRFup = if last then na else if dir>0 then Trfff else na;
plot TRFdn = if last then na else if dir<0 then Trfff else na;
TRFup.SetDefaultColor(Color.GREEN);
TRFdn.SetDefaultColor(Color.RED);

AddCloud(ohlc, TRFup, Color.DARK_GREEN, Color.DARK_RED);
AddCloud(TRFdn, ohlc, Color.DARK_RED, Color.DARK_RED);

#-- Signals
plot long  = if Crosses(close, TRF, CrossingDirection.ABOVE) then Trfff else na;
plot short = if Crosses(close, TRF, CrossingDirection.BELOW) then Trfff else na;
long.SetPaintingStrategy(PaintingStrategy.POINTS);
short.SetPaintingStrategy(PaintingStrategy.POINTS);
long.SetDefaultColor(Color.GREEN);
short.SetDefaultColor(Color.RED);

AddChartBubble(showsignals and long, TRFup, "B", Color.GREEN, no);
AddChartBubble(showsignals and short, TRFdn, "S", Color.RED);

#-- END of CODE
I've tried loading both codes, separately and together, but I don't get any chart that looks like what was shown (with the Buy and Sell indicators). Would you mind sharing a link for the chart?
 
I've tried loading both codes, separately and together, but I don't get any chart that looks like what was shown (with the Buy and Sell indicators). Would you mind sharing a link for the chart?

Your last four posts concerned studies not loading correctly.
This would indicate that the problem is with your app or chart settings.
Please provide:
1. an image of what your chart looks like
2. a shared link for your chart so members can see what you are seeing; and provide suggestions for a solution.

How to create a shared chart link:
https://usethinkscript.com/threads/how-to-share-a-chart-in-thinkorswim.14221/
 

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