2023 Feb
2023 Feb
2023 Feb
TRADING HIGH-YIELD
BOND FUNDS USING
EMAS
From simple to complex 8
DO SMALL PRICE
CHANGES MATTER
Or are they just noise? 24
IMPROVING TRADING
SYSTEMS BY
COUNTING EVENTS
Looking for repeatable
processes as algorithmic
trading ideas 30
CRYPTOCURRENCIES
AND SEASONALITY
Part 2: Crypto winter 34
FEBRUARY 2023
subscribe or renew today!
Every Stocks & Commodities subscription
(regular and digital) includes:
• Full access to our Digital Edition
The complete magazine as a PDF you can download.
• Full access to our Digital Archives 8999
1 year.................
$
Every article since 1982!
2 years............ 149
• Complete access to WorkingMoney.com $ 99
The information you need to invest smartly and successfully.
3 years............ 199
• Access to Traders.com Advantage $ 99
Insights, tips and techniques that can help you trade smarter.
5 years..........
$
29999
That’s around $5 a month!
ninjatrader.com
CONTENTS FEBRUARY 2023, VOLUME 41 NUMBER 2
ibkr.com/sc-global
Member - NYSE, FINRA, SIPC - The projections or other information generated by Interactive Brokers’ GlobalAnalyst tool regarding
the likelihood of various investment outcomes are hypothetical in nature, do not reflect actual investment results and are not
guarantees of future results. Please note that results may vary with use of the tool over time. IMPORTANT: Corporate data is
provided by third-parties, and Interactive Brokers makes no warranties as to the accuracy of that data. You should do your own due
diligence prior to relying on any such data displayed in GlobalAnalyst. 11-IB21-1506CH1504
TRADING ON MOMENTUM
C
you can see that buyers came in and trending down from 9:30–10am, put
arefully look at any major index price action reversed to the upside in a buy-stop entry for a long-bias
chart over the past year (S&P, at 10am. ETF like TQQQ at $0.50 above the
NASDAQ, Dow, Russell); current price.
you’ll see that markets often Step-by-step action plan
reverse direction near 10am daily, Here’s how you can start using this Step 4: Trail a stop of no more than
give or take a few minutes. strategy: $0.50 as it moves up.
Here, I’ll describe a strategy for day-
trading the 10am reversal pattern. Step 1: Determine if markets are
trending up or down during the It’s simply an established
Trading strategy for the 9:30–10am timeframe. Note that pattern used by major
10am pivot if it’s a choppy directionless open, institutions as well as
A sensible strategy involves trad- this strategy cannot be used. HFT algos.
ing index-related ETFs, like the
eSIGNAL
FIGURE 1: TRADING THE 10AM REVERSAL WITH SQQQ. This shows an example of buying the pivot as price action moves up.
6 • February 2023 • Technical Analysis of Stocks & Commodities
Why this technique works Trade management tips For example, in Figure 1, the initial
As with many consistent market It’s useful to remember that the downtrend range was ($50–$48.5)
patterns, it’s simply an established duration of this trade, when entered = 1.5 points, so the exit target on a
pattern used by major institutions as near 10am, is often no longer than pivot entry at $48.8 is ($48.8 + $1.5)
well as high-frequency trading (HFT) 20 minutes. Those 20 minutes are = $50.3, which worked.
algos. I think of it like a 200SMA enough to capture most of the move.
line type of effect—it works because I will often diversify with this trade. Ken Calhoun moderates a popular
so many others trade it as well. Note For example, after an opening market live trading room for active traders.
this pattern does not occur at precisely rally, I fade the trend at 10am with He is the founder of TradeMastery.
10am daily; I look to trade it between several inverse ETFs, including com, an interactive webinar site
9:55–10:05am, the timeframe in SQQQ, SOXS, and UVXY. for active traders and is a UCLA
which it often occurs. Exit targets are a price projection of alumnus.
the earlier 9:30–10am trading range.
ERRATA: SHORT-TERM CONTINUA- the zero line. duplicate the correct formulations
TION AND REVERSAL SIGNALS A second formula references the despite the missing information. I
DMI oscillator. It will allow users admire their professionalism.
to change the indicator color of the
histogram when it is above the zero Continuation signals
line and when it is below the zero line, text clarification
as I have done in the article. In addition, I would like to make a
The MetaStock indicator is named clarification to the article text under
“DMI Oscillator Above or Below the subheading “Continuation sig-
Zero.” The formula for those who nals” to indicate the condition for the
wish to replicate the colors I used in blue circles in regard to price.
Editor, the article is as follows: At the bottom of page 10, the
I received an email from an astute If(Fml("DMI Oscillator")>=0, paragraph should read: “After a
S&C reader who spotted an important Fml("DMI Oscillator"),0); pullback in an uptrend, blue circles
omission from the formula code in my If(Fml("DMI Oscillator")<=0, appear under the price bar when both
Fml("DMI Oscillator"),0);
article “Short-Term Continuation and the DMI oscillator is above its zero
Reversal Signals,” which appeared in Once it is plotted on a chart, change line and price is above an 18-period
the December 2022 issue of S&C. I the line style to histogram. simple moving average. Dark red
had inadvertently left out the Meta- Click on the histogram above the circles appear above the price bar in a
Stock formula for the DMI oscillator, zero line and select a color for the downtrend after a minor retracement
which is the basis for one of the other DMI indicator above zero. when the DMI oscillator is below
formulas in the article. Click on histogram below the zero its zero line and price is below an
The missing indicator formula is line and select a color for the DMI 18-period moving average.”
named “DMI Oscillator.” To use it indicator below zero. BARBARA StAR
in MetaStock, in the formula builder, All the other formulas presented in
type in: the “Code For Indicators” sidebar on
PDI(10)-MDI(10) page 14 of the December 2022 issue
are accurate.
It plots as a line that crosses above My thanks to the code writers with
and below a zero line. The line style the various platforms who contrib-
can be changed to a histogram style uted to the Traders’ Tips section in
but the indicator will be the same the December 2022 issue based on my
color whether it is above the or below article, who were able to create and
February 2023 • Technical Analysis of Stocks & Commodities • 7
TRADING TECHNIQUES
O
choose from, and we decided on Bank of America
ne of the most common methods that inves- Merrill Lynch High Yield B Total Return Index. Our
tors use to trade high-yield (HY) bond funds analysis used the Investors FastTrack (www.fasttrack.
is with moving averages. Effective trading net) database, which contains end-of-day, dividend-
signals can be built using simple moving aver- adjusted data on more than 260+ open-end HY funds,
ages (SMAs), exponential moving averages (EMAs), and we found that this index (FastTrack ticker MLB-)
or short/long dual EMA crossover (S/L EMAs—some has a correlation of 0.93 and a beta of 1.0 compared
refer to them as fast/slow EMA crossovers). to the average of the basket of 260+ funds. One minor
In this article, we will limit ourselves to EMAs and issue is that this index has a start date of 12/31/1996
begin with a simple EMA strategy and work toward in the database, which isn’t unexpected because the
more complex strategies that take into consideration HY bond market didn’t really take off until the 1990s;
common trading restrictions on HY funds. however, we used the average data from the basket
Our goal is to create a general-purpose strategy of 260+ funds to create synthetic data to extend this
that an investor can use to trade their favorite HY data back to 9/1/1988. This gave us an additional seven
fund or family of HY funds. Investors can also use years of data to test. We adjusted the average of the
our methodology and modify it to meet their unique basket of funds data using the technique described
objectives. in our March 2020 S&C article, “Creating Synthetic
We want this strategy to trade well against a large Historical Data.” Trading systems developers don’t
basket of open-end HY bond funds. The reason for agree on how much historical data to use. Some ar-
using open-end funds, and not HY ETFs is, to quote the gue that markets have changed and only use recent
bank robber Willie Sutton, “That is where the money historical data, and others make the case for using as
is.” Simply put, the majority of individual investors much historical data as possible. We tend to be in the
hold their HY bond investments in open-end funds, second camp, but we did take a brief look at using
and we have found that the performance is better only more recent data.
FUNTAP/SHUTTERSTOCK
using our strategy with managed open-end funds To be clear, the signals developed have a one-day
and not as successful with ETFs; however, leveraged delay. In other words, if there is trade after the mar-
closed-end (CE) HY bond funds do have merit, and ket closes on a Tuesday, the signal would indicate a
ful of STTs within any rolling 90-day window over the mization with regard to the order of the date ranges for
entire 30+ years of the strategy and keep the total number in-sample (IS) and out-of-sample (OS) date ranges—that
of STTs to a small number. is, OS before or after the IS date range? We decided to
Because of the number of parameters and trading limits use the recent data for IS because there have been several
on STTs, we will use a genetic algorithm (GA) to determine market disruptions in recent years, and we acknowledge
robust optimum parameters—that is, accept parameters that recent markets are moving faster as HY bonds have in-
are somewhat insensitive to variation of the parameters. creased in popularity.
This is where we now explain why we used non-integer The IS date range chosen was 12/31/1991–12/31/2020,
values for our S/L EMA parameters. and the OS date range was 11/28/1988–12/31/1991. We
For a more detailed description of how we use GA optimi- retained 2021/2022 data to examine the strategy completely
zation, see our December 2020 S&C article, “Hedging The outside the optimization process.
S&P 500 Index Using Low-Correlation ETFs.” Within the Overoptimization, or data mining, is a major issue, and
GA there is a robustness check on parameters. Parameters one advantage of GA optimization is that as the optimiza-
are varied by a percentage of +/− 10%. If the strategy per- tion progresses, we can monitor OS results; and when the
formance is significantly impacted by this variation, then OS results begin to decline we can stop the optimization
this strategy doesn’t survive the optimization process. By and review the most favorable strategies found to that point.
way of example: If we used a strategy of, say, 5 days for the All optimizations were made to maximize annual return.
short/fast EMA and a value of 25 for the long/slow EMA, We could have included a secondary goal to minimize
we examine the parameters around the 5/25 parameters, MDD, but the MDDs from the optimization were quite
that is, 4.5/22.5 (S/L) days and 5.5/27.5 (S/L) days. If we low without including MDD as a secondary goal. Figure 5
were to round to the nearest integer, the variation could contains the results of GA optimizations that used various
be much larger than our 10% value or not change at all for assumptions and constraints.
smaller numbers. Having said this, we did use integers for Case 0 is simply B&H. Case 1 optimized parameters
the failsafe stop S/L EMA parameters because we were for maximum return without any trading restrictions.
dealing with larger numbers, and larger rounding to the Case 2 put a restriction of no STT at any time during the
nearest integer wasn’t a significant issue. entire optimization, i.e., no failsafe stop. Cases 3–5 put
As we have noted in our previous S&C article, strategy restrictions on the total number of STTs, i.e., 1, 2, or 3,
developers are not of one accord when it comes to opti- occurring within any rolling 90-day window. For example,
case 3 only allowed a single STT within a rolling 90-day
window. Remember, this spans the entire 33 years of the
We want this strategy to trade strategy evaluation.
well against a large basket of Cases 6 & 7 took a different approach and put a restriction
on the average number of STTs each year. For example,
open-end HY bond funds.
if the goal is 0.1 per year then a STT would occur once a
decade on average.
12 • February 2023 • Technical Analysis of Stocks & Commodities
Learn
your way.
Not
theirs.
From financial advice gurus to hot-take pundits across social media, it feels like anyone with an
internet connection can tell you how to invest these days. But with TD Ameritrade, you not only
get 11 years in a row of best-in-class education, you get it all in one place. From market news and
articles to videos, webcasts, and more, you can take control of your investing education with
tools that match your preferred style of learning.
All investing involves risks, including loss of principal. TD Ameritrade, Inc., member FINRA/SIPC, a subsidiary of The Charles Schwab Corporation.
© 2022 Charles Schwab & Co., Inc. All rights reserved.
Case 8 changed the
minimum holding pe-
riod from 30 to 60 days,
and allowed a total of 3
STTs during the roll-
ing 90-day window. It
is equivalent to case 5
but using 60 days as the
minimum holding pe-
riod rather than 30 days.
This case was intended
to evaluate the impact
on performance if a fund
management requires 60
days rather than 30 days.
There was little impact
on return, but a modest
increase in MDD. FIGURE 6: RECENT FIVE YEARS OF BOND INDEX (7/14/2017–7/14/2022) AND CASE 5 WITH & WITHOUT FAIL-
Observation: You may SAFE STOP. The results include post-optimization performance. Note that the failsafe stop helped the strategy to avoid
much of the 2020 and 2022 declines.
ask why the more restric-
tive case 3 has a lower
MDD than cases 4 & 5. That is simply the nature of the of these trades to have a higher confidence in the se-
randomness in market declines. In the future, we would lected failsafe parameters, but that would also drive up
expect case 3 to have larger drawdowns than cases that our STTs. Figure 6 shows the MLB- index and case 5
allow for more STTs. with and without the fail-safe stop for the last five years
Allowing just a single case (case 3) of a STT in a 90- (7/14/2017–7/14/2022). Note: This includes results post-
day window made a significant difference on MDD (3.9% optimization, i.e., post 12/31/2020). The failsafe stop
versus 14.7%). slightly hurt performance heading into 2020, but the stop
Digging deeper into case 5: It had 74% winning trades paid dividends by keeping the strategy out of trouble in
and 71.5% time invested in HY bonds. The number of trades the 2020 Covid decline, and during the 2022 inflation/
numbers in the 100s, which is statistically significant, but a bond decline. Without the failsafe stop, the strategy kept
system develop- trying to go long during the declines.
Ticker Ann% MDD% Cor Beta
er would likely
FAHDX 12.80 14.80 0.77 1.16
ask how often Using the strategy signal on actual
FAGIX 11.90 17.70 0.77 1.08
does the failsafe high-yield funds
FHYTX 11.00 9.10 0.80 0.95
stop trigger? The Recall that our signal strategy was based on trading the
FHIIX 10.80 6.70 0.88 0.83
answer is only 17 MLB- Index. How well does the signal strategy do with
times. We would actual HY bond funds? Of the 260+ HY bond funds in the
FHAIX 10.80 9.50 0.77 0.92
normally like FastTrack database, only 17, excluding different classes
PRHYX 10.70 7.20 0.78 0.77
to have around of the same fund, have existed since 12/31/1988. Figure 7
PHYIX 10.70 6.70 0.89 0.81
twice as many shows statistics on trading these 17 funds using the signal
AMHYX 10.60 13.20 0.77 0.85
from case 5. Also included is
the correlation and beta of
AHITX 10.50 13.20 0.79 0.85
FIGURE 7: SAMPLE RESULTS USING BOND FUND
each fund with respect to the
MHITX 10.20 6.20 0.80 0.87
VERSUS BOND INDEX. How well does the strategy do with
high-yield bond funds rather than the bond index? For this MLB- index.
INEAX 10.10 12.60 0.73 0.82
NEFHX 10.00 15.90 0.79 0.94
test, trading signals from the case 5 strategy were used with Clearly, there are differenc-
LBHYX 10.00 11.00 0.82 0.84 17 high-yield bond funds (12/31/1988–7/12/2022). Result- es in the effectiveness of the
KHYAX 9.90 7.50 0.87 0.88 ing statistics (annual return, daily maximum drawdown) trading signal for the different
are shown here. Also shown are the correlation and beta
PHCHX 9.30 7.60 0.80 0.80
of each fund with respect to the bond fund index (MLB-). funds. This isn’t too surprising
VWEHX 9.20 5.60 0.77 0.76
Although results varied due to differences in the bond funds, because funds have different
IHIYX 8.90 8.40 0.80 0.81 the signal was very effective with most funds. risk criteria and can allow
14 • February 2023 • Technical Analysis of Stocks & Commodities
holding bonds with dif-
ferent ratings and mix
of ratings. A general
observation is that the
higher-beta funds tend
to have larger MDDs
and slightly better re-
turns. The signal was
very effective with some
funds. FHIIX (Feder-
ated Hermes High In-
come Bond Fund) did
particularly well with a
return of 10.8% annual
return/6.7% MDD com-
pared to 6.9%/32.6%
B&H for FHIIX without
the signal. Graphically, FIGURE 8: RESULTS OF USING CASE 5 STRATEGY TO TRADE FXIIX. The signal was very effective with the Federated
Figure 8 shows FHIIX Hermes High Income Bond Fund (FHIIX), one of the funds from Figure 7. This table shows the annual return (logarithmic
scale) trading FHIIX with and without the signal, that is, trading FHIIX with the case 5 signal versus B&H.
with and without the
trading signal.
and the volatil- Using Case 5 Signal Using Case 9 Signal
HY bond ETFs and closed-end funds ity. Investors Ticker Ann% MDD% Ann% MDD%
As noted earlier, ETFs and CE funds don’t have trading also need to HYB 12.0 18.5 12.4 32.1
restrictions, and we looked at using the strategy on HY be aware of po- CIF 11.2 30.8 11.5 30.8
bond ETFs and CE funds. We looked at trading the largest tential liquidity HIX 10.6 21.9 8.1 28.8
HY bond ETF (HYG) using the case 5 signal. From to issues with CE DHY 10.2 18.8 11.0 32.8
4/11/2007 (ETF inception) to 7/12/2022, B&H of HYG has funds. We iden-
VLT 10.0 19.3 10.8 31.2
a 4.25% annual return with a 34.3% MDD. Meanwhile, tified 19 CE
EAD 9.8 18.9 10.2 37.5
using the case 5 signal, the performance was a 4.6% return HY bond funds
AWF 9.7 16.9 9.5 34.3
with a 13.9% MDD—certainly, a significant improvement in the Inves-
HYT 9.5 18.6 9.5 27.8
in MDD. However, over the same time period, MLB- re- tors FastTrack
turned 8.9% with a 3.5% MDD using the case 5 signal. database. On
NHS 9.5 22.0 9.2 32.6
This may be unfair comparison because we don’t care about average, these
CIK 9.4 17.3 10.1 32.5
HYG for maximum return without any restrictions, we get proximately a HIO 7.0 15.4 7.0 24.8
5.02% annual return and a 10.5% MDD—not a significant 0.5 correlation FIGURE 9: RESULTS OF TRADING LEVERAGED
CLOSED-END HIGH-YIELD BOND FUNDS. Per-
improvement over our restricted strategy. with MLB- and formance is shown for individual closed-end (CE)
Leveraged CE funds do provide better returns, with a a beta of ap- funds using the case 5 and case 9 trading signals,
corresponding increase in MDD. In addition to the leverage, proximately 2. 12/31/2003–7/12/2022. Often, leveraged CE funds
CE fund trading prices can have premiums and discounts on Some of these provide better returns, with a corresponding increase
the net asset value, which also increases both potential gain funds have lim- in drawdown.
ited historical
data, but twelve of the funds had data from 2004 forward.
Using the case 5 signal, we get the results in Figure 9.
We often think that EMAs need For comparison, MLB- and the case 5 signal had a cor-
to use “integer” number of days. responding return/MDD of 9.0%/-5.9% over the same
However, you can actually use date range.
fractional days. Encouraged by CE funds results in Figure 8 using the
case 5 signal, we took one additional step and optimized a
signal for CE funds that became case 9 (Figure 5). Rather
February 2023 • Technical Analysis of Stocks & Commodities • 15
than using the MLB- index, we used an average of our 19
CE funds to create a synthetic index to better represent
the CE funds. There were no restrictions on trades, that The improvement in returns
is, no minimum holding periods; however, we did include trading HY bonds, compared to
a 0.05% trading slippage fee. The GA optimization pro- B&H, using EMAs is quite good,
cess used the same IS and OS date ranges used for the
open-end funds.
but perhaps more important is
The annual return for case 9 using the synthetic index the significant reduction in MDD.
of the CE funds (Figure 8) looks very encouraging with
a 14.4% return and a respectable 12.7% MDD; however,
that is where the good news ended. When we applied the were disappointed with using the methodology on HY
case 8 signal to individual CE fund (last two columns of ETFs, but the CE funds show promise for those with a
Figure 9), the annual return was not generally improved higher risk tolerance. Much more work could be done
and the MDDs were significantly worse compared with developing a CE fund strategy.
using the case 5 signal. We should mention that the B&H
MDD for the 19 CE funds were mostly greater than 50% Brothers Ken Huck and Nelson Huck are the founders of
with some as high as 70% so there was a significant de- Edge Ware, Inc. (www.edge-ware.com). Since 1995 they
crease in the strategy MDD versus B&H. Why did we get have developed a number of programs to help investors
such poor results? A couple reasons: Optimization was on create trading systems and have consulted with money
the average of the funds; and that average curve is much managers. Their FastBreak Pro program was one of the
smoother than the individual funds. Also notice that the first commercially available programs to use a genetic
long failsafe stop parameters are much more forgiving algorithm for optimizing trading strategies. They can be
than the parameters for the other cases. This tended to contacted at email2ew@edge-ware.com
prevent a close stop on the equity curve.
Further reading
Concluding comments and areas Huck, Ken, and Nelson Huck [2020]. “Hedging The S&P
for improvement 500 Index Using Low-Correlation ETFs,” Technical
The improvement in returns trading HY bonds, com- Analysis of Stocks & Commodities, Volume 38:
pared to B&H, using EMAs is quite good, but perhaps December.
more important is the significant reduction in MDD. The Huck, Ken [2020]. “Creating Synthetic Historical Data,”
methodology and strategy described in this article may Technical Analysis of Stocks & Commodities, Vol-
serve as a starting point for strategy developers. Readers ume 38: March.
may notice (Figure 5) that a good place to start for the Kaufman, Perry J. [2005]. New Trading Systems And
short EMA parameter is 1–2 days and 20–30 days for the Methods, 4th edition, John Wiley & Sons.
long EMA. Choosing failsafe stop parameters is a little Pardo, Robert [2005]. Design, Testing, And Optimization
more problematic because they are a much wider range Of Trading Systems, 4th edition, John Wiley & Sons.
of parameters, but there does appear to be a sweet spot [2008]. The Evaluation And Optimization Of Trad-
around the 25/50-day S/L parameters. ing Strategies, 2nd edition, John Wiley & Sons.
There are several areas for improvement. One could ‡Investors FastTrack (https://fasttrack.net)
argue that we should have ignored older data, and re- ‡See Editorial Resource Index
stricted our analysis to more recent HY bond data—this
is worth consideration. And although we restricted STTs,
there is considerable trading in an average year. One area
to examine is to look at the impact on performance if the
number of trades is reduced. Perhaps the greatest improve-
ment would be to use the actual funds that will be traded
to create an index, rather than a generic HY bond index.
Also, we assumed a minimum hold period of 30 days for
most of our analysis, but increasing the minimum holding
to 60 days didn’t have a significant impact on results. That
may not be the case for even longer holding periods. We
16 • February 2023 • Technical Analysis of Stocks & Commodities
Algo Q&A
ALGORITHMIC TRADING
Have a question about system or algo trading? Kevin J. Davey has over
30 years of system trading experience. Kevin is a full time trader, and also
teaches and consults via his Strategy Factory® online workshop (https://
kjtradingsystems.com). He is the author of 5 bestselling trading books, in-
cluding “Building Winning Algorithmic Trading Systems” and his latest
book “Algo Trading Cheat Codes.” Send your questions or topic suggestions
to Kevin Davey at kdavey@kjtradingsystems.com. Selected questions will
appear in a future issue of S&C.
Kevin J. Davey
ELIMINATING STRESS? backtest you ran. But you are discour- a significant role in algo trading. If
Long-time discretionary chart trader aged by this recent performance, and you can follow the rules 100% and
here, tired of the stress inherent with you decide to turn the algo off for a let the algo do its thing without
this type of trading. I am thinking of week, since it might be broken. Of interference, then emotions can be
algo trading instead. If the computer course, the next signal is a winner, kept in check.
makes buy/sell decisions for me, but you missed it. To overcome this Good algo trading, therefore, starts
won’t my stress level and emotions missed trade, you double size for the with having confidence in what your
be eliminated? next trade. No surprise, that trade algos are doing. Having properly
I hear this a lot: “Oh, I will just algo loses. After all this, you blame the conducted backtests is a key part of
trade, there are few or no emotions algo and have no confidence in it that. After that, you must have the
involved in that.” any longer. discipline to follow the algo without
What a crock. fail.
Realize that people who espouse The neat thing about this is once
the “no emotions in algo trading”
Whatever style of you get in the habit of being disci-
theory fall into two camps: either trading you favor, plined with your algos and you start
they do not trade at all, or they only confidence is a huge to see good results, your confidence
trade on simulators. Keep that in part of your success. begins to soar. You now believe in
mind as you ponder following their how you are trading, which of course
“wisdom.” What just happened? First, you makes you more disciplined and in-
When real money is on the line, initially lost confidence in your algo duces more confidence. It is a spiral
emotions will be involved. Guar- for no legitimate reason—since the upwards to trading success.
anteed. backtest showed three losses in a If you go into algo trading realizing
That being said, it is possible to row was possible. Then, you lacked that emotions can play a significant
reduce or temper the emotions in algo discipline by trading against the algo. role, and understand that confidence
trading. It really comes down to two And in the end, you are no longer and discipline are the tools to keep
things: confidence and discipline. confident nor disciplined in trading emotions in check, you will find
Whatever style of trading you favor, this algo. Your emotions are likely your trading endeavors a lot less
confidence is a huge part of your a wreck! stressful.
success. Confidence is the ability to Another example: Say there is a
weather the storm, to know that if you Fed announcement this week, or an
just keep doing proven tasks (such as inflation report release, or some kind
following your algo) good outcomes of news event. You decide to manu- YOUR ONLINE
will happen. ally overrule your strategy and turn RESOURCE FOR
Discipline is the proper execution off signals for this week. You end TECHNICAL
of that algo. Discipline is the key to up missing out on good trades. You
ANALYSIS
minimizing the impact of emotions. kick yourself for overriding your
Why is discipline so important? algo. Again, your emotions are high
One example: Say your current live with this algo.
algo has lost three trades in a row, These two simple examples make
which happened many times in the it clear that emotions can and do play
February 2023 • Technical Analysis of Stocks & Commodities • 17
Filtering Trades To Improve Trade Selection
In
bar’s low.
the markets, trading decisions are made based It should be noted that in this article, I’ll always refer
on the configuration of market prices. This is to an outside bar with a daily timeframe. Figure 1 helps
what makes up price action. It’s commonly to explain. On the right, you can see a daily price bar for
said that prices incorporate all available in- yesterday, with a range that exceeds the highs and lows
formation into their movements and that the from the day before yesterday, represented
trader can start from the prices themselves by the bar on the left.
to decide how to trade. This pattern indicates an increase in
I’ve always used price patterns in my systems, but volatility and doesn’t necessarily indicate
VIDEOFLOW/SHUTTERSTOCK
From the above part of the code, we see how our system
takes a market position through stop orders, both long
and short, placed on the upper and lower levels of the
channel, respectively, but only if:
futures sector:
Continued on page 43
22 • February 2023 • Technical Analysis of Stocks & Commodities
MARKET RAP
THE WORLD OF RETAIL TRADING
Emilio Tomasini is an adjunct professor of corporate finance at the
University of Bologna in Italy and is a professional trader. He has au-
dited over 5,000 accounts of traders during 13 years of a real-money
trading competition, giving him unique insights into what helps a retail
trader to succeed. He has expertise in technical analysis and trading
Emilio Tomasini
system design. In this column, he shares his sometimes “unserious”
thoughts on serious topics in finance. In his writings, he hopes to help the retail trader better understand the leap
from unprofitable to profitable trader, firmly believing that the right answers can come only if the right questions
are asked. At his website at www.emiliotomasini.com, he offers some of his expertise in a free video course.
WHY THE 50- AND 20-DAY MOVING take your money and then disappear. the moving averages are for market
AVERAGES ARE STILL EFFECTIVE I am talking about real and hopefully analysis, both on equity indexes and
TODAY qualified professionals in the business on individual stocks.
In the field of technical analysis, who deliver regular information and Moving averages are a tool that
there are methods and practices that opinions. I am looking at the large have been in use for a very long
work without any reason. And since following some of them can gain time. They are not new or innovative.
technical analysis is an empirical ap- these days on social media and on If you were a sophisticated trader
proach, we are forced to accept and video platforms on the internet. Truly, looking for something impressively
acknowledge that a method works once you start following them, you and overly complicated, you would
well without necessarily knowing can become quickly addicted to their surely look down your nose at popular
why it does. opinions. moving averages, considering them
I have always wondered why this trivialities. But the truth is, they are
happens in technical analysis. One Since the 200-day not trivialities.
reason could be that once a method moving average has In Lawrence Connors’ well-regard-
is widely accepted by all market been around for almost ed books on market analysis—and
participants, then it becomes self- this is an author who is known for
fulfilling.
a century, we need to quantitative trading techniques—his
If you walked up to a business, say, look back at the times analysis often relies on a 200-day
a bakery, and asked what is the best when computers did moving average. He found them to
bakery in town, they will tell you that not exist. be highly effective on stocks and
they are. This is obvious. stock indexes. And whenever Connors
I could liken myself to being a I am thinking of one person in par- would speak about the markets, he
“baker” in the field of technical ticular I enjoy watching on YouTube would show plenty of statistics to back
analysis. However, I will plainly tell (whom I won’t name here, as it’s not up what he was saying, in case you had
you that there are other bakers in the the point of my discussion). I consider any doubts that there is any serious
field who make bread at least as good his analysis brilliant. Yet his analysis evidence to the methodology.
as I do or even better. is based mostly on moving averages, Getting back to the whys and where-
My willingness to be fair in this and in particular, the 50-day and 200- fores: One of the reasons the 50- and
open assessment of myself may be day moving averages. He is a veteran 200-day moving averages are effec-
unusual in business. In business, the trader with many years of experience, tive is that everybody watches them
goal is normally to convince the con- and having an experienced market and so everybody reacts to them. Not
sumer that your product or service is analyst share their analysis with other everyone reacts to them in the same
the best around. users is valuable for many of us. way—some may buy and some may
In the technical analysis arena, In his approach, he treats the two sell, but in any case, there is reaction
there are some who make themselves moving averages almost like variable in the markets all at the same moment.
highly visible and they become public support and resistance levels, where it It is why we can watch those averages
figures in the field. I am not talking is presumed that price reactions will and reasonably expect something
about the hucksters who make a big tend to happen. And day by day in
commotion over themselves only to his videos, he shows how effective Continued on page 49
February 2023 • Technical Analysis of Stocks & Commodities • 23
Focus On The Trend
A
If the S&P closes lower, subtract today’s total volume
re trends more accurate if you ignore small from OBV.
changes in price?
Does it really matter if the S&P, or any stock, When I first studied the OBV concept, I wasn’t sure if
closes up or down by 1 tick, or even 1/10 of a the cumulative value of OBV had any relationship to the
percent? Are those days just noise, or are they trend of prices. After all, it only uses volume. Figure 1
important when we calculate a moving average system shows that the OBV (lower panel) applied to SPY is less
or other trend-trading systems? volatile than prices and has the same pattern.
To be fair, removing small daily changes might im- I tested the moving averages from 2000 through Oc-
prove one method and not another, so we’ll look at two tober 2022, long-only, for SPY and the OBV based on
very different trending techniques to see if there is any SPY. The best for both was the 80-day trend, shown in
consistency. Figure 1. Prices are in the top panel and the OBV in the
bottom panel. It is interesting to see that the trend of the
LISA-S/SHUTTERSTOCK
TRADESTATION
FIGURE 1: ON-BALANCE VOLUME (OBV). Shown here is a price chart with an 80-day moving average of SPY (top) and the OBV with an 80-day
moving average (bottom). The OBV is less volatile than prices but has the same pattern.
CODE FOR APPLYING A MINIMUM-PRICE FILTER TO AN ON-BALANCE VOLUME TRADING SYSTEM, IN EASYLANGUAGE
// PJK if MAOBV > MAOBV[1] and marketposition <> 1 then begin
// Copyright 2012-2021,2022 P J Kaufman. All rights re- if usefutures then
served. size = futuresinvestment / (AvgTrueRange(20)*big
pointvalue)
{ TSM OBV Trend else
Copyright 2011, 2022, P.J.Kaufman. All rights reserved. } size = stockinvestment/close;
buy size contracts next bar on open;
inputs: period(60), minpricechange(0), longonly(true), end
usefutures(false);
vars: stockinvestment(10000), futuresinvest- else if MAOBV < MAOBV[1] and marketposition <> -1
ment(25000), investment(0), then begin
MAOBV(0), size(0), OBVlocal(0); sell all contracts next bar on open;
if longonly = false then begin
if Close > Close[1] + minpricechange then if usefutures then
OBVlocal = OBVlocal[1] + Volume size = futuresinvestment / (AvgTrueRan
else if Close < Close[1] - minpricechange then ge(20)*bigpointvalue)
OBVlocal = OBVlocal[1] - Volume else
else size = stockinvestment/close;
OBVlocal = OBVlocal[1]; Sell short size contract this bar on close;
end;
MAOBV = average(OBVlocal,period); end;
We can then test a minimum price move with the 80- Figure 6. Total profits are much better although the risk
day moving average to see if it improves results. The is higher. The real problem is that there are only 3 trades
best was 95 bp, also quite large. The result is shown in compared to 48 in the original moving average. Most
February 2023 • Technical Analysis of Stocks & Commodities • 27
small filter to ignore the small moves.
The filters will be 5, 10, and 25 basis
points. Figure 7 shows the results.
Of the four NAVs, the one without
any minimum price filter has the low-
est returns; the one with the largest
filter has the best returns. The statis-
tics in Figure 8 show that not only
do the returns improve as the filter
is larger, but the reward-to-risk ratio
improves. We were also looking for at
least as many trades as the case with
no filter, and that was satisfied.
Conclusion
FIGURE 7: APPLYING DIFFERENT-SIZED PRICE FILTERS TO IGNORE SMALL PRICE MOVES. These limited tests show that remov-
The trend system used here is a 50-day moving average on SPY. The filters applied in this test case
ing small price moves improves
are 5, 10, and 25 basis points. Of the four NAVs in the result, the one without any minimum price filter
has the lowest returns. The one with the largest price filter has the best returns. results for two trend systems—the
OBV system and a standard moving
average system. It does require creating a new price series
with small moves removed, but the improvement seems
to be worth the trouble, and you can use the code given
in this article’s sidebars to prepare your price series.
To answer the original question posed at the top: Small
price moves appear to be noise and do not help identify
FIGURE 8: STATISTICS FROM THE TEST CASE. The statistics are shown the direction of the trend.
here for the test in Figure 7. You can see that not only do the returns improve
as the filter becomes larger, but the reward-to-risk ratio also improves. In Perry J. Kaufman is a trader and financial engineer.
addition, the number of trades is now at least as many as in the case with
He is the author of many books on trading and market
no filter applied.
analysis, including the sixth edition (2020) of Trading
Systems and Methods (with the first edition published in
of us would find that unacceptable. We need to look at 1978 as a seminal book in the field of technical analy-
this differently. sis), as well as Kaufman Constructs Trading Systems
(2020), and the recently released book Learn To Trade
Applying the minimum threshold to (2022). For questions or comments, please go to www.
a faster moving average kaufmansignals.com.
By choosing a faster moving average and not a particu-
larly good one, we can see how a small filter threshold Further reading
works. It is more in line with our original thinking. From Kaufman, Perry J. [2022]. Learn To Trade, Amazon.
Figure 5 we can see that the 50-day calculation period is [2020]. Trading Systems and Methods, 6th Edi-
profitable, but not one of the best. We will then apply a tion, Wiley.
[2020]. Kaufman Constructs Trading Systems
(print and ebook editions), Amazon.
[2022]. “Trading A Moving Average System:
We want to know if a minimum Important Choices,” Technical Analysis of Stocks
price filter improves results, so & Commodities, Volume 40: January.
we create a new price series that ‡TradeStation
omits any price move under a ‡See Editorial Resource Index
threshold filter.
HOW CAN CRYPTO INVESTORS participants trust the system. Also, of this should sound familiar. How-
AVOID COUNTERPARTY RISK AND although life is not always fair, it ever, the futures industry is highly
PROTECT FUNDS? (PART 1) would be extremely unfortunate for regulated; the CFTC (Commodity
In light of the failure of FTX, a innocent savers to suffer at the hand Futures Trading Commission) sets
popular centralized cryptocurrency of a negligent bank or brokerage. Fu- rules and regulations enforced by the
exchange, speculators are reminded tures brokerage accounts are neither NFA (National Futures Association)
of the pitfalls that can come with de- FDIC nor SPIC insured, but there are via audits and investigations. Because
rivative trading beyond the apparent compliance rules in place intended to commodity accounts don’t have the
price risk. Stock and bond traders’ prevent clients from being negatively luxury of FDIC or SIPC insurance,
deposits and investment products are impacted by a brokerage firm’s failure the CFTC created a segregated fund
partially protected by programs such known as fund segregation policies. rule requiring brokerage firms to
as FDIC (Federal Deposit Insurance I’ll soon explain further. keep customer money in a separate
Corporation) and SIPC (Securities In- The FTX crypto brokerage col- bank account from firm money. With
vestor Protection Corporation). How- lapse brought back some personally such an arrangement, a brokerage
ever, derivative traders, particularly painful memories of the downfall of firm’s insolvency shouldn’t harm
forex and crypto, can be left holding two prominent futures brokers in the client funds. If all works as designed,
the bag should their brokerage firm upon bankruptcy of a brokerage
become insolvent. A robust economy firm, regulators simply transfer
The FDIC insurance program requires a propensity open positions and cash assets used
covers cash and cash equivalent for margin by customers to another
deposits (CDs and money market)
to save and invest; brokerage. This leaves the troubled
in FDIC-insured banks with a limit this is only possible if broker to deal with its financial mess
of $250,000 per person per bank. economic participants without causing harm to its clients.
SIPC insurance, on the other hand, trust the system. Except for the aforementioned PFG
protects against the loss of cash and and MFGlobal fiascos, this rule has
securities, such as stocks and bonds early 2010s (PFG and MF Global). successfully safeguarded commod-
held by a customer at a SIPC-member The FTX failure shared several ity traders’ funds from their broker’s
brokerage firm limited to $500,000. similarities, particularly with MF insolvency.
In either case, in the unlikely event Global, which allocated client funds Since the early 2010s, when these
that a brokerage or bank covered by to meet margin calls in sovereign breaches occurred, regulators have
these insurance programs becomes bond positions. Yet, in both sce- improved auditing techniques de-
financially troubled, these programs narios, the brokerage firms mingled signed to deter and prevent repeat
act as a backstop to limit the damage client funds with firm funds to cover occurrences. For example, the most
inflicted on savers and investors. The operational costs, contribute to risky significant improvement is the elec-
idea behind these insurance programs investments, meet firm margin calls, tronic auditing of banking informa-
is two-fold: A robust economy re- and lavish amenities for high-ranking tion instead of monitoring paper
quires a propensity to save and invest; employees.
this is only possible if economic If you’ve been following FTX, all Continued on page 40
February 2023 • Technical Analysis of Stocks & Commodities • 29
Looking For Repeatable Processes As Algorithmic Trading Ideas
T
Many traders do not have easy access to non-price-
raders intently seek new trading signals or based data, since many retail platforms only provide
predictive patterns that can lead to improved OHLC (open-high-low-close) data. Signals based on
performance. However, one of the most over- simple moments in time rarely provide enough contextual
looked methods of improving indicators is to information to create robust trading systems.
simply count how often an event triggers in a Counting the number of events or signals can better
rolling window. communicate the current market environment, leading
A signal occurring once shares very little about the to more robust trading systems. Counting signals can
current market environment, but a signal occurring four improve price-action-only systems without the need to
or five times in the past five bars can give a pretty good incorporate non-price-based data.
idea as to the current market environment. The more
information we can pass to a trading system, the better Sample signal
it should fare. To begin, let’s start with a simple daily trading system
ZHAOLIANG70/SHUTTERSTOCK
Signal count
A trader could look to improve this
signal by counting the number of oc-
currences over the past N days.
The low being below the previous FIGURE 1: EQUITY CURVE FOR SIMPLE STRATEGY. In this simple strategy, the trade is held
for one day, selling on the following day’s open. This strategy, trading one lot of ES, produces this
low tells us very little about the mar- hypothetical equity curve over 20 years. This simple trading idea produced strong profits in 2008
ket environment we are currently in. and 2020, but this equity curve is far from a smooth ride. Could the system be improved?
This leaves the trading system with
very little useful information. How-
ever, counting the number of days
the event (Low[0] <= Low[1]) has
occurred in the past five days gives
more insights.
If we require that at least four of the
last five days had their respective daily
low below the previous day’s low and
the most recent day is one of those four,
then we see a significantly improved
trading signal. A hypothetical equity
curve for this revised system over the
same 20 years is shown in Figure 2.
Spreadsheet
implementation
We can implement the concept of
counting occurrences using an Excel
spreadsheet (Figure 3).
First, we need to calculate the base FIGURE 2: EQUITY CURVE FOR SIMPLE STRATEGY, INCORPORATING SIGNAL COUNTS.
signal using an if statement comparing The trading strategy from Figure 1 could be improved by incorporating more information and rules
the current bar’s low to the previous into the strategy reflecting how often the signal occurs. A hypothetical equity curve for this revised
day’s. system over the same 20 years is shown here.
Second, calculate the open-to-open
difference to simulate buying the open and selling the to find the return for any given day with a signal. We
next day’s open. then sum all these profit & loss (P&L) values to plot the
Finally, multiply the signal by the open-to-open return equity curve.
February 2023 • Technical Analysis of Stocks & Commodities • 31
MICROSOFT EXCEL
FIGURE 3: SPREADSHEET IMPLEMENTATION, SIGNAL COUNT INFORMATION. The concept of counting signal occurrences can be implemented
using an Excel spreadsheet. First, the base signal is calculated using an if statement comparing the current bar’s low to the previous day’s. Then the
open-to-open difference is calculated to simulate buying the open and selling the next day’s open. Finally, the signal is multiplied by the open-to-open
return to find the return for any given day with a signal. To plot the equity curve, sum all the profit & loss values. The second tab, named “combined
signals,” has an additional column to count the number of signals in the past five bars. If the sum of the two signal columns (basic and count) are equal
to 2, a new signal is produced.
Python implementation
We can also implement the concept
of counting signal occurrences
using the Python programming
language (Figure 4). Here are the
steps:
First, read in the data file into a
pandas dataframe. Next, calculate
the base signal and open-to-open
returns as separate dataframe
FIGURE 4: PYTHON IMPLEMENTATION, SIGNAL COUNT INFORMATION. The same concept can be
columns.
carried out using the Python programming language. In this sample Python code listing, the base signal Finally, multiply the signal by
is calculated and open-to-open returns as separate dataframe columns. The count signal is calculated the open-to-open returns and plot
in a new dataframe column by using pandas’ rolling sum function. To view the equity curve, plot the the cumulative sum to view the
cumulative sum after multiplying the signal by the open-to-open returns. equity curve.
To calculate the count signal in
The second tab, named combined signals, has an ad- a new dataframe column, we can use pandas’ rolling
ditional column to count the number of signals in the past sum function.
five bars. If the sum of the two signal columns (basic and
count) are equal to 2, we have a new signal—a count- Build Alpha implementation
based signal. Multiply this new signal by the returns to I can also implement the concept of counting signal oc-
get a P&L graph. currences in my own software, since that is the software
I use. Here is the procedure I follow:
Select the Low[0] <= Low[1] signal and set the max
hold time to 1 (see Figure 5).
One of the most overlooked To create the count signal, create a custom comparative
methods of improving indicator that uses the count function (see Figure 6).
indicators is to simply count
how often an event triggers in Final thoughts
a rolling window. There is no holy grail indicator, but creative ways of using
the same indicator can help improve performance. All
traders can have the same data before them, but those
32 • February 2023 • Technical Analysis of Stocks & Commodities
who make the most
creative use of it will
outperform.
Single signals can
be great to get, but
don’t forget to check
alternative ways of
using the same signal,
such as counting its
occurrence, lagging
it, scaling it, or other
ways of using it.
David Bergstrom
is the founder of
Build Alpha. He has
over a decade of
professional market
experience, includ-
ing as market maker
BUILD ALPHA
and a quantitative
strategy developer FIGURE 5: SETTING UP THE BASIC STRATEGY IN BUILD ALPHA. To set up the basic trading strategy in the Build
at a high-frequency Alpha software, select the Low[0] <= Low[1] signal and set the max hold time to 1.
trading firm with a
Chicago Mercantile
Exchange (CME)
seat. He offers con-
sulting to institution-
al and professional
trading firms. He is
a self-taught pro-
grammer utilizing
C++, C#, and python.
He has a statistics
background special-
izing in data science,
machine learning,
and trading strategy
development. He can
be reached through
BuildAlpha.com. To
read more about
feature engineer-
ing and automatic
signal creation, visit
BuildAlpha.com.
FIGURE 6: SETTING THE COUNT FUNCTION IN BUILD ALPHA. To set up the function to count the signals in Build
The Excel spread- Alpha, create a custom comparative indicator that uses the count function.
sheet and code given
in this article are available in the Article Code section
of our website, Traders.com.
February 2023 • Technical Analysis of Stocks & Commodities • 33
The “Crypto Winter” Two-Year Pattern
Cryptocurrencies And
Seasonality: Crypto Winter
Part 2
Did you know a pattern exists in cryptocurrencies where in and out a few times in a given period. They are very
two years of a bear market are often followed by two years patient as the market forms multiple peaks and crests.
of a bull market? This is a type of seasonality that you That type of approach is not the result of a lack of skill
could profit by, both on the short and long side. Here is and knowledge. Instead, it is based having on a trusted
what to look for to help spot the crypto winter pattern. analysis that is expected to play out over the long term.
Because of those different horizons that different traders
by Azeez Mustapha have, they typically opt for different types of strategies.
T
Traders can be classified into categories based on the
he cryptocurrency market is a technical space type of trading strategies used. There are scalpers, who
that requires understanding for an investor to spend only a few hours holding their trades. These trad-
be profitable. ers perform their analyses on the lower timeframes, such
It also helps to understand that different types as the 15-minute timeframe. Then there are daytraders,
of trading approaches are suitable for different who hold their trades for less than 24 hours. These types
types of traders. While some traders like to be of traders perform their analyses on higher timeframes
highly active all the time, others are very comfortable with than the scalpers do; their analysis revolves around the
ZOLOTOVEK/SHUTTERSTOCK
very little activity. Some traders are very nimble; they hourly chart. Then there are traders referred to as swing
go in and out of the market several times within a short traders. These traders may spend up to two weeks holding
period. This group of traders tries to benefit from every their trades. They typically perform their analyses on the
peak and crest in the market. Other traders only check four-hour chart. The last category and the most patient
34 • February 2023 • Technical Analysis of Stocks & Commodities
CRYPTOCURRENCY TRADING
TRADINGVIEW
FIGURE 1: CRYPTO WINTER 2022 IN BITCOIN. News and fundamental factors can affect the rise and fall in the price of cryptos, though seemingly
not as much as the crypto winter effect. In March 2022, very positive news about cryptocurriencies was prominent and trending, and yet the market
continued to crash during this crypto winter.
of all is the position trader. They may hold their trades collapses have been reported to occur on occasion.
for months or even years. They perform their analyses These periods are known as “crypto winter.” In essence,
on the daily and weekly charts. “crypto winter” refers to a prolonged price decline.
Position trading isn’t easy in the currency markets Price declines and protracted price stability character-
because you can’t forecast forex easily in the long term. ize crypto winter.
However, in this article, I will describe an approach to
the cryptocurrency markets that may be quite suitable The “crypto winter” cycle
for position traders. With this approach’s longer time ho- The period of crypto winter is generally two years in a
rizon, it helps make position trading more manageable. four-year circle. The two-year bear market precedes two
years of a bull market (which is known as the “crypto
Seasonality in cryptocurrency summer”). The years 2018–2019 were a crypto winter.
Studies of the crypto market have shown that the crypto Then, two years later, another bearish winter would be
market tends to repeat certain moves over and over at expected from 2022–2023.
specific times. With a good understanding of the moves
that have been shown to recur in the crypto markets, a Fundamental analysis
smart trader can use the past as a tool to help predict The use of fundamentals is one way of analyzing the
the future. markets. Fundamental analysis is a technique to evaluate
With its recurring moves, the crypto market can be said the crypto market by examining the economic, social,
to have seasonal tendencies. Seasonality is a property of and political factors that might impact currency prices.
a time series in which the data goes through predictable In simple terms, positive external factors concerning
and recurring changes every year. “Seasonal” refers to cryptocurrency ought to cause an increase in the value
any predictable variation or pattern that recurs or repeats
during the year or from one year to the next. For example,
there is generally an expectation for some snow to fall
during the winter season of every year (depending on “Crypto winter” refers to
your geographical location, of course). And with that a prolonged price decline
expectation, people tend to prepare in advance for what lasting several weeks or
they will need in snow conditions. months.
Studies show that there are periods when the market
is very bearish and periods when it is very bullish. Price
February 2023 • Technical Analysis of Stocks & Commodities • 35
FIGURE 2: CRYPTO WINTER 2022 IN RIPPLE COIN. The process of Bitcoin halving during crypto winters tends to affect other cryptocurrencies. In
this chart of Ripple Coin (XRPUSD), you can see the effect of Bitcoin halving.
FIGURE 3: CRYPTO WINTER 2018 IN ETHEREUM. January 2018 saw the start of a market crash with a bearish displacement. At the beginning of
February 2018, major cryptos such as Ethereum could be sold with sufficient risk allowances in place. By the end of 2018, a 200% profit could have
been made on the amount risked. This is an example of taking advantage of the crypto seasonal effect.
of crypto. Similarly, negative external factors concerning seems to have a more substantial effect on the crypto
cryptocurrency ought to cause a decrease in the value market than the fundamentals. The year 2022 (the year
of crypto. in which I am writing this article) provides a good ex-
However, the seasonal tendency of cryptocurrencies ample, as follows.
See the chart of Bitcoin (BTCUSD) in Figure 1. On
March 9, 2022, there was a news release from CoinDesk.
The news events were trending and prominent during
Price declines and March 2022. News headlines stated things like, “Ukraine
protracted price stability Has Received Close to $100M in Crypto Donations.”
characterize crypto winter. That article went on to describe how the country’s deputy
minister at the Ministry of Digital Transformation stated
that Ukraine’s president “shares our vision” that the use
36 • February 2023 • Technical Analysis of Stocks & Commodities
of crypto could be an “economic breakthrough.”
You would expect such positive news to positively
influence cryptocurrency values, and that it ought to Studies of the crypto
result in an increase in the price of cryptocurrencies. market have shown that
However, the effect of the news was barely felt, as the the crypto market tends
market continued to crash during this crypto winter, as to repeat certain moves at
you can see in Figure 1. It appears that the seasonality
effect was stronger than the effect of the fundamentals
specific times.
at the time.
YEAR-END MARKET ANALYSIS A selection of line charts see in the chart (Figure 1) that both
As we wave 2022 good-bye and look The Dow Jones Industrial Average indexes are rising. Note however, that
forward to 2023, it is always a good (DJIA), the granddaddy of indexes even though the DJIA has made a
idea to reflect on the past and plan and the most well-known, is as higher high, the DJTA has not. This
for the future. As traders and inves- good a place to start as any other. is something to watch in 2023.
tors, there is no better way to do this Superimposed on the chart (Figure Because of the ongoing scandal
than by using line charts to compare 1) is the Dow Jones Transportation surrounding the collapse of FTX
various markets, sectors, indexes, Average (DJTA). Trading Ltd., contagion has spread
and stocks. This is a relatively easy, When Charles Dow, the first editor to the wider crypto market. Bitcoin
versatile way to compare areas of of the Wall Street Journal and creator ($BTCUSD) has been in a slump for
the market and to get an overview of the whole of 2022 (see Figure 2). In
things that might have been missed One sector that has the final month of 2022, as the FTX
in the focus of interacting with the scandal spread, BTCUSD increas-
market on a daily basis.
outperformed the ingly diverged from the S&P 500
Knowing how to read the informa- general stock market in index (SPX). While the SPX is rising
tion presented and the discipline to 2022 is energy (XLE). (see circle in Figure 2) BTCUSD is
perform this activity is a useful skill falling, making the stock market a
to adopt in our ongoing journey of of the indexes that formed the foun- better place to have assets in than
mastering technical analysis research dation of Dow theory, was observing bitcoin. Will this continue to play
concepts. stock market action, he said that to out in 2023?
The rest of this article will be a confirm a trend, the two main indexes, One sector that has outperformed
selection of charts that I have gath- which at the time were DJIA and the general stock market in 2022 is
ered, and an explanation of what DJIT, must confirm. energy (XLE). Figure 3 clearly shows
they reveal. In the final months of 2022, we can this. While XLE (black line) has risen
STOCKCHARTS.COM
FIGURE 3: ENERGY (XLE) FIGURE 4: COPPER CORRELATED WITH THE S&P 500
FIGURE 5: NUCOR CORP. (NUE) COMPARED WITH THE MATERIALS FIGURE 6: TECHNOLOGY (XLK) SECTOR HAS TIGHT CORRELATION
(XLB) SECTOR WITH THE SPX
for the bulk of 2022, recently making to rise into 2023 and the Fed contin-
new highs, the SPX has struggled and The DJIA is comprised ues to fight it by increasing interest
has recently formed what is looking of 30 of the largest rates, the possibility of further price
like a W-shaped bottom. blue-chip companies lows in both the SPX and the price
Copper is widely used in most sec- of copper is likely.
tors of the economy, including elec-
trading in the market, We can also take promising sectors
tronic product transmission, power while the SPX is and compare them with strong stocks
generation, building construction, comprised of 500 of in that sector. In Figure 5, Nucor
industrial machinery, and many other the biggest companies. Corp. (NUE) is compared with the
industries in many different sectors. materials (XLB) sector.
Because of its widespread applica- There are drawbacks to using the As XLB has began to recover in
tion, it is often used as a gauge of price of copper alone relative to the 2022, NUE, showing strength, never
the health of the general economy. In market as an indicator of the health really fell significantly over the past
insider lingo, it is often referred to as of the economy, because if there is an year and is currently trading at a
“Dr. Copper” and it is usually a lead- increased demand for copper because higher high.
ing indicator. If orders for copper are of a shortage in the metal, the price The technology sector, represented
rising, it is considered an indication will rise, making it less of a reliable by the ETF XLK, which in good
that the economy is strong. indicator. times is often the strongest and most
Figure 4 shows the performance of In our current inflationary environ- popular sector, shows its tight correla-
copper correlated with the S&P 500 ment, we are likely in the late stages tion with the SPX (see Figure 6). It
index during 2022. of an expansion. If inflation continues rose in a strong trend into 2021 and
February 2023 • Technical Analysis of Stocks & Commodities • 39
The Savvy Technician
FIGURE 7: DJIA & SPX TIGHT CORRELATION FIGURE 8: SPX VS. USD
plunged with the SPX in 2022. It is total number of shares outstanding. often falling and when the dollar is
currently showing signs of recovery An index divisor is then used to arrive falling, the SPX is rising.
in line with the wider index. at a final figure.
The DJIA is comprised of 30 of Notwithstanding the differences in The value of charts
the largest blue-chip companies the way these popular indexes are cal- This article uses a sampling of charts
trading in the market, while the SPX culated, they often move in concert, as to show how much can be achieved
is comprised of 500 of the biggest we can see from Figure 7. It is worth by taking different markets, sectors,
companies. The DJIA is a price- noting as we move into the new year and securities and comparing them
weighted index, which means that that though both indexes are moving to derive information and also to
the index is calculated by adding the higher, the DJIA has made a higher plan strategies for future trading.
stock price of the 30 companies and high but the SPX has not. It is a versatile and very useful tool
dividing by a divisor. The SPX is a Finally, Figure 8 shows the SPX and that we have available as technical
market capitalization-weighted index the US dollar. The chart shows the analysts.
which means that the share price of lack of correlation between the two.
each company is multiplied by the When the dollar is rising, the SPX is
DECIDING BETWEEN STRIKE PRICES As a result, the bulk of call option the long term, your odds of success
I typically buy call options. But I am buyers tends to congregate around the will remain low.
having trouble deciding which strike at-the-money strike, believing that Alternatively, if you think that
price to buy. Are there any guidelines they offer the best tradeoff between Stock XYZ is about to rise in price,
to decide which is best? the cost of entry and the probability but you are not sure how far it will
“Best” is in the eye of the beholder. of success. But the reality is, no one go, nor how long it might take to
The key is understanding the risk/ strike (in, at, or out of the money) is get there, then a longer-term in-the-
reward tradeoff among the various the “right” choice in every case. money call may be your best bet. This
strikes. For this article, we will focus will give the trade more time to work
solely on call options. But everything The first question is, out and make it less susceptible to the
here will also apply (though inversely) “What are your ravages of time decay (remember,
to put options. expectations?” every option will lose all of its time
For actively traded securities, Before buying any call option, you premium by expiration, with time
strike prices can range from deep- first must assess your expectations for decay accelerating as expiration
in-the-money (that is, the strike the underlying security. Your expec- draws closer).
price is well below the price of the The second question is, “Which
underlying security) to far-out-of- strike makes the most sense, given
The reality is that
the-money (that is, the strike price is my expectation?”
well above the price of the underlying
no one strike price The best way to address this is
security. Deep-in-the-money calls (in, at, or out of the to fully understand the difference
have certain relative disadvantages money) is the “right” in behavior between in-the-money,
compared to other strikes. They are choice in every case. at-the-money, and out-of-the-money
the most expensive to buy, offer the strikes. For our examples, we will
least leverage, are often very thinly tations may significantly influence focus on Cisco Systems (CSCO). On
traded, and sometimes have wide bid/ the strike you purchase. For example, December 12, with CSCO trading
ask spreads. suppose you absolutely, positively at $49.30 a share, we will focus on
At the far end of the spectrum, think Stock XYZ is set to explode January options expiring in 39 days
far-out-of-the-money call options higher in the near term, and your on January 20.
are typically dirt cheap and, as such, primary objective is to maximize
have something akin to an “a moth profitability. In that case, an out-of- The in-the-money strike
to the flame” appeal to many novice the-money option is most likely to First, let’s look at a deep-in-the-money
traders. While they are inexpensive help you achieve that objective. But call option. Figure 1 displays the par-
and offer the potential for massive this assumes that your expectation ticulars and risk curves for buying 1
leverage, the problem is that the turns out to be correct. If XYZ falls Jan20 2023 CSCO 40 strike price call
underlying security must typically apart instead, the OTM call will col- option at the ask price of $9.55.
make an uncharacteristically huge lapse quickly in price. If the total of Note the delta value of 96.77. That
move for the option to pay off. Bottom all your option trades fits this “this tells us that this position is roughly
line: the mathematical probability of is the big one” scenario, you may oc- equivalent to buying 100 shares of
success is exceedingly low. casionally hit a big winner, but over CSCO (which would have a delta of
February 2023 • Technical Analysis of Stocks & Commodities • 41
OPTIONSANALYSIS.COM Explore Your Options
FIGURE 1: RISK CURVES AND TRADE DETAILS, DEEP-IN-THE-MONEY FIGURE 2: RISK CURVES AND TRADE DETAILS, AT-THE-MONEY CALL
CALL OPTION. The example here buys one Jan20 2023 CSCO 40 strike OPTION. The example here buys one Jan20 2023 CSCO 50 strike call
call option at the ask price of $9.55. option at the ask price of $1.12.
FIGURE 5: RISK CURVE COMPARISON, 40-STRIKE VS. 50-STRIKE. FIGURE 6: RISK CURVE COMPARISON, 40-STRIKE VS. 60-STRIKE.
You can compare risk curves to help decide which call option to purchase. The example here compares potential trades with a strike price of $40 versus
The example trade here is based on one Jan20 2023 CSCO call option, $60 for one call option on CSCO stock expiring January 20, 2023.
with a strike price of $40 versus $50.
//@version=5
indicator( FIGURE 1: TRADINGVIEW. The intrabar efficiency ratio (IER), which is a directional version of Perry Kaufman’s efficiency ratio, is
'TASC 2023.02 In- designed to gauge the “efficiency” of intrabar price movement. The IER calculation preserves directional information that allows it to be
used as a momentum oscillator.
MARKET RAP
FIGURE 13: ESIGNAL. To create a new filter from scratch, click the
menu icon (highlighted by the red box) followed by “new filter.” Choose
“save filter as” to assign the filter a new name and save it.
T
rading liquidity is often over- very high volumes. The greatest number three-year period. Thus, all numbers in
looked as a key technical of dots indicates the greatest activity; this column have an equal dollar value.
measurement in the analysis futures with one or no dots show little Columns indicating percent margin
and selection of commodity activity and are therefore less desirable and effective percent margin provide
futures. The following explains how to for speculators. a helpful comparison for traders who
read the futures liquidity chart pub- Courtesy of CBOT wish to place their margin money ef-
lished by Technical Analysis of Stocks ficiently. The effective percent margin
& Commodities every month. is determined by dividing the margin
value ($) by the three-year price range of
Commodity futures contract dollar value, and then multiply-
The futures liquidity chart shown be- ing by one hundred.
low is intended to rank publicly traded
futures contracts in order of liquidity. Stocks
Relative contract liquidity is indicated Trading liquidity has a significant ef-
by the number of dots on the right-hand fect on the change in price of a secu-
side of the chart. rity. Theoretically, trading activity can
This liquidity ranking is produced by serve as a proxy for trading liquidity
multiplying contract point value times All futures listed are weighted equally and equals the total volume for a given
the maximum conceivable price motion under “contracts to trade for equal dol- period expressed as a percentage of the
(based on the past three years’ historical lar profit.” This is done by multiplying total number of shares outstanding. This
data) times the contract’s open interest contract value times the maximum pos- value can be thought of as the turnover
times a factor (usually 1 to 4) for low or sible change in price observed in the last rate of a firm’s shares outstanding.
Yes, You Can Cash In On Chaos! Certified Futures Option Selling Course
$ $
Chaos Traders Courses teach you how. Build and test
Learn to earn at http://moneytide.com?r=s Everything you need to know systems without
EMini MoonTide Hotline up 250 months in a row Private one-on-one training
http://daytradingforecasts.com?r=s
coding!
Learn how to be successful
Reduce risk & create a stream of income www.NeuroShell.com
JoeLuisi@aol.com • 717-329-5187
TO ADVERTISE CONTACT:
ESchramm@traders.com • (206) 660 8577
TRADERS'
RESOURCE
LINKS
TOP 10 VIEWED online trading services
You can find a wealth of in-
Product Company
formation on the Internet for
nearly any subject imaginable, 1. www.interactivebrokers.com Interactive Brokers
including investing, trading,
and the financial markets. You 2. TraderPlanet.com TraderPlanet.com, LLC
can even find a good amount 3. StockCharts.com StockCharts.com, Inc.
on technical analysis.
Each month in Stocks & 4. ablesys.com AbleSys Corporation
Commodities’ Traders’ Re-
source, we present a listing for different categories 5. Working-Money.com Technical Analysis, Inc.
of products and services related to trading, all to aid 6. MRCI Online Moore Research Center, Inc.
our readers in their pursuit of trading. This month,
we focus on the topic of online trading services. We 7. Traders.com Advantage Technical Analysis, Inc.
contacted companies that offer services to traders
online as well as financial website developers and 8. www.recognia.com Recognia
asked them to fill out an online survey form to describe 9. FreeStockCharts.com Worden Brothers, Inc.
their online presence. At our website in the Traders’
Resource area of Traders.com, you’ll find a database 10. Optionetics.com Optionetics, Inc.
of the data we collected.
These are the 10 Online Trading Services viewed most often on the Traders’ Resource
The listed online services may offer charting, price website, in order of clicks received. This is not an editorial rating or ranking. For more
quotes, and financial news and information; others information on specific products and services, try checking store.Traders.com for ar-
offer a more specialized service that may be useful chived S&C product reviews.
to investors and traders. Features may include stock
screening, articles, discussion forums, online support, courses and seminars, software, publications, trading systems,
and more. and more. We hope this will help you learn about products
to help in your trading endeavors.
TRADERS’ RESOURCE AT TRADERS.COM Just click on the Traders’ Resource link from Traders.com
In addition to the online trading services listing at and follow the online trading services category link, or use
Traders.com, you’ll also find listings of other trading-related the search feature to find products or services with specific
products and services such as brokerages, data services, attributes in this or other categories.
The information in Traders’ Resource is the most accurate at the time of posting and is subject to change. Because the vendors posting to Traders’ Resource are responsible for their own listing, Technical Analysis, Inc. declines any and all
liability for any representations made by the businesses and individuals listed. Nor can Technical Analysis, Inc. endorse any business or individual listed on Traders’ Resource. Technical Analysis, Inc. makes no warranties, express or im-
plied, as to the accuracy and reliability of claims herein. You agree to release Technical Analysis, Inc., together with its respective employees, agents, officers, directors and shareholders, from any and all liability and obligations whatsoever
in connection with or arising from your use of Traders’ Resource. If at any time you are not happy with the information posted to Traders’ Resource or object to any material within Traders’ Resource, your sole remedy is to cease using it. This
list is updated frequently. If you are aware of a business that should be listed, please email us at Editor@Traders.com.
TRADING GAP OPPORTUNITIES of the market’s gains during bull subway in 2005 or a private plane
THROUGH RELATIONSHIP-BASED market cycles occur in the overnight hitting an office tower in Milan, Italy
INSTRUMENTS gaps. However, the behavior from in 2002, or of Abu Dhabi bailing out
Most traders are familiar with market open to close of the day session can Dubai from defaulting on its bond in
gaps, and some know how to trade be quite different than that. In recent 2009. Each of these events caused
them successfully. These past few years we have witnessed that market amazing discounts at the US market
years have been very generous to participants overall pay too much open, and the market subsequently
traders in supplying frequent gaps for the opportunity to profit in long rallied to fill the gap and more. None
to trade on. I propose that there are positions. They chase performance of those events were even close to a
more to come in 2023, which would or speculate on outcomes and “pay direct hit on the US as was the terrorist
be good news for us production-based up” premarket and at the open. Often attack on the World Trade Center in
and probability-based traders. It is that opening price is the high of the 2001. That attack of September 11,
my opinion that due to current events day—and a gap fill ensues. 2001 represented a massive catalyst
globally, we will see an abundance Likewise, due to bad news, a deep that was both political and economic.
of gaps, up and down, and many of discount in the premarket and for the Investors exposed to market direc-
these gaps will present the opportun- open can occur, and again, gap fills tion were impacted negatively as
ity for retracements—what we call soon as the markets reopened and
“gap fills.” for the next four days afterwards.
There is also incredible opportunity We know historically The S&P 500 index was down −16%
for utilizing relationships in stocks that much of the YTD prior to 9/11 and then lost an-
and sectors. We can thereby use ETFs market’s gains during other −11.6% right afterwards before
as vehicles to capture profits and to bull market cycles occur turning around in a sharp rally. My
use on risk-on or risk-off days, as well office full of professional traders
in the overnight gaps.
as for strategic hedging. and I were there with our statistical
There are various type of gaps to (pairs) and risk arbitrage (mergers)
be aware of so that you can respond are often the intraday experience for portfolios. With hundreds of equity
with best practices. This will help those with the granular trading plans pairs on, and using leverage also,
you approach the opportunities that intraday requires. we had first-hand evidence of how
significantly prepared, since you resilient relationship-based trading
won’t always be successful. Catalyst-driven events and relation- was to market moves, and it still is
ship-based pairs trading to this day.
Gap fills during the day session Apart from flat opens and minimal Not all catalysts are bad for the
may be an opportunity for intraday gaps, which we consider the “noise” market in the way investors or traders
traders side of the business, there are might think. Hurricane Katrina was
Small gaps from the previous day ses- catalyst-driven events. The outcome a massive disaster to many lives and
sion’s close to the next day’s open of for US markets can be direct or “in caused a large area of destruction, but
less than 0.35% are mostly day-to-day sympathy” to other countries’ news the market did not go down. In fact,
noise and should be approached simi- or events. Historical examples of this there was a +3% rally in the week or
larly to the way you approach a flat type of sympathy could be seen with two that followed. Why? Most likely
open. We know historically that much the bombings in a London, England because natural disasters cause an
February 2023 • Technical Analysis of Stocks & Commodities • 53
Trading Perspectives
increase of GDP, and robust GDP
is bullish.
TRADINGVIEW
and wouldn’t expect the gap to be
filled immediately. The market needs
FIGURE 1: CONSUMER STAPLES (DEFENSIVE) VS. CONSUMER DISCRETIONARY (CYCLICAL).
to have its temper tantrum and then This shows a one-minute ratio chart of XLP versus XLY for December 13, 2022.
needs to work it out, usually dropping
down to test a support level. So we
might experience a technical gap as a
significant support or resistance level
is broken. This could be a moving
average or trendline break rather than
price points like matching highs or
lows. If the market has been up seven
days in a row and has its first gap
down day, I wouldn’t be so quick to
assume it has to fill the gap.
metastock.com/whats-new
This is neither a solicitation to buy or sell any type of financial instruments, nor intended as investment recommendations. All investment trading involves multiple substantial risks
of monetary loss. Don’t trade with money you can’t afford to lose. Trading is not suitable for everyone. Past performance, whether indicated by actual or hypothetical results or
testimonials are no guarantee of future performance or success. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES
SIMILAR TO THOSE SHOWN. IN FACT, THERE ARE FREQUENTLY SHARP DIFFERENCES BETWEEN HYPOTHETICAL PERFORMANCE RESULTS OR TESTIMONIALS AND THE
ACTUAL RESULTS SUBSEQUENTLY ACHIEVED BY ANY PARTICULAR TRADING PROGRAM. Furthermore, all internal and external computer and software systems are not fail-
safe. Have contingency plans in place for such occasions. MetaStock assumes no responsibility for errors, inaccuracies, or omissions in these materials, nor shall it be liable for any
special, indirect, incidental, or consequential damages, including without limitation losses, lost revenue, or lost profits, that may result from reliance upon the information presented.