Skip to Main Content

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.

This is an image of the premarket range atop a regular session chart indicator.

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.

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.

This is an image of a bubble chart which utilizes earnings data.

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.

This is an image of unusual options data visualized as horizontal levels on a chart.

New Line Types

There are now many new ways to render your indicators. Here’s a comprehensive list of all the new selections.

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:

  1. New section: “Using additional data series” 
  2. 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 .
  3. New topics added in the “Best practices” section (4, 5)
  4. A few of examples added in the “Examples” section
  5. The “Limitations” section updated, since some past limitations are now lifted and some new have been added.
  6. 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.