Tag Archives: tradestation strategy

Using the Tradestation Strategy Builder

Using the TradeStation Strategy Builder

You don’t have to be a programmer to develop your own automated trading strategy.  If you use TradeStation you can create a custom strategy using a slew of built in strategies that you can mix and match.  In this article we’ll show you how to put together a simple system using these tools.

Tradestation Strategy Builder

Figure 1

Figure 1 shows how to add the strategy elements to a chart.  In this case we’re using a daily chart of Apple Computer stock (AAPL) for our testing.  To begin the process insert a strategy as highlighted in A above.  This opens the Insert Strategies window, shown in B.  Every line in this window represents a different strategy element, either an entry strategy or an exit strategy, for either longs or shorts.  The columns indicate the type of strategy element: buy for a long entry, sell for a long exit, short for a short entry, and cover for a short exit.  You can sort on these columns to help in your search.  We’ll start out by adding the _Stops & Targets strategy to our chart.  This strategy issues sell and cover orders to exit trades.  Highlight C shows the inputs for this strategy.  If the first input is set to 1 then all the subsequent inputs apply to a single share or contract, and in the defaults it tells TradeStation to exit trades when either $5 per share in profit or $1 per share in loss is reached.  Note that this strategy element is very flexible as it also allows you to use breakeven and simple trailing stops.

Having selected the basic exit strategy, we next focus on the entries.  There are many options here also, some are breakout entries, others are fading entries (mostly oscillator based), yet others are based on volume or volatility.  You can learn more about each by pressing the Definition button in the Insert Strategies window, which will open the TradeStation Help description of how the strategy works and what all the inputs represent.

Tradestation Strategy

Figure 2

In Figure 2 we select the Moving Cross entry strategies.  Note that we select two separate strategies here, one for entering longs (buy) and one for entering shorts (sell).  You don’t have to use the same type of strategy for both long and short, you could combine the Moving Cross LE (long entry) with a Moving 2Line Cross SE (short entry) for example.  But we’ll keep it simple by choosing the same entry method for both longs and shorts.  Highlighted in C you see the Format Strategies window which now contains our single strategy to exit long and short trades and one strategy each for entering longs and shorts.

And that’s all there is to it.  You can now view the Strategy Performance Report from the View menu and see how your strategy performs.  Odds are that it won’t be perfect because not every strategy will work the same way on every instrument and time frame.  Some tweaking will be required.  Fortunately TradeStation gives us powerful tools to do this.  It allows us to essentially optimize every input in every strategy element.

tradestation strategies

Figure 3

Look at Figure 3 to see how easy it is to optimize a strategy.  We open up the Format Strategies window and select the _Stops & Targets strategy.  Press Format to get to the strategy inputs.  In this example we highlight the input ProfitTargetAmt and press Optimize.  This opens the Optimize window for that input.  Simply give it a Start and Stop value and an increment, and TradeStation will calculate the system’s profitability for each step.  In this case we’ll test profit target amounts of $10, $20, $30, etc. all the way to $200.  You can repeat this process for every input in every strategy, but just be careful not to over optimize.  It’s best to stick with default values as much as possible, although I do recommend optimizing the profit and stop loss amount for each symbol and time frame tested as their normal movement range can vary greatly.

strategy builder

Figure 4

Once TradeStation completes its optimization you can look at the results in the Optimization Report, which you access from the View menu.  In our example you can see that all profit amounts tested yielded positive overall results, which indicates that the system is fairly robust on the daily AAPL chart.  You should always be careful if the best result is a big green number surrounded by much smaller green values or even red results.  This is a clear sign of curve fitting or over optimization.  Fortunately that’s not the case here.

In our example we only optimized the profit amount and the stop loss amount.  We did not optimize any of the entry strategies’ inputs.  The results turned out to be quite strong, as shown in Figure 5.

Tradestation system strategy

Figure 5

The Strategy Performance Report is also accessed through the View menu, and in Figure 5 we show two pages from the report, the Performance Summary and the Equity Curve Line.  The figures in the report are based on trading 100 shares of AAPL over a two year period.  The overall profit is over $42,000, not counting slippage and commissions, and although the win percentage is only 44%, the size of the winners is more than twice the size of the losers, giving us an average net profit per trade of almost $600 per 100 shares traded, more than enough to cover normal commissions and slippage.  If you apply the same system to a different instrument the results can be very different however, so be sure to at least rerun the optimization for the profit and stop loss amounts.

This approach obviously is not perfect.  While it works well on daily charts its application to intraday charts is hampered by the fact that we cannot set a start and stop time for day trading, so trades are taken around the clock.  Nor does this approach allow for any power of quitting rules, such as stopping trading if the first trade of the day is a winner or if we’ve booked a total of $100 or more for the session.  It’s also impossible to apply filters, for example only entering long trades if the 50 period EMA is above the 200 period EMA.  The approach does however give us an excellent starting point for testing different strategies that we can later enhance through additional programming.

Author:  Will Feibel writes for NetPicks Trading Tips and the NetPicks Informer.

Tradestation System Trading

Tradestation System trading has proven to be quite popular.  What’s the appeal?

With a tradestation system strategy add-on you can do a variety of things from backtesting, optimizing your inputs to actually turning on automatic execution.  ProIndicators.com has developed several of our best indicator systems into Tradestation Systems.

The way you can tell which of our Indicators is available as a Tradestation Strategy is look for this image:

Tradestation System Addon Strategy

And your chart will look like this once installed:

Tradestation System Add-on

Once you add that you’ll be able to get a system that will be able to back-test prior results weeks or even months.  Plus you can optimize those inputs.  Be careful of over-opimizing, never a good idea but there’s no question – market don’t all behave the same.  Some fine tuning if you’re going to trade the EURUSD, or Crude Oil Futures, or the S&P e-Mini should be done — behavior isn’t identical but price action is still price action.

And, you can even have the strategy add-ons help you manage a trade, move stops or even take an entry.  Make sure you are careful about whether you’re willing to accept market orders, possible slippage, the possibilities of not getting executed, etc…

ProIndicators gives you a great way to both combine powerful and easy to use indicators and a Tradestation System add-on opportunity as well.