Gnaritas = Knowledge;Maximus = Great/Large This blog is dedicated to the Divinity of Knowledge.
Monday, July 19, 2010
Chips Ahoy!!
Friday, July 16, 2010
Data Visualization Tools
2) Postgres -- for database management;
3) World Programming System (WPS) -- for SAS legacy data programming;
4) Tibco -- for data visualization;
5) R -- for predictive modeling/data mining.
The developing interface between Tibco and R is very promising.
http://www.panopticon.com/
http://www.qlikview.com/us/explore/products
Wednesday, June 23, 2010
QCOM Snapdragon
Saturday, June 19, 2010
Questions Every Investor Should Ask
Friday, May 28, 2010
Bullish Strategies
Bearish Strategies
Neutral Strategies
Thursday, April 29, 2010
Friday, April 2, 2010
Part 2 from Brett on Price Targets
earlier one, I will be keeping it on the site for a limited time as a
thanks to current readers. If the ideas interest you, you might want
to print the post out or jot down the relevant ideas.
In this post, I will explain how I calculate the daily price targets
that I post each morning via Twitter. I'm in the process of tweaking
my weekly target calculations and will wait for a future occasion to
share those.
CALCULATIONS
The calculations begin with the day's pivot level, as I define it:
Pivot = (H + L +2C)/4
Today's pivot price is defined as the average of yesterday's high
price plus yesterday's low price plus two times yesterday's closing
price. That gives us an approximation of yesterday's average trading
price.
Going back to late 2002, we touch the pivot level during today's trade
on 70% of all trading days. This is a useful "reversion" target if we
open above the pivot, but cannot sustain buying or if we open below
pivot and cannot sustain selling. (The current day's VWAP for the
index futures contracts is generally my first reversion target).
As mentioned in the earlier post, the overnight high and low price and
the prior day's high and low are generally my first price targets.
Along with the pivot level and VWAP, those are generally targets for
the first trades I will place during the day. Once I know those
targets, it's a matter of: 1) discerning the balance between buying
and selling sentiment, as well as sector and intermarket dynamics, to
gauge direction; 2) assessing today's volume relative to yesterday's
(and the prior five days' average volume) to gauge evolving
volatility; 3) executing the trade in the identified direction at a
price that provides a favorable level of reward relative to risk; and
4) holding the trade to the price target most likely to be hit given
the market's current strength and volatility.
(The above paragraph is a concise description of how I trade on the
day time frame).
The price targets above the prior day's high are identified as R1, R2,
and R3. The price targets below the prior day's low are identified as
S1, S2, and S3.
To calculate this levels, we need an estimate of recent volatility.
That estimate in my calculations is the median daily price range for
the past five trading sessions in SPY. Thus, each day we calculate the
Daily Range: DR=((H-L)/O)*100. That is the difference between the
day's high and low prices divided by the opening price multiplied
times 100 (to give us a percentage). The Volatility estimate (V) for
our calculations is the median of the prior five days' DR values.
As I mentioned earlier, going back to 2002, the median volatility for
the prior five days correlates with today's volatility by .80. Knowing
V gives us a good idea for today's DR.
So now we can define our R and S price targets:
R1 = Pivot + (.60*V)
S1 = Pivot - (.60*V)
Going back to 2002, we touch R1 or S1 about 84% of the time. If the
volume today is anything like yesterday's volume, R1 or S1 should be
hit during the day.
R2 = Pivot + (.80*V)
S2 = Pivot - (.80*V)
Going back to 2002, we touch R2 or S2 about 66% of the time. If
today's volume is above average, we should hit R2 or S2 during the
day.
R3 = Pivot + V
S3 = Pivot - V
Going back to 2002, we touch R3 or S3 about 50% of the time. If
today's volume is meaningfully above average, we should hit R3 or S3
during the day.
R4 = Pivot + 1.2 V
S4 = Pivot - 1.2 V
Going back to 2002, we touch R4 or S4 about 36% of the time. We need
to see volume today much greater than the recent average volume to
have confidence in hitting R4 or S4.
Obviously, you could define R5 and S5 levels (and beyond) accordingly
for relatively rare occasions of high volume trending and range
breakouts.
NOTES ON THE CALCULATIONS
These price levels were calculated and tested empirically in Excel
using historical data. They are not based on any Fib or any other
numerical scheme.
A worthwhile tweak on the above methodology would be to use today's
Open price in lieu of the Pivot for the calculations.
Another tweak substitutes weekly data for daily data to use for swing trading.
Another tweak is to adapt the formulas to different trading markets.
Knowing how far a market is likely to move in a direction is
invaluable in guiding the placement of stop and exit levels and
calculating the risk/reward parameters of a trade. By adjusting price
targets for recent volatility, traders can adapt quickly to faster and
slower market conditions. The price targets are not necessarily hard
exit levels; rather, they provide anticipation of where those proper
exits are likely to occur.
Wednesday, March 31, 2010
Brett's Formula
readership, I thought I would share some of my ideas and methods for
calculating price targets. If you're new to this topic, it would be
helpful to review my prior posts on hidden volatility assumptions
anddefining effective price targets with the previous day's data.
What we saw in that latter post was that using the previous day's
high, low, and average prices provides us with relatively high
probability targets for the current trading day.
In my own work, I do not use the average price as defined in the post
(H+L/2). Rather, I use (H+L+2C/4). This is the "pivot" level that I
post each morning for SPY via Twitter. This overweights the closing
price relative to the prior day's high and low, so that--on
average--the pivot price will be closer to the current day's open.
Going back to late 2002 (N=1894 trading days), my Excel calculations
show that we have touched the previous day's pivot on 70% of all
trading days.
For this reason, the previous day's high, low, and pivot prices are
key near-term price targets for my trading. As I mentioned previously,
even closer price targets are the overnight high and low prices from
the ES futures.
If I anticipate a slow trading day with a narrow price range and we
open in the middle of the overnight and prior day's ranges, I will
look for trades to take out the overnight high or low price and then
the previous day's high or low. If I anticipate a slow trading day and
we open nicely above or below the overnight and prior day's pivot
levels (for overnight "pivot" I use the day's VWAP), I look for a move
back to VWAP and then the previous day's pivot if buying or selling
can't be sustained.
If I anticipate an average or busier trading day, I look toward more
distant profit targets. Below is one way of calculating those that
builds on the previous post.
FORMULAS FOR CALCULATING PRICE TARGETS
* Let us call the difference between yesterday's high and low prices
R, for range. That means that the difference between yesterday's
average price and yesterday's high is 1/2 R and the difference between
yesterday's average price and yesterday's low is 1/2 R. (We're using
average price, not the pivot level, for this calculation. More on
pivot-based calculations in the next post in the series).
* If we calculate (yesterday's average price + 3/4 R), we will get a
price level above yesterday's high that we'll call R1. If we calculate
(yesterday's average price - 3/4 R), we will get a price level below
yesterday's low that we'll call S1.
* Going back to late 2002, the odds of hitting R1 or S1 during today's
trade are 67%. Two-thirds of the time, we'll hit R1 or S1. It's a high
probability target if volume is average or better.
* If we calculate (yesterday's average price + R), we will get a price
level above R1 that we'll call R2. If we calculate (yesterday's
average price - R), we will get a price level below S1 that we'll call
S2.
* Going back to late 2002, the odds of hitting R2 or S2 during today's
trade are 41%. We want to see above average relative volume (and
today's volume > yesterday's volume) to assume that we'll touch R2 or
S2.
* If we calculate (yesterday's average price + 5/4R), we will get a
price level above R2 that we'll call R3. If we calculate (yesterday's
average price - 5/4R), we will get a price level below S2 that we'll
call S3.
* Going back to late 2002, the odds of hitting R3 or S3 during today's
trade are 26%. We would need to see significantly above average
relative volume (and today's volume significantly > yesterday's
volume) to assume that we'll touch R3 or S3.
VARIATIONS OF THE ABOVE WORTH RESEARCHING:
* Instead of using yesterday's average price as a base for
calculation, you can use the traditional pivot formula of (H+L+C)/3.
* Instead of using yesterday's average price as a base for
calculation, you can use today's open. That is especially helpful when
the overnight session leads to an opening price far from yesterday's
average price.
* Instead of using R values based on yesterday's trading range, use
the average trading range from the prior N days. My research shows
some benefit to going out several days, but returns are diminishing
out to a five-day lookback.
Regardless of your calculation method, you will find that R increases
as the market's volatility increases and decreases as the market's
volatility wanes. This automatically adjusts your price targets for
the market's most recent volatility.
Going back to late 2002, yesterday's volatility correlates with
today's volatility by a whopping .75. That means that we can predict
more than half of the variance in today's volatility simply by knowing
the prior day's trading range. If we go out to a five-day period, the
correlation between the prior five-day's average range and today's
range has been .80.
Once you become good at tracking today's volume relative to
yesterday's (or the prior five days'), you can make very reasoned
estimates as to which levels we're likely to hit during the day. That
considerably strengthens our exits and helps us maximize our
risk/reward.
This post and the next one (tomorrow) will remain on the blog for a
limited time. If the research is of interest, you might want to print
out the post or copy the relevant data.
Thanks again for all the interest and support--
Brett
.
Tuesday, March 30, 2010
Things to look for after a breakout
It is much easier to act on market action if you've visualized and planned for it in advance.
Monday, March 22, 2010
Birth of a trade - Selling a Call
Thursday, March 11, 2010
Thursday, January 28, 2010
Executing a trade countertrend
single best contributor to the profitability of my trading in the last
couple of years.
And here it is, in all its simplicity:
I trade with the trend.
I execute the trade countertrend.
That is, if I identify an uptrend at time frame X, I wait for a
pullback at time frame (X-1) to enter the market on the long side. If
I identify a downtrend at time frame X, I wait for a bounce at time
frame (X-1) to enter the market on the short side.
If I'm a buyer, I wait for the sellers to take their turn in the
market and show me what they've got. If they cannot push the market
below a prior low reference point, I'll buy and use that reference
point as a stop.
If I'm a seller, I let the buyers rally the market and show me how far
they can take it. If the buying dries up below a reference prior high,
I'll sell and use that reference area as a stop.
If we have a good trending move and a weak countertrend dip or bounce,
we'll usually at least test the prior highs or lows. That means that
even a trade that doesn't roar to new highs or lows can often be
exited with some profit.
That execution edge can make all the difference in terms of
profitability; it has for me.
Why is trading difficult?
minds. And that is why intraday trading is so difficult.
Mistakes of a Scientific Trader
1) Mistake #1: Trading Without Understanding - Sometimes traders put their capital at risk without taking the time to observe market patterns and integrate these into a concrete explanation of what is happening in the marketplace. A number of traders I work with observed the recent rise in interest rates very early in the move and formulated ideas of shorting rate-sensitive sectors. They tested their understandings with initial positions and scaled into the idea as markets confirmed their views. How different this is from simply putting a position on because a market is making a new high or low!
2) Mistake #2: Oversizing Positions - Many psychological problems in trading can be traced back to excessive position sizing. Traders trade too large for their account size in order to make windfalls, not in order to test their ideas. Scientists conduct many tests before any hypothesis is truly supported, and they test many hypotheses before they accept theories as versions of truth. If you were a lab scientist, would you risk your entire grant funding on a single experiment? Of course not; a single study could fail for a variety of reasons, including experimenter error. Similarly, any single trade or idea can fail for a variety of reasons. A true scientist knows that his or her understanding will always fall short of reality. That is why scientists will conduct doable experiments to refine their ideas before they dedicate significant resources to large investigations.
3) Mistake #3: Not Knowing When You're Wrong - A scientist does not actually test his or her hypotheses. Rather, each experiment is framed as a test of the "null hypothesis": the proposition that variables of interest do *not* affect the outcomes under study. Scientists thus never accept their hypotheses; they at best only reject null hypotheses. Embedded in this perspective is the idea that it is crucial to know when it is necessary to accept that mull hypothesis and conclude that a view is not supported. Can you imagine a qualified scientist becoming emotional because an experiment produces no significant differences and then conducting numerous revenge studies?! Traders, however, sometimes do just that. They don't have rational stop losses identified and so can't terminate their "experiment" at a prudent time. That leads them to take on excessive losses and react out of frustration rather than understanding.
A simple checklist would aid many traders who would become their own performance coaches:
1) What is my understanding of this market and what is the evidence behind it?
2) How much of my capital am I initially willing to devote to my understanding of this market?
3) What outcome(s) would lead me to devote more capital to my idea and what is the maximum portion of my portfolio I'm willing to put at risk on this idea?
4) What outcome(s) would lead me to abandon my idea and how much am I willing to lose on this idea?
Many bad trades could be avoided simply by requiring oneself to answer these questions aloud prior to any trade.
A Trader Scientist
What do scientists do? First, they observe regularities in nature. They look for patterns: repeated sequences of events and commonalities among structures. Those regularities differentiate what is meaningful from what is random.
After observing regularities, scientists attempt to explain these. Explanation is the role of theory. The theory is the scientist's way of making sense of the world. Theory is not truth; it is a first approximation at truth.
Scientists gain confidence in their explanations by testing them. If a theory is meaningful and accurate, we should be able to use it to generate future observations. These predictions are hypotheses for the scientist. By testing hypotheses, we keep an open mind with respect to our observations and explanations.
Finally, once empirical tests provide fresh observations, scientistsrevise their explanations of nature and use these to generate further hypotheses, observations, and revisions. Knowledge, for a true scientist, is always provisional: that is what separates science from dogma.
The scientific mindset is one of humility: a recognition that our best theories are only approximations and that many of our tests of hypotheses are apt to fail. When we trade, we have an implicit or explicit theory about the current market, and our trade tests a hypothesis that we frame around our explanation. That is why a scientific trader never wagers too much on any single trade. Nature will always be more complex than our science, and our understanding will always be partial. Such a perspective is a powerful antidote to overtrading and overconfidence.
Perhaps I notice that, as selling hits the market, volume is declining and fewer individual stocks are making fresh price lows. I also notice that one sector of stocks, the semiconductors, are actually moving higher and gaining money flow. Bonds, which had been falling with stocks, are now catching a bid. I hypothesize that the market is running out of sellers, that we are in the process of bottoming, and that we will likely see short covering as a result. That should propel the market higher.
Having formed this hypothesis, I make note of a recent short-term high price in the semiconductors and the low price. I say to myself, in essence, "I think we will hit this price (prior high) before we touch that price (recent low)." In other words, I am willing to risk a possible move back to the low in order to participate in the hypothesized move to the high.
This is only a hypothesis, however; it is not truth. For that reason, as a scientist, I must remain open to data that tell me my hypothesis is not supported. A fresh influx of sellers hitting bids; a fresh drop in bonds--many factors could alert me to a potential problem with my hypothesis. I also must keep my bet on this hypothesis modest: to risk much of my capital on the idea is to treat the tentative formulation as absolute truth.
It is in this context that every good trade tests a hypothesis. When we observe a pattern, frame an idea, test the idea with a trade, and actually profit, our idea--our theory--is supported. That may lead us to another trade that extends this idea. Conversely, if we do not profit from our theory, we may need to go back to observation mode and revise our explanations.
Thus it is that a scientific trader will gain confidence and become a bit more aggressive when his or her ideas are confirmed; a bit more cautious when ideas do not pan out. When you trade like a scientist, every good trade provides you with information, because every good trade is a solid test of your market understanding. For this reason, the scientific trader values losing trades. They, no less than the winners, are data to be assimilated and can push you to further market insight.
A quality of excellent trader
Finding Opportunity in a loss
That is good trading.
One trader I recently talked with took exactly those actions--and one more. He saw that the breakout was false, stopped out of his position, and took a modest loss. But he had mentally rehearsed what he would do under just such a scenario. He had told himself that if this long trade didn't work out, the market could retrace the entire prior day's range.
So he stopped out, took his loss, and flipped his position to be short.
He made money on the day.
That is great trading.
The losing trade set him up for a winning day, and all because he was prepared to act on opportunity, not just prepared to limit risk.
A few more Quotes
"Woeful Wails" - My Dad's account of what happened in 1989 at Srinagar, Kashmir
A Shiver, a shudder goes down my spine To have lost what once was mine The merciless devils who strode the streets With guns pointing at u...
-
SEOUL, South Korea (AP) -- Samsung Electronics Co. said Monday it will work with Sprint Nextel Corp. to bring fourth-generation high speed w...
-
Let's say, for example, that you signed up to be COO of a startup company and the CEO founder offered you 5% of the company. The CEO say...
-
As I mentioned earlier today, in appreciation of the generous readership, I thought I would share some of my ideas and methods for calculati...