Jul 11, 2016 | educational newsletters, market timing, one minute stock
The Dow rallied for 251 points on Friday, closing at 18,147. It was up 197 points for the week. The NASDAQ finished up 80 points on Friday and up 94 points for the week.
After the BLS said that 287K new jobs were created in June, the market shot up and tested the April 20 high. The Dow actually came within one point of making a new high before pulling back from overbought conditions.
This week I’m posting three charts that show where the Dow, Gold, and the Dollar are in their current patterns.
The first chart of the Dow shows that once again, the 2-period RSI Wilder is overbought with No Trend in place. So the Dow should start to pull back early next week.
Gold and the Dollar are another matter. As you can see from the second chart, GLD continues to remain in a strong uptrend. The VTI is above the 70 level and continues to move higher. GLD closed at 130.52 on Friday and appears to be right on track for a move to the 134+ level.
But the chart of the Dollar shows a fly in the ointment. For the past three days, the VTI on the chart of UUP is showing that it is also starting to enter the Trend Mode. This is a major concern, because it is extremely unusual for the Dollar and Gold to be rising at the same time. The only time this tends to happen is when there is major trouble in the world.
It happens because people are so concerned about their money that they are flocking to safe havens. And it’s not only happening with individual investors, it’s happening with companies too. We’re seeing this in a lot of European countries now where investors are willing to pay the banks money (negative interest) just so they can get their money back at some point in the future. It’s insane!
Prior to Brexit, I warned that this could happen. I said U.S stocks, gold and the Dollar could be perceived as safe havens, and all three could rise post-Brexit. But I don’t believe this condition will last. Something has to give. A strong dollar makes it extremely difficult for most U.S. companies to sell their products abroad. It will impact their earnings. There are no two ways about it. As long as the dollar continues to rise, large cap U.S. stocks will face strong headwinds.
And right now, most U.S. stocks are not cheap. The current P/E ratio for the S&P500 is a whopping 24.61! Compare this to its historic mean of 15.60 and you will quickly see that stocks are severely overvalued. The reason they are being priced so high now is because companies are buying back shares, and investors are being pushed into stocks because most other investments are paying diddly squat. This is a very dangerous situation.
The fact that most companies are buying back their own shares is really something you should think about. Usually the only time a company buys back its own shares is because they believe the stock price is too cheap! The stock price might have been reduced because of a temporary slip in earnings or some unusual one time event. In normal times, a company would not do this. In normal times, a company would use any excess cash it generates to expand. They would buy additional equipment or hire more people. After all, they’re in business to make money. But this is NOT happening now. The reason its not happening now is because companies are worried. They are not buying new equipment or hiring new workers despite the fact that the June Jobs Report was positive. Given May’s horrible report of only 34K new jobs and its subsequent downward revision to 11K, the June report MUST be considered suspect.
So think about this. If a company is worried about its future, doesn’t it seem strange to pay on average, 25 times earnings to buy back its stock? If they were buying back stock at 10-12 tries earnings, I could understand. But at 25 times earnings, buying back shares is not a strange strategy, it’s crazy!
It’s a strategy that can support the price of the stock for a while, but longer term, it’s not something that will lead to actual growth. I also believe it’s a very risky strategy. Share buyback programs and cost cutting measures are temporary accounting tricks. They make the price of a stock seem attractive to unsuspecting investors, especially seniors, who are being forced into the stock market because they need income (dividends). But eventually, if companies are going to keep their share price supported, they will have to show profits produced by real growth. With earnings season about to begin next week, and an overbought market, it should be interesting to watch what what happens as these companies report.
Protect yourself.
That’s what I’m doing,
The Professor
Jul 7, 2016 | earnings, educational newsletters, fundamental analysis, Top Stock analyzer
Have you ever bought a stock you thought had great earnings, only to see it fail miserably?
It is not enough to have a list of great fundamental stocks. You must go deeper into the analysis of each final candidate on the list. But, what other analysis can be done? At Top Stock Analyzer we use our own proprietary tool, we call the the FATI® Score to help us unlock profits.
The FATI® Score is based upon leading investment research studies which show stocks with a lower standard deviation of earnings estimates from the consensus (higher degree of agreement among analysts) the better performance of the stock.
The study concluded stocks with a higher degree of earnings certainty (lower standard deviation of estimates) outperformed stocks with a lower degree of earnings certainty by +8.7% per year over a fifteen-year period. That is a significant performance enhancement. One which cannot be ignored.
With out FATI® Score we fine tune stock selection beyond a list of great fundamentally screened stocks. There is no magic here, nor any guarantees, but face it; investing is hard enough. Why not select stocks which have a high probability of outperforming the markets both long and short?
Each week we generate a report of high scoring stocks both long and short, then feature one stock for an in-depth analysis.
Here’s an excerpt from our May 30, 2016 newsletter and the long stock that the FATI® Score highlighted
Featured Stock – Dycom Industries – DY
Industry – Heavy Construction
Dycom Indiustries is a specialty contracting firm servicing
the telecom and utilities industries. The firm provides engineering, construction and maintenance services. They
have a long list of prominent clients, such as AT&T, Verizon, Comcast and Century Link.
Dycom is experiencing enormous
growth due to the high demand for network and mobile bandwidth. As the bandwidth demand grows, customers need to
expand the capacity of their networks. This demand has created a backlog of over $5.6 billion is contract work
for Dycom. With this years sales growth estimated at over 26% earnings should continue to be outstanding.
As of 7/6/2016 DY was up 6.59%
Here’s an excerpt from our June 6, 2016 newsletter and the long stock that the FATI® Score highlighted
Featured Stock – Copart, Inc. – CPRT
Industry – Auction/Valuation Services
Copart, Inc. provides online auction and related services to
process or sell salvage and marketable vehicles. The buyers and sellers include
insurance companies, banks and financial institutions, car dealerships, fleet
operators, and vehicle rental companies, licensed dealers and of course the
general public as well.
The company’s operations span the globe. Operations are well
established in Canada, Europe, South America and India. With increasing
revenues. declining expenses and global expansion into the Middle East, Copart
has been hitting on all cylinders. So far in 2016 the company has added 4 new
facilities to handle the increase in volume. Two in Colorado and two in Texas.
Earnings revisions are strong and are coming in higher
across quarterly and annual estimates. With a three year projected EPS growth
rate of 27% the party is not over yet. The P/E of 23 may sound expensive on a
relative basis, but with its EPS growth rate, it is actually reasonable.
As of 7/6/2016 CPRT was up 1.15%
The ‘Short Side’ List
We also analyze for candidates to consider shorting for downward trending markets. The criterion for screening is not exactly the opposite of the long screen. To be most effective with the short list and minimize your risk associated with shorting, it is best to look for newcomers to the short list on a weekly basis.
Remember, shorting is an advanced trading technique. You have unlimited loss potential, so remember to be selective, use a stop loss order and only short in a confirmed downward trending market.
Here’s an excerpt from our June 13, 2016 newsletter and the short stock that the FATI® Score highlighted
Featured Stock – Conn, Inc. – CONN
Industry – Specialty Retailer
Conn, Inc is a regional specialty retailer in the southern
part of the U.S., in particular Texas and Louisiana. They sell home appliance
and garden equipment along with an array of other electronics. The company has
seen their gross margin severely impact by the rising cost of goods. In
addition their interest expense has doubled over the past year. These items, as
well as others have cause a severe contraction in earnings.
There doesn’t seem to be any daylight coming for Conn.
Earnings are expected to decline -89% this year, the P/E stands at 73 and F1
estimates have fallen from $1.77 to $0.11 over the past 90 days. Of the six
analysts following the stock, there doesn’t appear to be any agreement on the
actual EPS as depicted in a FATI Score of 534. Remember, anything over a score
of 12 or higher is disqualified from our long recommendations list.
With a pending market decline and the growing deterioration
of Conn, Inc. fundamentals, we see this as a good shorting opportunity. As with
any short trade, place a stop order and monitor the stock daily.

As of 7/6/2016 CONN was up 12.73%
Putting it All Together
There you have it. “Fundamentals Made Simple”. Just select your stocks from the list and go right into your technical analysis. All the fundamental screening has already been done for you. Each and every week you will receive an updated screening of Top Stock Analyzer with the power of the FATI® Score. You can see the score of each stock.
Here’s our featured stock performance as of 7/6/2016
Our weekly newsletter is a collaboration between AIQ Systems LLC and Fortunatus Advisors, Inc. if you want to learn more about our service visit
Jun 14, 2016 | Uncategorized
Artificial Intelligence Market Signal issues a 0-100 to the downside on June 10, 2016

WinWay TradingExpert AI signals are designed to anticipate changes in the direction of price movement. Some are accurate and some are not. However, more often than not, the Expert Rating signals are accurate. The strongest level of confirmation for market timing signals like this 0-100 down on June 10, 2016 can be found by examining one of TradingExpert’s other market indication components.
One possible confirmation of market timing signals (Expert Ratings of 95 or greater) is the the Up/Down Signal Ratio, on the Weighted Action List (WAL), an AIQ report. A Signal Ratio of 85 or greater in the direction of the signal could be viewed as significant, as the AI system used for stocks is completely separate in terms of expert system knowledge base and data, and share no information or expert rules with the market timing system.
The image below is taken from the WinWay Reports Daily Market Log. This report pulls elements from various parts of TradingExpert. You’ll notice the 0-100 down signal on DJIA on 6/10/2016. Just below that is WAL 5-95. This is the Up/Down Signal Ratio from the Weighted Action List (WAL) in this case using SP500 stocks. This 5-95 confirms that 95% of the SP500 stocks have down signals according to the stock expert system.
The Access Plot area on the right gives a bullish/bearish consensus for the SP 500 stocks using 16 technical indicators.

The two independent components of TradingExpert are in agreement calling for the market to move in the same direction. This is a very powerful type of validation, both the equity and market timing systems have signaled a change in market direction at the same time.
While no system is perfect, it is interesting to note the previous 0-100 market timing signal occurred December 8, 2015 prior to the correction at the start of 2016.

May 2, 2016 | indicators, options, Seasonality
Not every indicator that you look at needs to generate exact buy and sell signals. There are many useful indicators that offer “perspective” more than “precision market timing.” It can be very helpful to track some of these.
The downside of course is that the more indicators you follow the more you can be susceptible to “analysis paralysis” – plus at some point you do have to have “something” that tells you “make this trade NOW!”
But the basis for considering tracking certain “perspective indicators” is that they can help to keep you from falling for those age-old pitfalls, “fear” and “greed”. As the market falls – and especially the harder it falls – the more likely an investor is to start to feel fear. And more importantly, to start to feel the urge to “do something” – something like “sell everything” to alleviate the fear.
On the flipside, when things are going great there is a tendency to ignore warning signs and to “hope for the best”, since the money is being made so easily.
In both cases a perspective indicator can serve as – at the very least – a slap upside the back of the head that says “Hey, pay attention!”
So today let’s review one of my favorites.
The JK HiLo Index
OK, I will admit it is one of my favorites because I developed it myself. Although in reality the truth is that it simply combines one indicator developed long ago by Norman Fosback and another that I read about in a book my either Martin Pring or Gerald Appel.
The calculations are as follows:
A = the lower of Nasdaq daily new highs and Nasdaq daily new lows
B = (A / total Nasdaq issues traded)*100
C = 10-day average of B
D = Nasdaq daily new highs / (Nasdaq daily new highs + Nasdaq daily new lows)
E = 10-day average of D
JK Hi/Lo Index = (C * E) * 100
In a nutshell:
*High readings (90 or above) suggest a lot of “churning” in the market and typically serve as an early warning sign that a market advance may be about to slow down or reverse. That being said, a close look at Figure 1 reveals several instances where high readings were NOT followed by lower prices. However, as a perspective indicator note the persistently high reading starting in late 2014. This type of persistent action combined with the “churning” in the stock market could easily have served as a warning sign for an alert investor.
*Low readings (20 or below) indicate a potential “washout” as it indicates a dearth of stocks making new highs. Readings under 10 are fairly rare and almost invariably accompany meaningful stock market lows.
Figure 1 displays the Nasdaq Composite (divided by 20) with the JK Hi/Lo Index plotted since 2011.
Regarding the difference between a “timing” indicator and a “perspective” indicator, note the two red lines in Figure 2. The JK HiLo Index first dropped below 20 on the date marked by the first red line. It finally moved back above 20 on the date marked by the second red line.
Figure 2 – JK HiLo Index (red line) versus Nasdaq Composite (/20) since 2015 (Courtesy TradingExpert)
Can we say that the JK HiLo Index “picked the bottom with uncanny accuracy”? Not really. The Nasdaq plunged another 10% between the first date the indicator was below 20 until the actual bottom.
Still, can we also say that it was useful in terms of highlighting an area where price was likely to bottom? And did it presage a pretty darn good advance? I think a case can be made that the answers to those questions are “Yes” and “Yes”.
Summary
The bottom line is that while there was a great deal of fear building in the market during January and February, an indicator such as this one can help alert an investor the fact an opportunity may be at hand.
Jay Kaeppel
Chief Market Analyst at JayOnTheMarkets.com and TradingExpert Pro client
http://jayonthemarkets.com/
Apr 13, 2016 | chart patterns, swing trading, trading strategies
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.

Apr 7, 2016 | chart patterns, MACD, options
In this article I detailed one relatively “simple” approach to using the MACD indicator to identify potentially bullish opportunities. In this piece we will look at one to actually put those signals to use.
The Limited Risk Call Option
One possibility upon generating a bullish signal as described in the last article is to buy shares of the stock/ETF/index/etc in question. Not a thing wrong with that. But there is a less expensive alternative.
Figure 1 reproduces Figure 1 from the last piece showing ticker XLF. Let’s look at the signal generated on 2/12/16.
One alternative that I like is to use the “Percent to Double” routine at
www.OptionsAnalysis.com to find an inexpensive call option that has lot of upside potential. The input screen with a few key input selections highlighted appears in Figure 1a (if it looks intimidating please note that a reusable set of criteria can be captured in a “Saved Wizard”, which appear towards the lower right of of Figure 1a. Once a set of criteria is saved it can be reused by simply clicking on the Wizard name and clicking “Load”.)
NOTE: My own personal preference is to consider options that have at least 45 days left until expiration (as time decay can become a very negative factor as option expiration draws closer).
Figure 1a – Percent to Double
Figure 1b displays the output screen.
NOTE: For my own purposes I like to see a Delta of at least 40 for the option I might consider buying (nothing “scientific” here. It is just that the lower the Delta the further out-of-the-money the option strike price is. I prefer to buy a strike price that is not too far from the current price of the stock; hence I look for a Delta of 40 or higher). With XLF trading at $20.49, in Figure 1b I have highlighted the 2nd choice on the list – the April 21 call – which has a delta of 43.
So a trader now has two alternatives:
*Buy 2 Apr 21 strike price XLF calls for $70 apiece ($140 total cost; 86 total deltas)
*Buy 86 shares of XLF at $20.49 apiece ($1,760 total cost, 86 total deltas)
Figure 1c displays the particulars for buying a 2-lot of the April 21 call for a total cost of $140.
By 3/18 the shares had gained 11% and the Apr 21 call had gained 143%. See Figure 1d.
Summary
Obviously not every trade works out as well as this one. Still, the key things to remember are:
*The option trade cost $140 instead of $1760
*The worst case scenario was a loss of $140.
Something to think about.
Chief Market Analyst at JayOnTheMarkets.com and TradingExpert Pro client
Mar 30, 2016 | indicators, MACD
One danger of getting “way to into” the financial markets is that you can find yourself progressing into some needlessly complicated stuff (“Hi, my name is Jay”). I mean it is only natural to wonder “hey, what if I divided this indicator value by that indicator value” and such. But once you start finding yourself taking an exponential moving average of a regression line with a variable lag time, well, you can find yourself “a tad far afield.” (Trust me on this one). Which leads us directly to:
Jay’sTradingMaxim #44: Every once in awhile it pays to remember that the end goal is simply to make money. The more easily the better.
So today let’s go back to a simple “basic approach.”
The Bullish MACD Divergence
We will define an “asset” as any stock, ETF, commodity, index, etc. that can be traded on an exchange (and for my purposes, there should be a liquid market for options on that asset).
Step 1. An asset price falls to a new 20-day low and the MACD value is less than 0. Note the MACD value on this date.
Step 2. Not less than one week but not more than 2 months later:
*Price closes below its closing level in Step 1
*The MACD indicator is above its level at the time of Step 1
Step 3. The next time the daily MACD indicator “ticks higher” a buy alert is triggered
Can it really be that simple? The Good News is “Yes, it can.” The Bad News is that “It isn’t always.” To put it another way, like a lot of trading methods it can generate a surprising abundance of useful trading signals. However, there is no guarantee that any given signal will turn out to be timely. In other words:
This method gives you a good guideline for when to get in, but:
*It may be early at times (i.e., price will move lower still before advancing)
*It will at times be flat out wrong
*You still have to decide when to exit the bullish position.
*Call options are useful with this approach as it allows you to risk a limited amount of capital.
Examples
Figures 1 through 4 highlight some recent examples using this method. Note that the charts show only entry points. Exit points are “a separate topic”.

Figure 1 – Ticker XLF (Courtesy TradingExpert Pro)

Figure 2 – Ticker WMT (Courtesy TradingExpert)

Figure 3 – Ticker AAPL (Courtesy TradingExpert)

Figure 4 – Ticker GDX (Courtesy TradingExpert)
As you can see, some signals were quite timely while others were quite early. For the record, I started getting bullish on gold and gold stocks early in 2016 based in part on the multiple alerts that appear in Figure 4.
Chief Market Analyst at JayOnTheMarkets.com and TradingExpert Pro client
Mar 30, 2016 | group sector rotation, Reports, swing trading, trading strategies
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

Mar 29, 2016 | EDS code, Expert Design Studio, indicators
Here is some code for use in AIQ based on Markos Katsanos’s article in this issue, “Trading The Loonie.” The code and EDS file can be downloaded from www.TradersEdgeSystems.com/traderstips.htm.
The code I am providing contains both the divergence indicator and a long-only trading system for the NASDAQ 100 list of stocks. Along with fx trading online, I wanted to try the divergence idea and the author’s entry rules on the NASDAQ 100 stocks. The stocks are traded long using the author’s entry rules with two of the parameters adjusted as shown at the top of the code file. The exit has been changed completely to use a profit protect (protect 50% of profits once a 20% profit is reached), a stop-loss (protect 75% of capital), and a time-stop exit (exit after 21 days). I used the NASDAQ 100 index (NDX) in place of the crude oil futures. The assumption is that since the stocks on the list are all in the NDX, they would generally be correlated to the index. The author’s entry rule filters out those with a negative correlation to the index. Note that I changed the minimum correlation from a -0.4 to 0.0. In addition, I found that increasing the minimum divergence from 20 to 2,000 increased the Sharpe ratio and decreased the maximum drawdown without affecting the annualized return.
Figure 6 shows the equity curve versus the NASDAQ 100 index for the period 1/5/2000 to 10/14/2015. Figure 7 shows the metrics for this same test period. The system clearly outperformed the index.

FIGURE 6: AIQ. Here is a sample equity curve for the modified divergence system versus the NASDAQ 100 index for the period 1/5/2000 to 10/14/2015.

FIGURE 7: AIQ. Here are the metrics for the modified system and the test settings.
!TRADING THE LOONIE
!Author: Markos Katsanos, TASC December 2015
!coded by: Richard Denning 10/17/15
!www.TradersEdgeSystems.com
!Set parameters:
Define Len 20. !Default is 20
Define F1 2. !Default is 2
Define F2 4. !Default is 4
IDX is "NDX". !NASDAQ 100 index
IDXsLen is 40. !Default is 40
minDIVERG is 2000. !Default is 20
minROC is 0. !Default is 0
minCorrel is 0.0. !Default is -0.4
!Close percent relative to BB band width for stock:
Variance is Variance([close],Len).
StdDev is Sqrt(Variance).
SMA is simpleavg([close],Len).
stkBB is 1+([close]-SMA+F1*StdDev)/(F2*StdDev).
!Close percent relative to BB band width for index:
IDXc is tickerUDF(IDX,[close]).
VarianceIdx is Variance(IDXc,Len).
StdDevIDX is Sqrt(Variance).
SMAidx is simpleavg(IDXc,Len).
idxBB is 1+(IDXc-SMAidx+F1*StdDevIDX)/(F2*StdDevIDX).
DIVERG is (idxBB-stkBB)/stkBB*100. !PLOT AS CUSTOM INDICATOR
DIVERG1 is valresult(DIVERG,1).
ROC2 is ([close]/val([close],2)-1)*100.
ROC3 is ([close]/val([close],3)-1)*100.
ROC3idx is tickerUDF(IDX,ROC3).
IDXsma is simpleavg(IDXc,IDXsLen).
IDXsma2 is valresult(IDXsma,2).
HHVdiverg is highresult(DIVERG,3).
Setup1 if highresult(DIVERG,3) > minDIVERG.
Setup2 if DIVERG < valresult(DIVERG,1).
Setup3 if ([close]/val([close],2)-1)*100 > minROC.
Setup4 if IDXsma > valresult(IDXsma,2).
Setup5 if pCorrel > minCorrel.
Buy if Setup1 and
Setup2 and
Setup3 and
Setup4 and
Setup5.
BuyAlt if Buy.
LongExit1 if MACD<sigMACD and valrule(MACD>sigMACD,1) and
Stoch > 85.
LongExit2 if lowresult(DIVERG,3)<-20 and ROC3idx<-0.4.
LongExit3 if [close]<loval([close],15,1) and pCorrel<minCorrel.
LongExit if LongExit1 or LongExit2 or LongExit3.
AlterLongExit if {position days} >=21 or [close] <= (1-0.25)*{position entry price}.
!Code to Calculate Pearson's R [for entry]:
! PeriodtoTest is the number of lookback days.
! IndexTkr is the Instrument that you which to compare your list to.
PeriodToTest is Len.
IndexTkr is IDX.
ChgTkr is ([open] / val([open],PeriodToTest)-1)*100.
ChgIdx is TickerUDF(IndexTkr,ChgTkr).
Alpha is ChgTkr - ChgIdx.
ValUDF is (([close]-[open])/[open]) * 100.
ValIndex is TickerUDF(IndexTkr, ValUDF).
ValTkr is ValUDF.
SumXSquared is Sum(Power(ValIndex,2), PeriodToTest).
SumX is Sum(ValIndex, PeriodToTest).
SumYSquared is Sum(Power(ValTkr,2), PeriodToTest).
SumY is Sum(ValTkr, PeriodToTest).
SumXY is Sum(ValTkr*ValIndex, PeriodToTest).
SP is SumXY - ( (SumX * SumY) / PeriodToTest ).
SSx is SumXSquared - ( (SumX * SumX) / PeriodToTest ).
SSy is SumYSquared - ( (SumY * SumY) / PeriodToTest ).
!Pearson's R and Pearson's Coefficient of Determination:
pCorrel is SP/SQRT(SSX*SSY).
!Code to Calculate Pearson's R [for exit]:
! PeriodtoTest is the number of lookback days.
! IndexTkr is the Instrument that you which to compare your list to.
PeriodToTestX is 3*Len.
IndexTkrX is IDX.
ChgTkrX is ([open] / val([open],PeriodToTestX)-1)*100.
ChgIdxX is TickerUDF(IndexTkrX,ChgTkrX).
AlphaX is ChgTkrX - ChgIdxX.
ValUDFX is (([close]-[open])/[open]) * 100.
ValIndexX is TickerUDF(IndexTkrX, ValUDFX).
ValTkrX is ValUDFX.
SumXSquaredX is Sum(Power(ValIndexX,2), PeriodToTestX).
SumXX is Sum(ValIndexX, PeriodToTestX).
SumYSquaredX is Sum(Power(ValTkrX,2), PeriodToTestX).
SumYX is Sum(ValTkrX, PeriodToTestX).
SumXYX is Sum(ValTkrX*ValIndexX, PeriodToTestX).
SPX is SumXYX - ( (SumXX * SumYX) / PeriodToTestX).
SSxX is SumXSquaredX - ( (SumXX * SumXX) / PeriodToTestX ).
SSyX is SumYSquaredX - ( (SumYX * SumYX) / PeriodToTestX ).
!Pearson's R and Pearson's Coefficient of Determination:
pCorrelX is SPX/SQRT(SSXX*SSYX).
!MACD code:
S is 12.
L is 25.
X is 9.
ShortMACDMA is expavg([Close],S).
LongMACDMA is expavg([Close],L).
MACD is ShortMACDMA-LongMACDMA.
SigMACD is expavg(MACD,X).
!Stochastic
StochLen is 30.
Stoch is 100 * (([Close]-LoVal([Low],StochLen)) /
(HiVal([High],StochLen) - LoVal([Low],StochLen))).
List if 1.
—Richard Denning
info@TradersEdgeSystems.com
Mar 29, 2016 | EDS code, trading strategies
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.

FIGURE 8: WITHOUT FILTER. Here are the EDS test results for the example system without the ADX filter.
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.