06/27/2023 |
TrendSpider Software Update: Custom Scripting Upgrades
Hello, traders, and welcome to another software update from your friends here at TrendSpider! We are pleased to announce a significant update to our custom scripting which brings exciting new features and improvements that will enhance functionality and provide more options for your analysis. Details after the jump!
If you’re a developer or coder, this update is for you! In this release, we introduce major changes to our Custom Scripting functionality.
Using Additional Data Series
Using Multiple Tickers, Time Frames or Chart Types
It is now possible to request additional data sets within your scripts. You can utilize data from other assets, alternative time frames, or even other chart types, in any combination. If you have a script running on SPY, you can now request history for assets like AAPL, BTC, or EURUSD, and utilize that data in any way you’d like including painting, computing indicators, and more.
Example: Rendering Premarket Price Range
This new functionality opens up the ability to do things like painting the premarket price action range atop a regular session chart. Doing this demands requesting an additional data set because a traditional chart will not contain said premarket data. The below image is a visualization of how this indicator will look when displayed on your chart. Source code is available in our Developer Docs.
Using Alternative Data: Unusual Options, News and more
Just as you can request additional data sets like mentioned above, you can now request any alternative data found on the platform. This includes items like news, earnings, short volume, market breadth, and more. A comprehensive list is provided below.
- News
request.news()
- Analyst Ratings (US equity only)
request.analyst_ratings()
- Splits (US equity only)
request.splits()
- Dividends (US equity only)
request.dividends()
- Earnings (US equity only)
request.earnings()
- Insider Trading (US equity only)
request.insider_trading()
- Short Volume (FINRA Reg SHO), US equity only
request.short_volume()
- Unusual Options (US equity only)
request.unusual_options()
- Popularity of a given ticker on Reddit (/r/wallstreetbest) over time
request.wallstreetbets()
- Market Breadth (US equity only)
request.market_breadth()
- Retail Traders Activity (US equity only)
request.retail_trading()
- Federal Reserve Economic Data (FRED)
request.fred_series()
- Crypto Fear & Greed Index
request.crypto_fear()
- Dark Pool Volume
request.dark_pool()
- Seasonality
request.seasonality()
Example: On-Chart Earnings Marks
You can now do things like paint earnings reactions on your chart as bubbles. The bigger the surprise, the bigger the bubble. The bubble will be colored green if earnings were positive and red if they were negative. This is visualized in the chart below. Source code is available in our Developer Docs.
Example: On-Chart Unusual Options At Strike
Another use case is painting horizontal levels using Unusual Options data. In this example, horizontal levels illustrate volume at strike for puts and calls. The thicker the horizontal level, the higher the volume at strike. Source code is available in our Developer Docs.
New Line Types
There are now many new ways to render your indicators. Here’s a comprehensive list of all the new selections.
- Area
- Area Range (Vertical Range)
- Box Plot
- Bubble
- Column Range (Vertical Range)
- Stacked Histogram (Stacked Column Chart)
For these new chart types, there are a handful of things you should know regarding Painting Indicators, Assigning Colors, and Shifting Indicator Lines.
Developer Documentation
We have updated our Developer Documentation, in both existing sections and features added by this release. For a more in-depth view of how these new custom scripting features work on the platform, please take time to read through the documentation provided here . Here is a list of the most noteworthy changes:
- New section: “Using additional data series”
- New section: “What you can paint”. Covers both old line types (like Line, Dots etc) and new line types. Now covers some new topics like working with colors and shifting lines .
- New topics added in the “Best practices” section (4, 5)
- A few of examples added in the “Examples” section
- The “Limitations” section updated, since some past limitations are now lifted and some new have been added.
- New section: “Comparison to other platforms”; following numerous requests, we’ve built a list of important differences vs TradingView’s Pine Script™
As always, we hope you find these new updates useful. If you have any questions, do feel free to reach out via the ‘Contact Us’ button in the bottom right-hand corner of your chart.