AutoAD Examples, Tips and Suggestions

Contents

  • Brief Introduction to Algorithmic Trading

  • Example Preconditions

  • Example Strategies

  1. Simple Trend Follower

  2. Current Chart Trend Follower

  3. Current Chart Trend Follower with Stop Loss

  4. S&P and Current Chart Roller

  5. S&P, Volatility & Internals

  6. The American Lunchtime Permabear

  7. NDX VWAP Scalper

  8. Crypto Mean Reverting Scalper

  9. Rolling Trend Follower with ATR Trailing Stop Loss

  10. S&P and Volatility Divergence

Brief Introduction to Algorithmic Trading

AutoAD is a tool for building automated trading strategies in TradingView. If you’re familiar with algo trading, please excuse all the disclaimers. If you are new to the world of quantitative trading, it is recommended that you do some research before designing your strategy. These are a few things we recommend understanding before running an automated trading strategy:

Below are some examples of ways you could use AutoAD. But first, here is an example backtest guilty of overfitting, survivorship bias, and compounding… So you don’t have to:

Example Preconditions

All results on this page are using the default strategy conditions which come with AutoAD. Those conditions are:

  • All settings and trade conditions refer to long trades. Short trades are reversed. More details about this are in the user guide.

  • $1,000,000 starting account balance.

  • Every trade uses $1,000,000. It will never be more or less than this until the account balance reaches 0. Using a flat nominal number gives reliable results and is more easily understood when looking at the profit factor and average trade percent statistics. This is to avoid compounding and unrealistic results. It’s okay to use a percentage of your account size so long as the percent used is low. What “low” means will depend on the volatility of the symbol you’re trading.

  • No pyramiding.

  • Commissions and slippage are both set to 0. In reality, commissions and slippage will negatively affect every strategy you ever run. They make high frequency trading impossible for retail traders and can cause an otherwise great strategy to fail miserably if not considered. They are both disabled here because slippage and commissions are impacted by many variables, such as the trader’s position sizing, the brokerage commission fees and, the bid/ask spread of the symbol being traded etc. The more trades you make, the more these factors will kill your strategy. The example strategies here will aim to minimize the total number of trades where possible to be more suitable for smaller position sizes.

  • All settings are set to their defaults unless otherwise specified. The settings menu is large and it would waste screen space to share all of the unused settings for each example, so the images of the settings have been cropped so that you only see the important stuff.

  • You have read and understand the user guide to the best of your ability. Otherwise, have it at the ready so that the core functionality need not be explained twice.

Screenshot of auto backtesting report showing net profit, total closed trades, percent profitable, profit factor, max drawdown, average trade, and average bars in trades, with charts of equity and drawdown over time.

Technimentals strongly recommends that you understand why this result is unrealistic before using any automated trading strategy with real money.

AutoAD has been designed to make trading decisions based upon the performance of user defined groups of symbols with different user defined weights. The weights used will often be based upon data which is constantly changing and must be kept up to date, for example when using the 11 subsectors of the S&P. When backtesting, the weights applied to the symbols will be used for the entirety of the backtest, regardless of whether or not those weights were correct at that moment in history. So, when you’re testing groups of symbols with unevenly distributed weights, the further back your backtests go, the less reliable the results will be. For this reason, we suggest that you run these backtests across a wide variety of (uncorrelated if possible and if that makes sense in your strategy) symbols when possible and do not test these types of strategies further back than a year or two without seriously mistrusting the results. When running AutoAD live, make sure to update the weights and restart the bot as necessary according to your strategy.

Due to the limitations of backtesting strategies in TradingView which are based upon ever shifting weights to any great scale, strategy design is for us even more important. Well funded automated trading firms have the ability to use supercomputers and machine learning to help make decisions using vast data sets. Oftentimes, they will not (or need to) understand why their strategy works. Retail traders do not have this luxury. Basically, your strategies should make sense.

  1. Basic S&P Trend Follower

This strategy uses the S&P preset, which uses the 11 S&P subsectors. It’s using the Weighted S&P AD. It will not trade in the first 30 minutes of the day, hopefully to avoid being chopped up. It will go long and short and will swing trades overnight.

Because a preset is used in the “Weighted AD Type” setting, the S&P AD is set to group 1. In the AD settings, AD 1 is set to be weighted and cumulative, AD 2 is set to be unweighted (equally weighted) and cumulative. AD 3 is set to be non-cumulative and weighted. If you don’t know what that means, read this.

There are technically three entry trade conditions for this strategy, but in reality, there are four. This is because the strategy will not enter into a new trade if the stop loss conditions are true. The entry trade conditions are:

  • AD 1 (the weighted S&P AD) must be greater than 1000 to enter into long trades (the S&P according to it’s subcomponents, weighted, should be greater than 1%) or must be less than -1000 to enter into short trades.

  • AD 1 (weighted) must be greater than AD 2 (unweighted) for long trades. For short trades, the weighted must be below the unweighted. The weighted sectors must lead the move.

  • AD 3 (the non-cumulative weighted AD) should be negative for long trades and positive for short trades. Basically, this condition waits for pullbacks.

  • The current price of the chart the strategy has been applied to must be below (or above for shorts) the midpoint of the day. The midpoint is the half way point between the high and low of the day. This functions as a trailing stop loss.

There is technically one exit trade conditions, however, the entry trade conditions cannot be true if the strategy is going to exit out of a trade. So, in reality, there are four exit trade conditions. They are the inverse of the conditions above. Basically, the first three conditions cannot be true and the chart must be below i't’s midpoint to exit out of a long trade. It must be above the midpoint to exit out of a long trade.

The reason why 1% is used in the first entry trade condition is because when the weights of a group total 100, AutoAD will produce numbers which equal about 1000 times the total percentage move of the group. So, if all of the constituents of a group (and therefore the AD to which the group is applied) move higher by 1% from the start of the accumulation period, AutoAD will read 1000 for this AD, weighted or unweighted (because in this example, it would be the same).

A screen displaying a trading algorithm configuration with settings for weighted AD type, main reset time, restricted entry trade hours, trade conditions, AD reset times, and stop loss parameters.
A stock trading chart for the SPDR S&P 500 ETF Trust, displaying price movements, buy and sell signals, performance metrics, and trading statistics over a period of several weeks.
A stock trading chart for Tesla, Inc., displaying time on the x-axis and stock price on the y-axis. It includes annotations for trading signals such as 'Long', 'Short', and significance marks. The chart shows various technical indicators, profit and loss data, and trading performance metrics, with a dark background and colorful lines and markers.

This is a good result. Because the strategy was profitable on the SPY over this period, it stands to reason that any symbol which is highly correlated with the SPY and also has more volatility is likely to perform even better. One of the most volatile and also highly correlated symbols with the SPY is TSLA. When using the S&P AD, it makes sense to apply the data to assets which are not only in the S&P, but also in as many other correlated American ETFs as possible.

Compare the shape of the return on investment graph for both tests. You’ll see that they are basically the same shape, but TSLA’s net profit is a lot higher. That’s because TSLA usually moves in the same direction as the SPY and the entry and exit times will have occurred at very similar times on both backtests. The only condition which uses the chart which the strategy is applied to is the midpoint based stop loss. Below are some more ROI graphs using the same timeframe and settings without the charts to save space.

Financial trading chart showing equity and drawdown over trades with profit, number of trades, and max drawdown highlighted.

AMZN:

AAPL:

Screenshot of a trading dashboard showing performance summary with net profit of $114,954.71, 74 closed trades, 48.65% profit rate, profit factor of 1.252, max drawdown of $14,239.57, average trade profit of $1,553.44, and 35 average bars per trade. The chart displays equity (blue) and drawdown (red) over time.

QQQ:

Screenshot of a trading performance dashboard showing net profit of $179,196.62, 69 closed trades, 49.28% profitable trades, and an average of 38 bars per trade. Features a graph of equity and max drawdown over time, with labels for drawdown and equity.

2. Current Chart Trend Follower

This strategy doesn’t use any groups of symbols; it’s trade conditions are only based on the chart which the strategy is applied to. In this instance, the AD will track the performance of the chart, excluding gaps. Just like the other Weighted ADs, the accumulation resets at the market open.

By using the ‘Custom’ choice from ‘Weighted AD Type’; AD 4 is set to the current chart, cumulative. There is only one trade condition used here - the chart’s AD must be greater than (or less than for shorts) 1000 (+/- 1% from the open).

The settings you see are the settings which are enabled and used - no other trade conditions are used. That means, trades are only ever made when the chart moves at least 1% from the open. That means, if you’re in a long trade and the chart declines by 0.5% every day, never dropping more than 1% from the open on any single day, the losing trade will never exit. You must make sure that you’re closely following any automated strategy if it doesn’t use stop losses, such as this one.

The plots for AD 1 to AD 3 have been disabled in the ‘Style’ tab of the settings menu. AD 4 has been enabled in white.

Screenshot of trading settings interface with options for trade type, reset time, trade restrictions, trade direction, hold overnight, current status, and entry conditions.
Stock chart showing Invesco QQQ Trust performance from late June to early August, with buy and sell signals marked, and a performance summary below with profit details, total trades, and drawdown statistics.

Looks great! Let’s try it on TSLA:

A financial trading performance dashboard showing net profit of $908,793.76, 183 closed trades, 44.26% profit percentage, 1.336 profit factor, $277,944.29 max drawdown, $4,966.09 average trade, and 111 average bars in trades. Graph displaying equity (blue) and drawdown (red), with labels and trend lines.

At first glance, this looks great. However, the 26% drawdown is a big red flag. It may seem easy to tolerate when compared with a 90% net profit, but if your strategy immediately lost 26%, wouldn’t it seem sensible to turn it off?

SPY:

Trading performance dashboard showing profit, number of closed trades, profit percentage, profit factor, max drawdown, average trade, and average bars in trades with graphs of equity and drawdown over time.

This is bad.

FB / META:

Dashboard of trading performance showing net profit, total closed trades, profit percentage, profit factor, maximum drawdown, average trade, and average number of bars in trades with chart of equity and drawdown over time.

MSFT:

Trading performance dashboard displaying net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, and average number of bars in trades, with a chart showing equity and drawdown over 111 closed trades.

Next, a stop loss will be added to this strategy to see if it will improve.

3. Current Chart Trend Follower with Stop Loss

For this strategy, the stop loss will be the open price of the day. So, in addition to the previous example:

  • Long trades will now be stopped out if the price drops back below the open

  • Short trades will now be stopped out if the price climbs back above the open

By adding this condition, drawdowns may be reduced, but the total number of trades will be increased.

Screenshot of a trading platform settings page showing parameters for custom trading times, trade restrictions, and stop-loss conditions.
Stock trading chart for Invesco QQQ Trust, Series 1, NASDAQ, showing price movements with buy and sell signals, indicators, and performance statistics.

TSLA:

Line graph showing trading performance data with equity in blue and drawdown in red, over a series of trades, with performance statistics at the top, including net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, and average number of bars in trades.

SPY:

Trading dashboard showing net profit of $55,995.69, 100 closed trades, 45% profitable, profit factor of 1.116, max drawdown of $88,008.63, average trade profit of $559.96, 49 trades, and 49 bars in trades. Graph displays equity (blue) and drawdown (red).

META:

Financial chart showing performance metrics of a trading account, including net profit of $228,124.88, 241 closed trades, 39% profitable trades, profit factor of 1.12, maximum drawdown of $203,742.18, average trade of $946.58, and an average of 58 bars per trade. The chart displays equity (blue) and drawdown (red) over time.
Screenshot of a trading performance dashboard showing net profit, total closed trades, percent profitable, profit factor, max drawdown, average trade, and average bars in trades with line graphs for equity and drawdown over time.

MSFT:

4. S&P and Current Chart Roller

In this example, rolling will be applied on both the Weighted S&P AD and also on the current chart. Most of the same basic settings are applied.

AD 1 and AD 2 are set to the Weighted S&P AD. AD 3 and AD 4 are set to the current chart.

Rolling 1 (set here to 1 day of data) is applied to AD 1 and AD 3. Rolling 2 (set here to 2 days worth of data) is applied to AD 2 and 4.

Long trades will be entered when all four ADs are positive. So, when both the S&P and the current chart are positive (excluding gaps) over the last 24 and 48 hours, long trades will be entered.

Short trades will be entered when all four ADs are negative; when both the S&P and current chart are negative (excluding gaps) over the last 24 and 48 hours.

No stop loss is used. If there is a strong correlation between the S&P and the symbol this strategy is applied to, it will not remain in losing trades indefinitely.

In the following chart:

  • AD 1 is plotted as yellow circles

  • AD 2 is plotted as blue circles

  • AD 3 is plotted as a red line

  • AD 4 is plotted as a white line

When the S&P AD is applied to the SPY, there is (as there should be) a strong correlation between the S&P AD and the current chart’s AD.

Screenshot of a trading configuration screen with settings for weighted AD type, trade limits, reset times, trade conditions, rolling lengths, and ad settings.
A trading chart showing the SPDR S&P 500 ETF Trust price movements over time, with several technical analysis indicators, including AutoAD and strategy tester data, including profit, trades, and drawdown details.

QQQ:

A trading performance dashboard showing net profit of $118,909.15, 33 trades, 42.42% profitable trades, and a profit factor of 1.324. The maximum drawdown is $116,900.67. The graph displays equity and drawdown over time, with the blue line representing equity and the red line representing drawdown.

TSLA:

A financial trading dashboard showing performance metrics and a graph of equity and drawdown over time. Key stats include net profit of $1,309,835.96, 23 closed trades, 69.57% profitability, and a max drawdown of $166,364.70.

AMZN:

Screenshot of an auto trading platform showing a performance overview with net profit of $516,364.67, 21 closed trades, 61.9% profitable trades, profit factor of 2.201, max drawdown of $252,143.63, average trade profit of $24,588.79, and 853 trades on average. Graph displays equity and drawdown over time.

ADBE:

A financial dashboard displaying performance metrics of trading activity with a graph showing declining buy and hold equity, net profit of -$43,3024.87, total 25 trades, 28% profitable trades, profit factor 0.45, max drawdown of $530,669.34, average trade loss of -$17,320.99, and 716 average bars in trades, with a toggle for deep backtesting in beta.

5. S&P, Volatility & Internals

This strategy uses the Weighted S&P AD, UVXY to gauge volatility and the internal symbols TICK and ADD.

The Weighted AD Type setting is set to Custom as the strategy will use two groups. 5 trades per day has been set as an arbitrary maximum.

For this example, as per the Trade Direction setting, the strategy will only enter into long trades. Short trade conditions shall be used to exit positions instead of entering into short trades.

Because ‘Hold Overnight’ has been set to ‘None’, any open position will be exited on the first candle after 15:30.

The first 11 symbols have been set to group 1 to build the Weighted S&P AD. Symbol 22 has been set to the UVXY. Because this symbol is in a group by itself, the weight has been set to 100% so that it’s output will equal about 1000 for a 1% move.

AD 1 has been set to Group 1; weighted and cumulative.

AD 2 has been set to Group 2; weighted (although this makes no difference to unweighted because AD 2 consists of only one symbol) and cumulative.

Both ADs use the standard 9:30 to 16:00 New York time for US symbols.

For this long only strategy, the entry trade conditions are:

  1. AD 1 (The Weighted S&P AD) must be positive on the day, measured from the open.

  2. AD 2 (The UVXY) must be negative on the day, measured from the open.

  3. TICK must measure above 100.

  4. ADD must measure above 100.

  5. The symbol which the strategy is applied to (the current chart) must be above it’s opening price. (This is the inverse of the stop loss condition.)

The closing conditions of the strategy are:

  1. None of the first four entry trade conditions can be true.

  2. The symbol which the strategy is applied to must be below it’s opening price of the day.

In the examples below the ‘buy and hold’ performance has been included on the performance chart as a white line. For those who are familiar with the SPY’s chart over this time, you’ll see that in the first example, the strategy’s performance closely resembles the SPY’s chart. That’s because the entry conditions selected result in relatively frequent long exposure. Notice that this strategy, while only going long, was able to outperform the SPY during a time when the SPY lost about 5%. Whether or not using this strategy would have actually outperformed the SPY depends on slippage and commissions. Generally the spread on the SPY is very tight, but commissions will still play a large role for those with smaller accounts and may render this strategy ineffective.

Notice the relative performance of this strategy compared to ‘buy and hold’ in the examples below. Only going long during a bear market is playing the game on hard mode.

For those who are interested, this same strategy with ‘Hold Overnight’ enabled had a loss of 2% but still outperformed SPY over this duration.

Screenshot of a custom trading system interface with settings for trade timing, symbols, weights, and conditions.
Stock trading chart for SPDR S&P 500 ETF Trust showing price movements, signals, and performance metrics.

QQQ:

Line graph showing trading performance with net profit of $84,128.56, 234 closed trades, 35.04% profitability, profit factor of 1.148, max drawdown of $120,943.60, average trade profit of $359.52, and an average of 27 bars per trade.

TSLA:

Financial trading dashboard showing net profit, total closed trades, percent profitable, profit factor, max drawdown, average trade, and average number of bars in trades, with graphs of drawdown and equity over time.

AMZN:

Financial trading dashboard showing net profit of $253,482.90, 201 closed trades, 35.32% profitability, profit factor of 1.417, max drawdown of $80,536, and average trade profit of $1,261.11. The chart depicts equity and drawdown over 200 trades.

ADBE:

Line graph showing trading performance with net profit, total closed trades, profit percentage, profit factor, max drawdown, and average trade over 232 trades.

ROKU:

A trading performance chart showing net profit of nearly negative $3 million, 207 closed trades, 25.6% profitable trades, profit factor of 0.82, max drawdown of $600,140.29, average loss of $1,443.86, and average 24 bars in trades, with equity and buy & hold equity lines displayed.

In the example below, the symbol of the chart is BTCUSD. Because the strategy will exit any trade before the US market close, this will only trade during the US stock market’s cash session.

A trading dashboard displaying Bitcoin (BTC) price movements and trading strategy analysis. The top section shows a candlestick chart with trend indicators, while the middle section displays an AutoADI indicator graph. The bottom section presents a performance summary with net profit, total closed trades, profit percentage, and drawdown details.

6. The American Lunchtime Permabear

In this simple strategy, a wild man with a hunch that the market will crash any day now shorts the market at the same time each day during his admirably long lunch break.

Short trades are entered at 10:45 and closed at 13:00.

The only trade condition which this strategy uses is that TICK must be below an impossibly high number to enter into a trade. All of the other conditions come from the time restrictions placed on the strategy in the primary trade conditions at the top of the settings menu. All other conditions are disabled. No groups or ADs are used.

The irrelevant plots have been disabled. As you can hopefully see, the indicator doesn’t show anything. What’s there to show?

Screenshot of trading settings showing custom ad type, main reset time, restricted entry trades time, trade direction as short, no hold overnight, and USI: TICK indicator with a value greater than 99,999,999.
Stock chart of the SPDR S&P 500 ETF Trust showing trading activity from mid-June to early August, with buy and sell signals marked by arrows, and detailed trading statistics below.

DOGEUSD:

Line chart showing trading performance over time with net profit of $116,015.84, 75 closed trades, 49.33% profitable, profit factor 1.175, max drawdown $20,316.48, and 75 trades on average. Multiple lines indicate drawdown, equity, buy & hold equity in different colors.

NKLA:

Financial performance graph showing net profit of $305,646.48, 260 closed trades, 54.62% profitable, profit factor 1.168, max drawdown of $223,591.93, average trade of $1,175.56, with related performance metrics and trade data over a timeline. The chart includes lines representing drawdown and equity.

XAUUSD:

A financial trading performance graph showing net profit of $23,648.41, 75 closed trades, and an 58.67% profitability rate. The chart includes metrics like profit factor, max drawdown of $27,367.85, average trade profit, and average number of bars per trade, with lines indicating drawdown and equity over time.

KDP:

Financial trading chart displaying drawdown and equity over time, with key metrics including net profit of -$113,877.69, 260 closed trades, 41.92% profitability, profit factor of 0.812, maximum drawdown of -$437.99, 28 average bars in trades, and total trade count of 260.

7. NDX VWAP Scalper

This strategy uses the Weighted NDX AD for it’s entries and will close 10 candlesticks after the most recent entry. In these examples it will be ran on the 1m timeframe over the last three months or so. Because it’s using the NDX preset, it’s suggested to apply this strategy to constituents of the NDX or assets which are highly correlated with the NDX.

Because the VWAP which is referenced in trade conditions will always be from the previous candlestick, the first candlestick of the day will reference the last candlestick of the previous day. For that reason, the first candlestick of the day is excluded from the trade conditions by using the 1 minute timeframe and restricting entry trades until 09:31. VWAP has been added to the example chart as a separate indicator for visual clarity.

The strategy will go both long and short. It will exit trades 15 minutes before the close.

Because the Weighted AD Type is ‘NDX AD’, group 1 is set to the top 38 NDX stocks. AD 1 is set to group 1, weighted and non-cumulative.

The entry conditions for long trades are:

  1. AD 1 (Weighted non-cumulative NDX AD) must be positive

  2. The low of the most recent candlestick must be below the VWAP

  3. The close of the most recent candlestick must be above the VWAP

The entry conditions for short trades are:

  1. AD 1 must be negative

  2. The high of the most recent candlestick must be above the VWAP

  3. The close of hte most recent candlestick must be below the VWAP

The closing trade conditions are:

  1. 10 candlesticks have passed since the last trade was entered

    or

  2. The time is 15:45

Screenshot of trade setup settings for a trading platform, including trade type, reset times, entry restrictions, trade conditions, and exit settings.
Stock trading chart for Invesco QQQ Trust on TradingView, showing price movements, buy/sell signals, volume bars, and backtesting data.

TSLA:

Screenshot of an trading dashboard showing net profit, total closed trades, percent profitable, profit factor, and max drawdown, along with performance graphs for drawdown, equity, and buy & hold equity.
Digital trading dashboard showing net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, and number of trades with line graphs for drawdown and equity.
Financial trading performance chart showing net profit, total closed trades, percentage profitable, profit factor, max drawdown, average trade value, and average bars in trades, with trend lines for drawdown, equity, and buy & hold equity.

GOOGL:

ADBE:

SQ:

A trading dashboard showing a performance summary with net profit of $525,249.42, 697 closed trades, 36.59% profitability, profit factor of 1.331, maximum drawdown of $91098.25, average trade of $753.59, and 7 average bars in trades. The graph displays drawdown and equity over time.

SHOP:

Financial trading chart showing net profit of $604,567.40, 581 closed trades, 37.01% profitable trades, profit factor of 1.414, max drawdown of $71,466.69, average trade of $1,040.56, 7 average bars in trades, with equity and trade data displayed in a graph.

COIN:

Trading performance chart showing net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade value, and average bars in trades over a series of trades.

8. Crypto Mean Reverting Scalper

This strategy uses the Crypto B preset and is designed for scalping cryptocurrencies. Due to the very high frequency of trades this strategy makes, this may not be useful on many crypto exchanges with high fees or on cryptos with high slippage. One workaround for this is to apply it to a higher timeframe.

The strategy will trade both long and short with no entry time restrictions. Because Crypto Preset B has been used, only group 1 will be used. Note that AD 1 is cumulative and the session period is set to 00:00-00:00. This means that the accumulation will occur 24/7. This is an essential step for accumulating data 24/7 when trading cryptocurrencies. The accumulation will reset at the stock market’s cash open, at 09:30. You may prefer to reset the clock at midnight instead.

The long entry trade conditions are:

  1. AD 1 (Weighted Crypto AD Preset B, cumulative) must be below -2000 (-2%)

  2. AD 2 (Weighted Crypto AD Preset B, non-cumulative) must be below -100 (-0.1%) - this means that on the most recent candlestick, AD 2 should be down at least 0.1%

The long closing trade condition is that the close must be above the midpoint of the most recent candlestick (high + low)/2. This basically means that the strategy will close on the next 1 candlestick bounce.

The short entry trade conditions are:

  1. AD 1 (cumulative) must be above 2000 (2%)

  2. AD 2 (non-cumulative) must be above 100 (0.1%)

The short closing trade condition is that the close must be below the midpoint of the most recent candlestick.

Screen displaying options for cryptocurrency trading bot configuration including ad types, trade limits, time settings, trade direction, hold overnight, main trade conditions, reset times, and stop-loss or exit criteria.
Bitcoin price chart showing trading activity on Binance with candlesticks, volume bars, and performance metrics. Key points labeled with 'Short' or 'x' indicating trade signals, with price levels on the side and a timeline at the bottom.

Short term scalping on short timeframes can be alluring, but it comes with important considerations, especially with this strategy’s stop loss condition:

  1. Comissions and slippage

  2. Gaps on small timeframes. A rule of thumb when trading is, if you see loads of gaps (and you’re not on a time sessioned daily chart), use a higher timeframe. In this strategy, the same rule applies. We’re using (high-low)/2 which assumes that the high and the low actually represent the high and low of that unit of time. If you’re seeing gaps in chart, then the highs and lows aren’t truly representing what that unit of time should be for our needs.

  3. This strategy uses the fixed nominal 0.1% per candlestick for it’s entries. A 1 minute timeframe is unlikely to produce many of those. A number like this should be suited to the timeframe the strategy is being applied to. A quantitative solution to this problem would be to use ATR.

Unless you don’t pay any commisions and can somehow get around slippage, don’t bother trying to use this strategy on a 1m timeframe.

BTCUSD (binance’s data) on the 10m:

A trading performance chart showing net profit of over 3 million dollars, 1147 closed trades, 59.72% profitable trades, and a profit factor of 1.168. The chart depicts drawdown at 250,204.71 dollars, equity, buy & hold equity, and trade activity over multiple trades.
Stock trading performance dashboard showing net profit, total closed trades, percent profitable, profit factor, max drawdown, average trade, and average number of bars in trades. Line graphs depict buy & hold equity and other metrics over time.

BTCUSD 15m:

Financial trading dashboard showing net profit of $4,895,822.10, 1,359 closed trades, 63.72% profitable trades, profit factor of 1.177, max drawdown of $223,070.05, average trade profit of $360.25, and 3 bars in trades. Chart displays equity and drawdown over time.

BTCUSD 20m:

BTCUSD 30m:

Trading performance chart showing net profit of $134,434.67, 66% profitable trades, maximum drawdown of $313,055.78, average trade value of $606.93, with graphs of equity, buy & hold equity, and drawdown over time.

This looks too good, so let’s add in Binance’s 0.1% commission: (Notice that the average trade above only makes 0.06%!)

A trading performance dashboard showing net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, and average number of bars in trades, with line graphs representing drawdown, equity, and buy & hold equity over trades.

Not all hope is lost however, as Binance does offer commission free spot trading for the following pairs; BTC/AUD, BTC/BIDR, BTC/BRL, BTC/BUSD, BTC/EUR, BTC/GBP, BTC/RUB, BTC/TRY, BTC/TUSD, BTC/UAH, BTC/USDC, BTC/USDP and BTC/USDT. These will come with their own considerations. Also note that you can’t use margin when spot trading, so no shorts allowed!

9. Rolling Trend Follower with ATR Trailing Stop Loss

This strategy uses all four rolling settings for entries and uses a wide ATR trailing stop loss in an attempt to stop major drawdowns.

The entry trade conditions for long trades are:

  • The cumulative performance of the chosen Weighted AD Type over the last 24, 48, 72 and 96 hours must all be positive.

  • The close of the most recent candlestick must be below the open.

The entry trade conditions for short trades are:

  • The cumulative performance of the chosen Weighted AD Type over the last 24, 48, 72 and 96 hours must all be negative.

  • The close of the most recent candlestick must be above the open.

The closing trade condition is an ATR based trailing stop loss of 10 times the ATR of the previous 1000 candlesticks.

Notice the returns graph on these charts. The hourly backtest on crypto has included a hugely volatile market, which is where trend following algorithms do the best. While the crypto market has been going sideways, this strategy has not made any progress.

ETHUSD:

Screenshot of a trading platform or software interface displaying settings for automated trading of cryptocurrencies, with options for trade conditions, durations, and trade volume.
A cryptocurrency trading chart focusing on Bitcoin (BTCUSD) over a few months, showing buy and sell signals with marked 'Long' and 'Short' positions, alongside performance metrics such as net profit, total trades, and profit percentage in a strategy testing interface.
Screenshot of a trading software dashboard showing profit, trades, and metrics, with a graph comparing equity and drawdown over time.

10. S&P and Volatility Divergence

This strategy uses the Weighted S&P AD with an equally weighted basket of volatility products combined into another AD.

Most of the settings used are default. Group 1 and AD 1 are assigned to the S&P subsectors. Group 2 and AD 2 are assigned to the volatility products as shown in the settings on the right.

The theory behind this strategy is that S&P volatility products and the S&P should generally be inverse, so when they’re not, there may be a tradable divergence. For this strategy, both the S&P AD (group 1) and the volatility AD (group 2) must be negative (for long trades) or positive (for short trades).

The stop loss condition used here is that, for longs, the close of the most recent candlestick must be below the previous day’s open. For shorts, the close of the most recent candlestick must be above the previous day’s open. This results in a trailing stop loss.

Screenshot of a trading platform's user interface displaying settings for a custom trading strategy, including time frames, trade conditions, trade directions, hold times, trade options with specific stock symbols and weights, ad settings for weightings and reset times, and stop-loss conditions.
Financial trading chart displaying SPDR S&P 500 ETF TRUST performance with buy/sell signals, AutoAD indicator, trading summary, total profit, trades, profit percentage, profit factor, max drawdown, average trade, and bars in trades.

QQQ:

Financial trading dashboard displaying net profit, total closed trades, percent profitable, profit factor, max drawdown, average trade, and average number of bars in trades, with a line graph for drawdown and equity over time.

TSLA:

A financial trading chart showing drawdown and equity over time with metrics such as net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, and average number of bars in trades.

META:

Line chart showing trading data with red and blue lines. Red represents drawdown and blue represents equity. Data includes total closed trades, percent profitable, profit factor, max drawdown, and average trade, across 140 trades.

AMZN:

Financial trading chart showing net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, and average bars in trades with lines for drawdown and equity over time.

NVDA:

Financial trading dashboard showing net profit, total closed trades, profit percentage, profit factor, max drawdown, average trade, average bars in trades, and a graph of equity and drawdown over time.