Custom Indicators & Trading Strategies with our integrated scripting module

Our WTT scripting engine core is based on “TradeScript”, a powerful new programming language which allows traders to design trading systems without prior programming experience.

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.

BASIC

For bar = 30 to max

Average = 0

For n = bar - 30 to bar

median = (CLOSE + OPEN) / 2

Average = Average + median

Next

MedianAverages(bar) = Average / 30

Next bar

TradeScript

SET MedianAverage = SimpleMovingAverage((CLOSE + OPEN) / 2, 30)

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.

Powerful

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 years ago. Today it is even faster.

WTT Version

We here at WTT took the TradeScript core and extended the fundamental engine to align it with our cycles and genetic algorithm knowledge. Today the WTT TradeScript Version offers an easy way to start coding trading systems, individual indicators or alerts. Our individual tradescript language offers already pre-build scripts.

It can be used in combination with our C# Scripting engine.

Start quick and extend quickly!