A Candlestick Strategy With Soldiers And Crows

The Expert Design Studio code for Jerry D’Ambrosio and Barbara Star’s article, “A Candlestick Strategy With Soldiers And Crows,” in Stocks & Commodities October 2018 issue is shown below.”Among the more well-known candlestick reversal patterns are soldiers and crows. These occur in a three-candle pattern such as three white soldiers or three black crows. Recently, on the website Candlesticker.com, we learned of two other candle reversal patterns—a bullish one white soldier and a bearish one black crow—that require fewer candles. ”

!A CANDLESTICK STRATEGY WITH SOLDIERS AND CROWS
!Author: Jerry D'Ambrosio & Barbara Star, TASC Oct 2017
!Coded by: Richard Denning 8/05/2017
!www.TradersEdgeSystems.com

!CODING ABBREVIATIONS:
O is [open].
O1 is valresult(O,1).
C is [close].
C1 is valresult(C,1).
C2 is valresult(C,2).
H is [high].
L is [low].
V is [volume].

!INPUTS:
minPriceBull is 1.
minPriceBear is 10.
minVolume is 1000. !in hundreds
volAvgLen is 50.
dayCount is 5.
longExitBars is 7.
shortExitBars is 1.

okToBuy if simpleavg(C,50) > simpleavg(C,200) or CminPriceBull and simpleavg(V,volAvgLen)>minVolume.
BullWS if C1C1 and C>O1 and O= longExitBars.

okToSell if simpleavg(C,50) < simpleavg(C,200) or C>simpleavg(C,200)*1.1.
okToSellMkt if TickerRule("SPX",okToSell).
PVfilterBear if C>minPriceBear and simpleavg(V,volAvgLen).
BearBC if C1>C2 and C1>O1 
     and OO1 
     and countof(C1>C2,dayCount)=dayCount
     and PVfilterBear and okToSellMkt.
ExitShort if {position days} >= shortExitBars.
I ran several backtests using the NASDAQ 100 list of stocks over the period from 8/04/2000 to 8/04/2017. I varied the following inputs to find the optimum set of parameters for the candlestick patterns. For longs, the “dayCount” = 5 with an “longExitBars” = 7 produced the best results, which is shown in Figure 5. For shorts, the “dayCount” = 5 with a “shortExitBars” = 1 produced the best results, which is shown in Figure 6. Neither commission nor slippage were subtracted from the results.
Sample Chart

FIGURE 5: WINWAY. EDS summary report for longs only.
Sample Chart

FIGURE 6: WINWAY. EDS summary report for shorts only.
—Richard Denning
info@TradersEdgeSystems.com
for TradingExpert Pro

March and April (and the Train Rolls On)

The stock market is off to a flying start in 2017. We have a buy signal from the January Barometer, the 40-Week Cycle just turned bullish and most of the major U.S. indexes soaring to new all-time highs. See Figure 1.

1a

Figure 1 – Major U.S. Average hitting new highs (charts courtesy WinWay TradingExpert)

With the turn of the month near, what lies ahead for March and April? Well, it’s the stock market, so of course no one really knows for sure. Still, if history is an accurate guide (and unfortunately it isn’t always – and I hate that part), the odds for a continuation of the advance in the months just ahead may be pretty good.

Figure 2 displays the growth of $1,000 invested in the Dow Jones Industrials Average ONLY during the months of March and April starting in 1946.

2a

Figure 2 – Growth of $1,000 invested in the Dow Jones Industrials Average ONLY during the months of March and April (1946-2016)

For the record, the months of March and April combined:

*Showed a gain 53 times (75% of the time)

*Showed a loss 18 times (25% of the time)

*The average UP year showed a gain of +5.2%

*The average DOWN year showed a loss of (-3.3%)

*The largest Mar/Apr gain was +15.9% (1999)

*The largest Mar/Apr loss was (-6.0%) (1962)

Summary

So is the stock market train sure to “roll on” during the March/April timeframe? Not at all. But with “all systems Go” at the moment and with a historically favorable period approaching – and despite a lot of overly bullish sentiment beginning to bubble up – I feel compelled to stay on board at least until the next stop..

Jay Kaeppel

Chief Market Analyst at JayOnTheMarkets.com and WinWay TradingExpert Pro client. http://jayonthemarkets.com/

Disclaimer: The data presented herein were obtained from various third-party sources. While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information. The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

Out With The Old (Part 1)

Before moving on to 2017 I want to revisit a couple of “old” ideas I wrote about recently.
One 9/23/16 I wrote this article detailing a very aggressive bond trading strategy.  The model detailed essentially combined two other models that I have used for a number of years – one a “timing” model, the other  a “seasonal” model.  If either model is bullish then ticker TMF (a triple leveraged long-term treasury bond fund) is held.
As shown in Figure 1, the first model turns:
*Bullish for Bonds when the 5-week moving average for ticker EWJ drops below the 30-week moving average for ticker EWJ
*Bearish for Bonds when the 5-week moving average for ticker EWJ rises above the 30-week moving average for ticker EWJ
1a
Figure 1 – Bond Bull and Bear signals using ticker EWJ (Courtesy TradingExpert)
The second model simply holds bonds during the last 5 trading days of each month
The rules for Jay’s Very Risky Bond Model (JVRBM) are as follows:
Bullish for TMF if:
*Ticker EWJ 5-week MA < Ticker EWJ 30-week MA, OR
*Today is one of the last 5 trading days of the month
Bearish for TMF if:
*EWJ 5-week MA > EWJ 30-week MA AND today IS NOT one of the last 5 trading days of the month
Figure 2 displays the growth of $1,000 invested in TMF if the bullish conditions above apply since 4/16/2009 (when TMF started trading).
1
Figure 2 – Growth  of $1,000 invested in ticker TMF when JVRBM is Bullish (4/16/2009-12/30/2016)
Figure 3 displays the growth of $1,000 invested in TMF is the bearish conditions above apply since 4/16/2009 (when TMF started trading).
2
Figure 3 – Growth  of $1,000 invested in ticker TMF when JVRBM is Bearish (4/16/2009-12/30/2016)
For the record:
*During the Bullish periods in 2016 ticker TMF gained +72%
*During the Bearish periods in 2016 ticker TMF lost -43%
Figure 4 displays the growth of  $1,000 invested in ticker TMF during the Bullish versus Bearish periods in 2016.
3
Figure 4 – Growth of $1,000 invested in TMF during Bullish versus Bearish periods (12/31/2015-12/31/2016)
All in all not a bad year (Just don’t forget high degree of risk).
Summary
Make no mistake, this is a trading method that entails a great deal of risk.  One can reasonably ask if a long position in a triple leveraged fund of any kind is really a good idea.
But, hey, the phrase “high risk, high reward” exists for a reason.
Jay Kaeppel

Chief Market Analyst at JayOnTheMarkets.com and TradingExpert Pro client. http://jayonthemarkets.com/

We’ve been watching MIDZ – Direxion Daily Mid Cap bear 3X

We’ve been watching MIDZ – Direxion Daily Mid Cap bear 3X in our barometer the last few trading days. This 3 x bearish ticker has been in a long down trend, but recently Moneyflow has begun to show signs of accumulation and the MACD diverged up when the price was still heading down.

The 5 day barometer readings on Moneyflow and MACD in our Quotes montage are showing some bullish signs either all green or green arrow up. Maybe times are a changing.

midz4-11-16

The TradingExpert Market Log

In your WinWay TradingExpert or TradingExpert Pro package, look for the icon for Reports and open it. The Market Log is toward the bottom of the list on the left.

Trading and investing becomes clearer when you’re armed with this snapshot of the market and SP 500 stocks every day.

– AI rating on the market and how long it has been in place
– AI rating on all Sp 500 stocks percentage showing up ratings vs down ratings
– Bullish vs bearish levels on the market on multiple techncial indicators
– Bullish vs bearish percentage of SP 500 groups trending up vs down and the change from prior day
– Bullish vs bearish levels summary for all the SP 500 stocks on multiple indicators

marketlog32916

ADX Breakouts

The TradingExpert code based on Ken Calhoun’s article in the March 2016 issue of Stocks and Commodities, “ADX Breakouts,” is provided at below.

Since I mainly work with daily bar strategies, I wanted to test the ADX concept from the article on a daily bar trading system. So I set up a system that buys after a stock has based around the 200-day simple moving average (Basing200). Basing200 is coded in the system as:

  • The stock closing above the 200-SMA only 19 bars or less out of the last 100 bars, and
  • The stock closing greater than two bars above the 200-SMA in the last 10 bars.
For exits, I used the following built-in exits: a capital-protect exit set at 80% and a profit-protect exit set at 80% once profit reaches 5% or more.
I ran this system on the NASDAQ 100 list of stocks in the EDS backtester over the period 12/31/1999 to 1/11/2016. I then ran a second test on the system using the ADX filter (ADX must be greater than 40 at the time of the signal to buy). I used the same list of stocks, exits, and test period.
Figure 8 shows the first test without the filter: 883 trades, 1.84% average profit per trade, 1.51 reward/risk. Figure 9 shows the second test with the filter: 151 trades, 2.12% average profit per trade, 1.66 reward/risk.
Sample Chart
FIGURE 8: WITHOUT FILTER. Here are the EDS test results for the example system without the ADX filter.
Sample Chart

FIGURE 9: AIQ, WITH FILTER. Here are the EDS test results for the example system with the ADX filter.

Although all of the key metrics are better with the filter, there is a significant reduction in the number of trades. In fact, 151 trades would not be sufficient for a trading system over this long test period. If one wanted to use the filter, then the list of stocks would need to be increased to about 2,000 stocks.

!ADX BREAKOUTS
!Author: Ken Calhoun, TASC March 2016
!Coded by: Richard Denning, 1/11/2016
!www.TradersEdgeSystems.com

!NOTE; THIS SAMPLE SYSTEM IS FOR 
           !DAILY BAR TESTING OF ADX FILTER ONLY

SMA200 is simpleavg([close],200).
HD is hasdatafor(250).
Above200 if ( [close] > SMA200 ) .
Basing200 if CountOf(Above200,10) >2
 and CountOf(Above200,100) <20 .="" and="" basing200="" buy="" hd="" if="">200. 
ADXhi if [ADX] >= 40.
BuyADX if Buy and ADXhi.
—Richard Denning
info@TradersEdgeSystems.com