How to Build a Trading Indicator (2024)

Elliott and Gann have become household names amongthe worldwide trading community. These pioneers of technical analysis developed some of the most widely used techniques in the field. But how did Ralph Nelson Elliott and W.D. Gann come up with these techniques, and how did they become so successful? Truth be told, it's not as difficult as it sounds! This article takes you through the process of building your own custom indicator, which you can use to gain an edge over the competition.

Background

Recall that the theory behind technical analysis states that financial charts take all things into account—that is, all fundamental and environmental factors. The theory goes on to state that these charts display elements of psychology that can be interpreted via technical indicators.

To better understand this, let's look at an example. Fibonacci retracementsare derived from a mathematical sequence: 1, 1, 2, 3, 5, 8, 13 and so on. We can see that the current number is the sum of the previous two numbers. What does this have to do with the markets? Well, it turns out that these retracement levels (33%, 50%, 66%) influence traders'decisions to such an extent that the levels have become a set of psychological support and resistance levels. The idea is that, by finding these points on charts, one can predict the future directions of price movements.

Components of an Indicator

All indicators are created to predict where a price is headed when a certain condition is present. Traders try to predict two basic things:

  • Support and resistance levels:These are important because they are the areas at which prices reverse direction.
  • Time:This is important because you need to be able to predict when price movements will occur.

Occasionally, indicators predict these two factors directly—as is the case with Bollinger Bandsor Elliott's waves—but indicators commonly have a set of rules enacted in order to issue a prediction.

For example, when using the breadth thrust indicator (which is represented by a line indicating momentum levels), we need to know which levels are relevant. The indicator itself is simply a line. The breadth thrust indicator looks similar to RSI, in that it is "range-bound," and it is used to gauge the momentum of price movements. When the line is in the median zone, there is little momentum. When it rises into the upper zone, we know that there is increased momentum and vice versa. One could look to take a long position when the momentum is on the rise from low levels and look to short after the momentum peaks at a high level. It is important to set rules to interpret the meaning of an indicator's movements in order to make them useful.

With this in mind, let's look at ways of creating predictions. There are two main types of indicators: unique indicators and hybrid indicators. Unique indicators can be developed only with core elements of chart analysis, while hybrid indicators can use a combination of core elements and existing indicators.

Components of Unique Indicators

Unique indicators are based on inherent aspects of charts and mathematical functions. Here are two of the most common components:

1. Patterns

Patterns are simply repeating price sequences apparent over the course of a given time period. Many indicators use patterns to represent probable future price movements. For example, Elliott Wave theory is based on the premise that all prices move in a certain pattern that is simplified in the following example:

How to Build a Trading Indicator (1)

There are many other simple patterns that traders use to identify areas of price movement within cycles. Some of these include triangles, wedges, and rectangles.

These types of patterns can be identified within charts simply by looking at them; however, computers offer a much faster way to accomplish this task. Computer applications and services provide the ability to locate automatically such patterns.

2. Mathematical Functions

Mathematical functions can range from price averaging to more complex functions based on volume and other measures. For example, Bollinger Bandsare simply fixed percentages above and below a moving average. This mathematical function gives a clear price channel showing support and resistance levels.

Components of Hybrid Indicators

Hybrid indicators use a combination of existing indicators and can be thought of as simplistic trading systems. There are countless ways in which elements can be combined to form valid indicators. Here's an example of the MA crossover:

This hybrid indicator utilizes several different indicators including three instances of the moving averages. One must first draw the three-, seven-and 20-day moving averages based on the price history. The rule then looks for a crossover in order to buy the security or a cross-under in order to sell. This system indicates a level at which price movement can be expectedand provides a reasonable way to estimate when this will occur (as the lines draw closer together). Here's what it might look like:

How to Build a Trading Indicator (2)

Creating an Indicator

A trader can create an indicator by following several simple steps:

  1. Determine the type of indicator you wish to build: unique or hybrid.
  2. Determine the components to be included in your indicator.
  3. Create a set of rules (if necessary) to govern when and where price movements should be expected to occur.
  4. Test your indicator in the real market through backtesting or paper trading.
  5. If it produces good returns, put it into use.

An Example

Suppose we want to create an indicator that measures one of the most basic elements of the markets: price swings. The goal of our indicator is to predict future price movements based on this swing pattern.

Step 1:

We look to develop a unique indicator using two core elements, a pattern and math functions.

Step 2:

Looking at weekly charts of company XYZ's stock, we notice some basic swings between bullishness and bearishness that each last about five days. As our indicator is to measure price swings, we should be interested in patterns to define the swingand a mathematical function, price averages, to define the scope of these swings.

Step 3:

Now we need to define the rules that govern these elements. The patterns are the easiest to define: they are simply bullish and bearish patterns that alternate every five or so days. To create an average, we take a sample of the duration of upward trends and a sample of the duration of downward trends. Our end result should be an expected time period for these moves to occur. To define the scope of the swings, we use a relatively high and a relative low, and we set these at the high and low of the weekly chart. Next, to create a projection of the current incline/decline based on past inclines/declines, we simply average the total inclines/declines and predict the same measured moves (+/-) occur in the future. The direction and duration of the move, again, is determined by the pattern.

Step 4:

We take this strategy and test it manually, or use software to plot it and create signals. We find that it can successfully return 5% per swing (every five days).

Step 5:

Finally, we go live with this concept and trade with real money.

Bottom Line

Building your own indicator involves taking a deeper look into technical analysisand then developing these basic components into something unique. Ultimately, the aim is to gain an edge over other traders. Just look at Ralph Nelson Elliott or W. D. Gann. Their successful indicators gave them not only a trading edge but also popularity and notoriety within financial circles worldwide.

How to Build a Trading Indicator (2024)

FAQs

Is trading without indicators profitable? ›

Many traders choose to trade without using any indicators, instead, relying on the price action analysis. This can be a successful approach that will fetch you a whole lot of money in the financial market.

Can you be a profitable trader using indicators? ›

Quite a large number of indicators and the long time period of their usage provide opportunities for creating profitable and successful trading strategies.

What is the holy grail strategy indicator? ›

The Holy Grail is a trading setup that makes use of the ADX indicator to identify strong trends before trading a pullback to the moving average. The Holy Grail is, of course, not the Holy Grail. Linda Bradford Raschke and Larry Connors named it so for its simplicity.

What is the easiest indicator for trading? ›

The Relative Strength Index or RSI is an oscillator that is simple and helpful in its application. Oscillators like the RSI help you determine when a currency is overbought or oversold, so a reversal is likely. For those who like to 'buy low and sell high', the RSI may be the right indicator for you.

What is the most accurate indicator for day trading? ›

VWAP, or volume-weighted average price, is perhaps the single most widely-used technical indicator among day traders. VWAP is useful because it looks at both price and trading volume. VWAP is calculated by finding the average price of an asset over a given period and multiplying by the trading volume over that period.

Which indicator gives buy and sell signals? ›

Stochastics are a favored technical indicator because they are easy to understand and have a relatively high degree of accuracy. It falls into the class of technical indicators known as oscillators. The indicator provides buy and sell signals for traders to enter or exit positions based on momentum.

How to guess market direction? ›

After-hours trading commonly helps indicate the next day's open. Extended-hours trading in stocks takes place on electronic markets known as ECNs before the financial markets open for the day, as well as after they close. This activity can help investors predict the open market direction.

Can I use ChatGPT for trading? ›

Although the ChatGPT model won't make investment or trading decisions for you, it can definitely help you in the process. Using ChatGPT for stock trading not only simplifies the process of analyzing complex financial data, but also makes it accessible to traders of all levels of experience.

Can ChatGPT create a trading strategy? ›

Personalized Trading Strategies

A trader, for example, may enter their risk tolerance, favorite assets, and desired holding term. ChatGPT might then provide strategies based on the trader's objectives, taking into account elements such as technical indications, historical data, and market sentiment.

Can I create indicator in TradingView? ›

Setting Up Your TradingView Account

The Chart tab is where you'll spend time analyzing price charts from global markets. The Pine Editor is where we'll code the indicator script. With your account created and the platform explored, you now have everything needed to start coding a custom indicator.

Can you create your own indicator in TradingView? ›

Setting Up Your TradingView Account

The Chart tab is where you'll spend time analyzing price charts from global markets. The Pine Editor is where we'll code the indicator script. With your account created and the platform explored, you now have everything needed to start coding a custom indicator.

Can I create my own trading algorithm? ›

If you choose to create an algorithm be aware of how time, financial and market constraints may affect your strategy, and plan accordingly. Turn a current strategy into a rule-based one, which can be more easily programed, or select a quantitative method that has already been tested and researched.

Top Articles
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6157

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.