The Easiest Programming Language for Traders
Introducing TradeScript, our powerful new programming language which allows traders to design trading systems without prior programming experience.
Who's it for?
TradeScript is a development component designed for software developers who want to expand the set of features on their trading application by providing a scripting language.
TradeScript, as a language, is intended for traders who need to write their own trading strategies but don't know how to program in low-level languages such as C and C++.
TradeScript allows traders develop trading systems quickly and effortlessly. It's as easy as 1-2-3.
With TradeScript, you can enable your trading application to run scripts which provide alerts when the price of a security (stock, futures, or forex) reaches a new high, crosses over a moving average, or drops a set percentage, though those are only a few examples. TradeScript can also scan the market, generate trade signals, back-test trading strategies, and much more.
Vector Programming Languages
Most popular trading applications such as MetaStock, TradeStation, NinjaTrader, MetaTrader and others provide their own programming languages (such as MQL4, MQL5, EasyLanguage, MetaStock's scripting language, etc.). Without a programming language, traders are unable to develop automated trading systems or perform back-testing of strategies.
A vector programming language offers extreme flexibility with a minimal learning curve. In fact, in just five minutes, you can start writing with TradeScript.
So what is a vector programming language, and why is it so easy to learn?
Vector programming languages (also known as array or multidimensional languages) generalize operations on scalars to apply transparently to vectors, matrices, and higher dimensional arrays. The idea behind vector programming is that operations apply at once to an entire set of values (a vector or field). This allows you to think and operate on whole aggregates of data, without resorting to explicit loops of individual scalar operations.
In other words, it's similar to the macro language found in Excel.
The easiest programming language for traders. The most powerful, too.
An example: to calculate a simple moving average based on the median price of a security over 30 days, in a traditional programming language such as BASIC, you would be required to write a program similar to the code shown in this block of code.
Several lines of code would be required to create the "MedianAverages" vector. But with TradeScript, you can accomplish the same thing using only one line of code as show below.
And now MedianAverage becomes a new vector which contains the 30-period simple moving average of the median price of the security.
It is not uncommon to find array programming language "one-liners" that require more than a couple of pages of BASIC, Java, or C++ code. The same holds true for creating trading systems for back testing and trade alerts.
TradeScript was originally designed as a high-performance programming language for high-frequency traders. It was designed to scan over 100,000 stocks based on complex technical criteria and return instantaneious results- in under five milliseconds. That was over ten years ago. Today it is even faster.
Back Test Statistics
In addition to an actual Trade Log, TradeScript back test results include over 24 statistical outputs: Total Number of Trades, Average Number of Trades per Period, Number of Profitable Trades, Number of Loosing Trades, Total Profit, Total Loss, Percent Profit, Largest Profit, Largest Loss, Maximum Drawdown, Maximum Drawdown (Monte Carlo), Value Added Monthly Index (VAMI), Compound Monthly ROR, Standard Deviation, Annualized Standard Deviation, Downside Deviation, Sharpe Ratio, Annualized Sharpe Ratio, Sortino Ratio, Calmar Ratio, and Sterling Ratio.
Quick & Easy Development Solution
If you're a software developer, you'll be surprised to know that it only takes about 30 minutes to implement TradeScript into your trading application. TradeScript comes with context-sensitive help, and our Programmer's Guide can be shipped with your application. Adding a scripting language to your trading application couldn't be any easier.
Get Started with TradeScript >
M4 Trading Platform Implementation
TradeScript is the programming language used in our M4 trading platform, where it executes automated trades, processes real time alerts, runs stock scans, and back-tests trading systems.
Available in C++ and in C# Versions
TradeScript is available in both C++ (x64 for best performance) and C# for developing web applications. It comes with over 30 example projects and extensive developer support to help you implement the library into your project.
Common Development Scenarios
TradeScript is most commonly used in one of three scenarios. It is often used inside desktop trading applications, where it is embedded on the client side. It is also commonly used on the server side, where it runs strategies for thin clients, such as mobile and web applications. Another common scenario is where TradeScript is run on the server side in order to provide real time scanning results to web and mobile users.
A genetic algorithm can be integrated into TradeScript to create an autonomous trading system creation engine. Check our Evo2 genetic algorithm engine which comes with TradeScript examples.
TradeScript is used in a number of popular trading applications, one of which is the WhenToTrade Cycles and Genetic Algorithm Platform. The case study describes how TradeScript is implemented to perform cyclical analysis of the markets.
The WhenToTrade Cycles and GA Platform combines technical analysis using TradeScript and financial charting using StockChartX with novel algorithms for cyclic analysis. The solution is part of a complete knowledge package and enables traders to apply the derived strategies to all kinds of markets and timeframes.
Why Choose Modulus?
Modulus is a financial technology company. While that may not sound like a real differentiator, it is. It means that our solutions come from our years of experience in the financial technology industry. Our products and services are provided by developers and engineers who have first-hand trading experience. Everyone here at Modulus speaks your language.
Read more about us.