Trend-Following Strategy For ThinkOrSwim

Sesqui

Member
VIP
The following article by MerryDay posted here on this site, Why Using Different Types of Indicators Is Important To Successful Trading In ThinkOrSwim, provides valuable insight into an important aspect of designing a trading strategy that will get the desired results. At one point, the article states that a good strategy must use two or more of the following different types of indicators:
  1. Trend indicators
  2. Volatility indicators
  3. Momentum indicators
  4. Cycle indicators
  5. Market strength indicators
  6. Support and resistance indicators
The article provides a link to Dr. Rajeev Shukla’s Study of Multicollinearity of Technical Indicators , which provides a wonderful list of indicators grouped into the above categories so you can more readily go about making a trading system that works. If you have not reviewed that article, I recommend you read it.

Using the insight gained from this article I put together a trend-following system for scalping and am providing it here for instructional purposes and to emphasize that if your trading system is not performing the way that you want it to, consider the possibility that it may be mixing col-linear indicators or may not be using the right blend of indicators from the 6 categories listed above. In my case here, my strategy was performing poorly until I revisited the list of indicators above and realized that I had not included anything for Market Strength/Conviction. From there it was straightforward to figure out how to apply one of the many volume indicators out there to accomplish the desired performance. The strategy uses the following indicators:
  1. Lead indicator: Universal Oscillator (a trend-following indicator). The strategy uses a modified variant that makes it adapt to market volatility. The script for it can be found here Adaptive Universal Oscillator for ThinkOrSwim
  2. Market Strength: VIP Coulling Volume Price Analysis (VPA) indicator, available to VIP members
  3. Market Strength: A variant of Relative Volume (RVOL) Spikes provided by this sight here: Relative Volume Spike Buy Sell Chart Setup For ThinkOrSwim
  4. Trend confirmation: Super-Trend indicator found here: SuperTrend TradingView Look-A-Like For ThinkOrSwim
  5. Support/Resistance: Supply/Demand Zones found here: Note#3 - Support and Resistance Levels with Breaks [LuxAlgo]
Here is a screenshot of the layout on a 5-min chart. The VIP VPA indicator was the indicator that made this strategy succeed. It uses a custom price and volume analysis method to color price bars to reveal the underlying trend, but more importantly captures the price and volume action with its underlying metrics that enable the strategy to pin-point entries and exits that are high probability trades.

1759632350269.png


Trading Rules.
The Super-Trend and Universal Oscillator (UOSC) are used to spot potential trades and the VIP VPA volume indicator is used to pin-point entries and exits with exits being occasionally made when an Relative Volume (RVOL) spike occurs in the opposite direction of the position.

When the Super-Trend (ST) line is red, short trades are preferred. When ST is green, long trades are preferred.

The default entry and exit of the Universal Oscillator (UOSC) is when it crosses its zero line. In other words, by default when used on its own, when the UOSC crosses above zero a long position could be taken and it would not be exited until a take profit goal was met or until it crossed back below the zero line. Short positions would start when it crosses below zero and end then crosses back above zero. To provide more flexibility, a Hull Moving Average (HMA) of the the UOSC having length 34 (the yellow curve) is superimposed on the indicator to provide additional support and resistance for entering/exiting long or short positions when waiting for a zero crossing is not desired. As a result, trades are allowed when the UOSC crosses the HMA too.

However, much better performance is obtained when using this indicator in conjunction with the other indicators, especially the VIP VPA volume indicator and Relative Volume Spikes (arrows drawn on the UOSC curve). If the volume indicator does not show volume aligned with a position then the trade is not taken until there is volume backing it.

For example the UOSC crosses above the HMA around 7:15 at a time when the Super-Trend (ST) is green, allowing long positions to be taken. However the VIP VPA volume indicator's volume bar is red. As a result, no long position is taken. Later at 7:20 the ST is still green and now the volume bar is green and well above the average volume level (cyan line). As a result a long position can be taken. Also note that at 7:20 a bullish RVOL spike occurred (there is a small upward green arrow on the UOSC curve) , indicating a higher probability trade setup. At 7:25 a bearish RVOL spike occurs and simultaneously the volume bar turns red. As a result, the long position is exited, maximizing profit for that position.

This general process of spotting potential trades using the universal oscillator and Super-Trend, then monitoring the volume and volume spike alignment to pin-point entries and exits is repeated throughout the session. Note that the Supply/Demand zones (support resistance lines) shows and red and green zones on the price chart are also monitored for improved situational awareness. For example, if a potential long position is spotted but it is near a red zone (a higher high or lower high) such that the impression is there may not be sufficient room for the price action to move up and make the position worth the risk, the trade is not taken. However, if there is plenty of room then the trade may potentially be a higher probability position to take.

The ThinkOrSwim strategy tester was used to test this strategy using the 5-min chart. The test included trades during the opening hour and the last hour of the day (the power hour, if you will). Trades were not taken in the 1st 5 minutes of the opening session to avoid potentially unmanageable volatility. Furthermore all trading was stopped 3 minutes before the end of the trading day and all open positions closed out. As a result, almost two hours of trading was undertaken per day. The strategy tester back tested across 30 days. The results revealed the strategy has potential for being fairly lucrative. A screenshot of the pertinent portions of the strategy report are provided below :
1759635342548.png


1759634428285.png


Table 1: Results of Applying the Strategy to a 5-min chart Across 30 Days:

1759634631864.png


A small account that can afford 50 shares of the stock would have the potential for making (50 shares)($132.70)(12 months) ~= $80k per year. And that is really significant since before I realized I needed to integrate a market strength indicator into the strategy, it was not making a noticeable or consistent profit.

Given that the chart is a 5-min chart, a careful review of the arrows that identify the start and end of each trade on the price chart reveals that the strategy is not likely going to be overly taxing on the scalper since a good number of trades last 15 to 20 minutes. However, there are a good number of trades that the scalper would need to pay attention to since they only last 5 minutes (ie 1-bar). However, there is always the option of applying the strategy to a 10-min chart if slowing things down is desired to make the process easier to manage. However, the potential profits would likely be less.

A trend-following strategy has been compiled and provided for instructional purposes with test results that demonstrate the strategy has potential for providing a decent income.

Hope this helps.

Sesqui
 
Excellent post!
@Sesqui provides the essential elements of a day trading trend strategy.
AND a clear explanation on how to use it.
This post should be bookmarked by every new daytrader!



Keep in mind; the results are a bit optimistic.
Probably have a bit of repainting going on.

The most likely issue.
REPAINTING ADDORDER SCRIPTS :

One of the main limitations with the ThinkOrSwim (ToS) AddOrder function is that it can only calculate your profit and loss (P&L) after the bar (or candle) has closed; it doesn’t track or react to what happens inside the candle as it forms. That means your AddOrder scripts only get accurate P&L data after the close, specifically by using open[-1] (the open of the next bar) as the execution price.
https://usethinkscript.com/threads/...-fatal-flaw-of-thinkscript.13475/#post-113259

AddOrder scripts work strictly on price=open[-1] as shown in the documentation.
https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Others/AddOrder#:~:text=price-,open[-1],-Defines price at
 
Last edited by a moderator:
@Sesqui provides the perfect discourse on what a trending strategy is and how to set one up.
Agree, this thread should be bookmarked; and referenced whenever, day traders are having difficulty with their trades.


A few notes:
With only 5-min signals, you will see "setups" everywhere.
Stack the deck in your favor by reviewing the higher timeframes
  • Daily trend check
  • 1-hour trend aligned
  • Catalyst or clear reason for movement
  • Price at key level on 15-min
Only then take the 5-min entry signal
If all five aren't there, skip it. You'll take 70% fewer trades but win significantly more.


Pre-Trade Checklist
  1. What's the daily trend, and where are the major levels?
  2. What's the 1-hour telling me about momentum?
  3. Is there a catalyst driving this stock today?
  4. What's my stop based on higher timeframe structure?
  5. What's my risk-reward ratio? (Minimum 1:2)
  6. What's my position size? (Max 1-2% account risk)
  7. Do my 5-min signals align with everything above?
Remember: Catalysts move markets, not indicators.
If Trend is your major impetus; you must perform the above checklist not just on the stock, but also on the overall market to determine if it will drive your trade.

A chart can look perfect, but the trade will fail without a driving factor.
 
Last edited:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
397 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top