Bitcoin trading strategy using SignalSolver Sentiment

Bitcoin Trading Strategy using SignalSolver Sentiment

This trading strategy for Bitcoin uses SignalSolver Sentiment to generate trading signals. It is currently showing a 22% drawdown, but it has been a good performer overall. Sentiment on any given day is determined by backtesting up to that day, selecting the top algorithms and evaluating the ratio of long to short positions. Sentiment (percentage bullish) is shown as a blue bar-chart on the graph. Trading is performed subsequent to the Sentiment crossing a threshold value.

The Buy and Sell thresholds for this simulation (green and red lines on the time graph) used an adaptive technique every cycle to determine the optimum values, with the constraints Buy+Sell=100% and Buy>Sell. The optimum thresholds settled down pretty quickly to Buy=55% and Sell=45%. Return was $67,966 since 1/1/21 for a $10,000 outlay (CAGR 0f 273%), with Risk-Reward about 680 times that for Short-hold. The simulations assume the ability to both long and short the security, but the table includes both the Long and Short returns

Bitcoin trading using SignalSolver Sentiment with adaptive symmetric thresholds

Bitcoin trading using SignalSolver Sentiment with adaptive symmetric thresholds

In selecting a threshold strategy, you couldn't get into too much trouble since the other two common threshold strategies also showed a profit. Using an adaptive threshold with the Buy=Sell constraint applied returned $25,206 (123% CAGR)--

Bitcoin trading using SignalSolver Sentiment, adaptive equal thresholds

Bitcoin trading using SignalSolver Sentiment, adaptive equal thresholds

Finally applying a simple constant 50% threshold also worked well, returning $40,640 (183% CAGR).  From this image you can view the entire threshold surface, which is  what we like to see--a solid looking structure.

Bitcoin trading using SignalSolver Sentiment with a fixed 50% threshold

Bitcoin trading using SignalSolver Sentiment with a fixed 50% threshold

Settings are shown below:

SignalSolver settings for the Bitcoin Sentiment runs

SignalSolver settings for the Bitcoin Sentiment runs

These are the same settings we used for TQQQ with the only change being that we (somewhat arbitrarily) increased the number of algorithms to 21 (from 5 for TQQQ).  Only OHLC prices and short period (10 day) SMAs and EMAs are used in the backtests.

As with all Sentiment runs, out-of-sample walk-forward simulation is used. Sentiment is determined for a particular day by using the backtester on prior data, in this case using the ratio of the top 21 algorithms' long (bullish) to short (bearish) state. When the sentiment crosses the threshold in either direction, a trade is performed appropriately. In the case of Bitcoin, OHLC prices run from midnight to midnight.

TQQQ trading strategy result

TQQQ Trading Strategy using SignalSolver Sentiment

TQQQ Trading Strategy using SignalSolver Sentiment

Post Updated June 29th 2022

This trading strategy for TQQQ uses SignalSolver Sentiment to generate trading signals.

We are updating the original post using improved settings. Two settings have been changed:

  1. The new post uses a Seek level of 4 instead of 2. So more algorithms are explored (although it takes a little longer)
  2. "A" suffix algorithms (those which buy and sell on the same day) have been excluded

The combined effect of these changes was to double the annualized return from 213% to 425%

Showing sentiment dashboard for the TQQQ run

Trading TQQQ using SignalSolver Sentiment would have yielded 425% annual return

50% Threshold is still the optimum, as you can see from the threshold surface. Additionally, this Sentiment run is 17 trading days further along than the Original Post, in which time the return has increased another 20% or so.

Trading FNGU using TQQQ signals

The signals generated by TQQQ Sentiment have been found to work well for FNGU (and many other symbols also):

Showing the Sentiment Dashboard for FNGU

When traded using TQQQ Sentiment signals, FNGU would have yielded 961% annualized return

This is the same Sentiment profile as generated by TQQQ, but the signals are used to trade FNGU (easy to simulate in SignalSolver, just change the symbol). Here the annualized return was 961%.

The settings for these runs are exactly the same as the Original Post (click below), with the two changes noted above.

Click to view the original post Dated June 2nd 2022

 

This TQQQ trading strategy using SignalSolver Sentiment gave 213% annualized return for the period Jan 4th 2021 to June 2nd 2022. The sentiment threshold was set to 50% for the entire period.

Sentiment run for TQQQ showing 213% Annualized Return

TQQQ Sentiment Run showing 213% Annualized Return. Notice good symmetry and structure on the Threshold Surface.

Settings are shown below:

Settings Tab settings

Settings Tab

Notice that only OHLC prices and short period (10 day) SMAs and EMAs are used in the backtests.

Below are shown the Report Tab settings, notably 240 days of data were used for the backtests, and only percentage band was used (PB).  As with all Sentiment runs, out-of-sample walk-forward simulation is used. Sentiment is determined for a particular day by using the backtester on prior data, using the top 5 algorithms’ long or short state. If the sentiment crosses the 50% threshold in either direction, a trade is performed appropriately.

Report Tab Settings.

Report Tab Settings.

Result tracking for SignalSolver Sentiment

Updates to SignalSolver Sentiment Results

Updates to SignalSolver Sentiment Results

Daily updates of Sentiment for selected symbols

Final Update

The Feb 6th update will be the final one. While the algorithms gave encouraging initial results (annualized returns averaging around 27%), they began to reduce around Nov 2021. In the coming weeks, I will publish the results for the individual constituents on the pages referenced below and also take a look at what could be done differently to improve the longevity of the systems.

Daily updates to the SignalSolver Sentiment results

The %returns shown are the result of actual trading these securities using the SignalSolver Sentiment technique. They are not a backtest result. While backtesting was used to determine the parameters of the algorithms prior to July 16th 2021, since then we have been walking forward with out-of-sample data trading using those parameters. The returns are exactly what any trader would have realized by following the method from July 16th 2021, assuming the published opening prices could have been attained in practice. Also we have not changed the portfolio members subsequent to July 16th.

How we trade

These updates are posted before the market open (the time at which all trades are made) so that you can trade along with us if you wish. Tickers which have just changed sentiment will show as "Turned" and will be need to be traded appropriately at the next open following the date shown. Other tickers ( designated "Bullish" or "Bearish") do not need to be traded as they are already in the appropriate hold state, long or short. We hold long if bullish and short if bearish for each security. We show the equity value from a fixed date, currently July 16th 2021, the date we started actual trading this particular basket of symbols. Note that the July 16th  equity values are not very meaningful because they derive from backtests, but the percentage change in equity to the present is meaningful. The equity curves can be found in the postings:

AAPL, TQQQ, FNGU, SOXL, SQQQ, TECL, FAS, GUSH

Ticker Date: Sentiment Jul-16-2021 Current Return
AAPL 2/4/22:  Bullish $32,323 $28,307 -12.4%
TQQQ 2/4/22:  Bullish $98,781 $64,280 -34.9%
FNGU 2/4/22:  Bullish $444,937 $360,602 -19.0%
SOXL 2/4/22:  Bullish $43,184 $41,468 -4.0%
SQQQ 2/4/22:  Bearish $39,752 $31,459 -20.9%
TECL 2/4/22:  Bullish $36,013 $31,339 -13.0%
FAS 2/4/22:  Bearish $38,983 $37,649 -3.4%
GUSH 2/4/22:  Bullish $100,476 $84,337 -16.1%
Average: -15.5%

TECL Trading Strategy Using SignalSolver Sentiment

TECL trading using SignalSolver Sentiment

A sentiment driven trading strategy with adaptive thresholds

Methodology

Sentiment is usually based on a consensus of opinions of expert humans, however SignalSolver sentiment is the consensus opinion of multiple backtest algorithms. In the same vein as the previous few posts, this is a TECL trading strategy using SignalSolver sentiment using an adaptive threshold. For a full explanation of the SignalSolver sentiment methodology and how to interpret the simulation results, please click here.

TECL Equity curve using adaptive threshold

TECL Equity curve using adaptive threshold

The adaptive threshold technique examines the thresholds surface every 5 trading days (configurable) and re-optimizes the thresholds accordingly. The threshold is currently at 25% but this could change as we move forward. The buy and sell thresholds are constrained to be equal for TECL.

Performance

TECL trading strategy performance, using adaptive threshold

TECL trading strategy performance, using adaptive threshold

The TECL trading strategy using SignalSolver sentiment (L&S column above) has performed just under 2 times better in this simulation than buy-hold in terms of reward/risk,total return, and (CAGR). Drawdown has been around the same as for buy-hold. Just to re-iterate--this is not a backtest result, it is a walk-forward simulation using out-of-sample trading prices.

Below are the threshold surface for the entire window of 7/16/20 through 8/13/21, showing good structure both for the buy=sell constraint, and the entire surface.  Note the peak is at $34,789.

TECL partial threshold surface for equal buy-sell, with a peak currently centered on 25%

Above: TECL partial threshold surface for equal buy-sell with a peak currently centered on 25%

TECL entire threshold surface for the current sentiment profile

Above: TECL entire threshold surface for the current sentiment profile

Click here to see the SignalSolver settings for this strategy: TECL Sentiment Settings

We now move into the paper-trading phase for this project. Updates will be shown below.

Updates

Updates to this strategy and current sentiment can be found here.

FNGU Trading using SignalSolver Sentiment

FNGU trading using SignalSolver Sentiment

Using multiple algorithms to drive trading strategy

Original Post July 27 2021

Sentiment

Sentiment usually refers to an analyst opinion on whether a financial instrument will increase in value (bullish sentiment), or decrease (bearish sentiment). However, in this FNGU trading strategy using SignalSolver sentiment we are combining the opinion of multiple backtest algorithms to derive sentiment.

Methodology

Shown above is the simulated result of trading FNGU using SignalSolver Sentiment. The sentiment is the blue area chart in the background. The equity curve for the strategy is shown in yellow, buy-hold equity in white. Sentiment is calculated each day after the close of business by assessing what percentage of the top 10 SignalSolver backtest algorithms are bullish. The top 10 are selected by sorting the 139 algorithms each day according to performance. The buy and sell thresholds are fixed at 50% (red line) with bullish being above the threshold. A trade is executed at the next open whenever sentiment crosses this threshold, so the trade price is always out-of-sample from the backtest period which is fixed at 250 trading days. The simulation then walks forward to the next day, repetitively. Algorithms are flushed and refreshed every 3 months and re-parameterized at the end of each month

Performance

Trading on sentiment (L&S column above) performed around nine times better in this simulation than buy-hold in terms of reward/risk, with annualized return (CAGR) being around 6 times better for Long/Short trading of the signals and trading long only being about 5 times as good. In all cases, drawdown was lower for the sentiment trading than for buy-hold.

Below is shown the threshold surface for the equal buy/sell thresholds showing that annualized return (CAGR) is sensitive to threshold changes but profitable over a wide range. 50% is close to the optimum, which is at 41% through 49% ($580,959 return).

FNGU threshold surface for equal thresholds

FNGU threshold surface for equal thresholds

 

 

 

Click here to see the SignalSolver settings for this strategy: FNGU Sentiment Settings

We now move into the paper-trading phase for this project. Updates will be shown below.

Updates

Daily updates to this strategy and sentiment were reported here, up until Feb 4th 2022 when losses on FNGU were about 19%. The screenshot below shows the progress of this algorithm.  The underlying stock lost 23% in the same period.

FNGU algorithm using SignalSolver sentiment. Performance up until Feb 4th 2022

FNGU trading using SignalSolver Sentiment. From Jan 8th 2020 until July 16th 2021 this was a backtest. From July 16th 2021 until Feb 4th 2022 it was live traded, losing 19%.

Postmortem March 3rd 2022

As we did for AAPL and TQQQ we take a look to see if something could have been done better. We start by using the same Sentiment profile and looking to see if changing the buy and sell thresholds would have made a difference. For FNGU we used a fixed 50-50 threshold because it had done such a great job in the timeframe 1/8/20 to 7/16/21. Turns out, the best Equal threshold overall (i.e. from 1/8/20)  would have been 60%, but that was not guessable, not manifesting until Dec 2021. Trading from 1/8/20 with a 60% threshold would have yielded just over $900,000 in Dec 2022, falling back to $576,000 on Feb 4th 2022. For our live trading period, it would have yielded just 56%. The best Equal threshold for our trading period July 16th 2021 to Jan 4th 2022 was also 60%.

The best Symmetrical thresholds were 75% buy and 25% sell, yielding 100% profit in our trading period. Another academic result, neither guessable nor manifesting themselves until very recently.

Adaptive threshold results

We found with both AAPL and TQQQ that adaptive thresholds can give better results than fixed thresholds, so let's explore that technique a little for FNGU. With this method there is less guesswork--the program optimizes the thresholds every N periods, but you must also select how much sentiment data is in the Optimization Window. For simplicity sake we optimize every 1 period (every trading day) and we use a 252 trading day window (one calendar year).  You can also force the thresholds to be Equal, Symmetrical, or allow them to float freely. Each did much better than buy-hold for the trading period which gave a 24% loss. Let's take a look at each

Equal Adaptive Thresholds

For this test the buy and sell thresholds are constrained to be equal. Overall it did better than buy-hold, but for the actual trading period (July 16th to Jan 4th '22) it gave a loss of 4%, recovering to flat since then.

FNGU adaptive thresholds-equal thresholds

Symmetrical Adaptive Thresholds

Here, we apply two constraints to the thresholds. Firstly they must sum to 100% and secondly the buy threshold must be greater or equal to the sell threshold. For the overall test period this gave the best result, and for the trading period 7/16/21 through to 2/4/22 this gave a 13.9% profit, but this has declined to a 3% loss on 3/2/22.

FNCU adaptive threshold, symmetrical thresholds

Free floating adaptive thresholds

The thresholds are re-optimized every day with the only constraint being that the buy threshold must be greater or equal to the sell threshold. This avoids the scenario where a descending sentiment causes a sell, then re-ascends without a buy (relaxing this constraint was still profitable). The result is better for the trading period 7/16/21 to 2/4/22 than either the equal or symmetrical thresholds, giving a return of 57%.. As of 3/2/22 the gain was 65% vs a 36% loss for buy-hold.

FNGU adaptive threshold, free floating