Hello, traders, and welcome to another software update from your friends here at TrendSpider! In this update, we are pleased to announce the introduction of custom scripting to the platform. Details after the jump!
Watch the Intro to Scripting Video
“General purpose” means that it was not explicitly invented for finance, investing, or trading. Rather, it is a versatile programming language that can be applied across various industries and for diverse purposes.
Built For Developers
Our scripting is packed with developer-centric features and capabilities, including:
- Example scripts included with the platform to learn off. Even more examples available right in the Code Editor within the platform.
- Integrated auto-complete and syntax highlighting.
- Integrated help and documentation (control+click on a command to open the documentation panel.)
- Support for select open source NPM packages.
- Ability to use your own IDE with the Code Editor to synchronize code you write in your preferred environment
- Dozens of helper functions to compute indicators, detect trendlines, find chart patterns and formations, and perform mathematical functions, transformations or operations.
Enabling the Code Editor
In order to access the scripting environment, click on the ‘Code Editor’ button in the top right corner of your platform view.
The Code Editor panel will appear at the bottom of your screen, similar to the Market Scanner or Strategy Tester, and it will come preloaded with a sample script.
In the image below, you can see the sample script and the corresponding indicator the script has built. In the top left corner of your chart, note the ‘Current Script’ indicator in the indicator list.
Examples of Custom Scripts
Inside of the platform, there are dozens of examples. Just click on Example Scripts in the Code Editor window to load them. You are free to copy these examples and base your own indicators on them. Here are a few samples to get you going:
Coloring candles basing on RSI value
The example below colors candles depending on what’s the corresponding RSI value. Color is blue when RSI is around 50, red when it’s around 100 and bright blue when it’s around 0.
Double SMA colored clouds
Other Example Scripts of Custom Scripting in Action
- Coloring candlesticks: Color Inside Bars Differently
- Detect patterns on charts: Detect Symmetrical Triangles Automatically
- Identify trendlines on charts: Fractal Trendline Detection Indicator
- Plot indicators and moving averages: Guppy Moving Average Indicator
- Identify gaps in price action: Price Gap Detection Automation
- Compare against data from the past: Typical Volume-by-Time Comparison Indicator
- Access 20+ more examples inside the Code Editor under Load Examples button
Start Exploring Now
For a more in-depth view of how custom scripting works on the platform, please take time to read through the documentation provided here.
Our marketing department has demanded us mentioning docs. But we’re developers too. We know that nobody wants to read the docs. Go play with it!