Show more above don't use your account balance, and don't affect your challenge, rules, or
statistics. A combination tuned on past data can fit noise, so check other
markets and periods before relying on it.
Share a script
Select Share in the editor or in a script's actions menu, then **Create
Share Code**. Sharing creates a share code, such as \MFP-7K2Q-9XWD\, and a
share link for the script's current saved version. Unsaved changes aren't
included.
How it's shared Who can use it Share link Anyone with the link can view the source, even without signing in. Signed-in traders can select Copy To My Scripts.
Share code Signed-in traders paste it into the share code field in the Scripts window and select Add. Public Library listing Turn on Also List It in the Public Library in the share dialog. Every trader with Scripts can find it and add a copy.
− Each share is a frozen copy of that version. Saving new versions doesn't
− change it; share the new version to share those changes. Traders who add it
− get their own copy in My Scripts, starting from the script's default inputs
− and switched off for trade charts, and they can't change your original.
+ Each share shows one version. Saving new versions doesn't change what it
+ shows or what traders who added it run; publish an update when you want to
+ offer them a newer version. Traders who add it get their own copy in My
+ Scripts, starting from the script's default inputs and switched off for
+ trade charts, and they can't change your original.
Turn Code Off stops the link and code and removes the listing. Copies
traders already added stay theirs. Other Shared Versions lists older
versions you still share, each with Stop Sharing. You can keep up to 50
share links at once.
+ Publish an update
+ To offer a newer version to everyone who added an earlier one, save the new
+ version, open Share, and select Publish Version under the older
+ version in Other Shared Versions. The share keeps its code, link, Public
+ Library listing, and trader counts, and from then on shows the new version.
+ Traders who already added it see Update Available and choose whether to
+ accept it; their scripts don't change until they do.
+ You can publish only your script's current saved version, only when it
+ compiles, and only when that version doesn't already have its own share code.
+ A listing that staff removed from the Public Library can't be updated.
[!NOTE]
A share shows the script's name, version, source code, and when it was shared,
Show more credited to your public username and generated avatar. Your uploaded profile
photo and a link to your public profile appear only while your [public
profile](/settings/public-profile) is on. Your email, account, and trading are
never shown. Shared pages are hidden from search engines, but anyone you give
the link to can open it.
Public Library
The Public Library tab lists scripts other traders chose to list. Search
by name, filter to Indicators or Strategies, and sort by **Most
Used or Newest**. Each card shows the script's author and how many
traders added it; counts update every hour.
Add saves a copy to My Scripts. View Source opens the script's shared
− page. Report Listing tells staff what's wrong with a listing, such as
+ page. When the author publishes an update, traders who already added it can
+ review and accept it; see Update an added script. Report Listing tells staff what's wrong with a listing, such as
copied work or a misleading name; staff can remove it from the Public
Library, and a removed version can't be listed again. Your own listings show
Your Listing.
+ Update an added script
+ When the author of a script you added publishes a newer version, the script
+ shows Update Available in My Scripts and in the editor. Your copy never
+ changes on its own. Select Update Available to review the update:
+ - The version you have and the new version, and who published it.
+ - What the new version reads with request.data() and any links in its
+ text, so you can check them before it runs on your charts.
+ - A side-by-side comparison of your current version and the new one.
+ - A warning when you've saved your own changes since adding or last updating
+ the script, because accepting replaces them.
+ Accept & Update checks the new version in your browser and saves it as
+ your script's next version. Your previous version stays in your version
+ history, so you can restore it from Versions. Saved input values carry
+ over when the new version's inputs match; otherwise they reset to the new
+ version's defaults. If the script shows on your trade charts, they switch to
+ the new version. An update that doesn't compile for you, or that imports a
+ library you don't have, isn't applied.
+ Dismiss hides the update until the author publishes a newer one. Updates
+ stop being offered when the author stops sharing the script, deletes it, or
+ staff remove its Public Library listing; your copy stays yours.
Top Indicators
The Top Indicators tab ranks Public Library scripts by how many different
Show more traders added each one in the last 7 Days, 30 Days, or All Time,
up to the top 50. Adds through a share link or code count too; adding your
own script doesn't. Each row shows how its place changed against the window
before. Rankings update every hour.
+ Script Data
+ Script Data, in the More Actions menu on My Scripts, holds the text
+ values your scripts read with request.data("key") (see
+ Your own data in a script).
+ 1. Open More Actions and choose Script Data.
+ 2. Choose Add Key, enter a key and a value, and choose Save. To change
+ a value, choose Edit next to its key.
+ 3. Choose Copy API Example to copy a curl command that sets the same
+ key from your own program with an API key that has trade scope.
+ Charts and editor previews running a script that reads a key update as soon
+ as you save it. Delete removes a key; scripts that read it show na
+ until you add it again.
+ Script data belongs to your account, not to a script. Other traders never
+ see it, and a script someone shares with you reads your values, not theirs.
+ A shared script's page and Import show the keys a script reads, and any
+ links in its text, before you add it.
Report a Problem
Use Report a Problem when something on the Scripts pages or the chart
Show more doesn't work, a script compiles on TradingView but not here, or a script
plots or behaves differently from TradingView. It's in the **Script
Actions menu in the editor, the More Actions** menu on My Scripts, and a
saved script's legend menu on the trade chart.
Describe what you expected and what happened instead, in up to 4,000
characters. What's Attached lists what's sent with the report: the
script's name and version, the source of your draft or saved version, the
problems the editor showed, the chart's market and timeframe, and your
browser, window size, and language. You can send up to 10 reports an hour
and 30 a day.
Limits
Limit Value Saved scripts 100 Saved versions per script 20 (the oldest are deleted) Scripts on your trade charts at once 4
Open editor tabs 8 Share links you keep at once 50
+ Limit Value Added scripts checked for updates 50 most recently edited
Markets in one backtest 10 Inputs in one sweep 2
Show more Combinations in one sweep 100
Watch expressions per script 5 Report description 4,000 characters
+ Limit Value Script Data keys 20 Script Data value length 65,536 characters Script Data changes 30 a minute, 1,440 a day
At 100 saved scripts, delete one to add another. Script length, run time,
and drawing limits are in Pine Scripts.