Yes! TradeStation's EasyLanguage is a proprietary scripting language designed for developing trading strategies, indicators, and signals for the TradeStation platform. It is widely used by traders and quantitative analysts for backtesting and automating trading systems.
Key Features of EasyLanguage
Simple Syntax – Designed to be easy to read and write, even for non-programmers.
Built-in Functions – Includes many pre-built functions for technical analysis (e.g., SMA(), RSI(), MACD()).
Event-Driven Model – Executes code on each bar (tick, minute, daily, etc.).
Backtesting & Optimization – Allows historical testing of strategies.
Order Management – Supports automated trading with functions like Buy, Sell, SellShort.
Example: Simple Moving Average (SMA) Crossover Strategy in EasyLanguage
Here’s a basic strategy that buys when a fast SMA crosses above a slow SMA and sells when it crosses below:
easy
//@Strategy: SMA Crossover
inputs:
FastLength(10), // Fast SMA period
SlowLength(20); // Slow SMA period
variables:
FastSMA(0), // Fast SMA value
SlowSMA(0); // Slow SMA value
// Calculate SMAs
FastSMA = Average(Close, FastLength);
SlowSMA = Average(Close, SlowLength);
// Trading logic
if FastSMA crosses above SlowSMA then
Buy ("SMA Cross Buy") next bar at market;
if FastSMA crosses below SlowSMA then
Sell ("SMA Cross Sell") next bar at market;
Example: RSI Indicator in EasyLanguage
Here’s a simple indicator that plots the RSI (Relative Strength Index):