Thursday, October 21, 2010
Computers do not have psychology
In previous posts, I discuss equities investing or stocks using technical analysis (TA) to guess the market (see here, here, here and here). One common form of TA is known as Elliot Wave Principle (EWP) which depends on the collective psychology of investors charting price patterns over time into 5 distinctive waves. Over the last couple of years as I have dabbled in stock investing I have attempted to use EWP unsuccessfully with the New York Stock Exchange indexes. EWP came to my attention in the 2007-2009 crash as the price action followed the 5 waves. If it was true then, it must be true just a few months later? I have come to the conclusion that TA including EWP is not very effective at the current time in US stock markets because of how the market's composition has changed even in a brief period. It has to do with investor psychology (or lack of) and other outside influences.
I will give a brief history of how the US stock market changed over the last couple of decades. In 2001, markets began to trade stock in $0.01 increments in a process known as decimalization. Prior to this, all stocks were traded in fractions of (n/16) fractions of dollars. One advantage of fractions was the fact stock brokers with ask and bid prices at the increments. The slight (n/16) difference between the bid and ask price was the amount a stock broker could make buying and selling blocks of stocks for customers. The second innovation was the market switched to partially computerized operations in NYSE operations and is fully computerized in the NASDAQ market. In a nutshell, the pits with traders buying and selling stock are gone. The price action mostly occurs within a giant computer.
This "modernization" of the markets led to new kind of investment strategy, computerized trading at a quick speed. Basically, picture supercomputers directly connected to the exchange computers through a high speed Internet connection. Why would anyone do that? It is capitalizing on the same trade strategy as day traders. Buy and sell millions of stock simultaneously of just a few pennies of profit and the pennies turn into hundreds of thousands of dollars quickly. Add in the ability to trade put in quotes and cancel transactions before they are processed, one has quite a money making strategy. This process is known as high-frequency trading (HFT).
How does this influence TA? As stated before, TA is based upon investor psychology and the desire to hold stock over various lengths of time from hours up to years. Traders make buys and sells in a response to price movement creating the distinctive TA patterns. HFTs buy and sell stock within a matter of seconds. HFTs can even move millions of stocks down to milliseconds time frames! The HFT responds in a near instantaneous, mechanized manner to stock movement. The resulting trade psychology does not appear on the stock price charts. If HFTs were a small minority in the stock community, it would not directly influence TA. This was partially the case during the 2007-2009 crash with HFTs being ~40 % of the market's participants. EWP traced out the 5 distinctive waves. Currently, HFT represents ~60 % of all trades made on the US exchanges and can account for ~70 % on light trading days. Since this represent the majority of trades, the price action is not driven fully by investor psychology making TA less effective. I believe TA is useless over short periods of time.
One other factor distorting the markets are US government authorities. The government's stimulus and various Federal Reserve programs (TARP, TALF, POMO and etc) are putting money into investors hands in indiscriminate, unequal ways. The "free" money ends up being investing in the market in unorthodoxy manners.
The aha moment I had last night was using TA to avoid these unwanted outside influences into the markets. The only market to my knowledge that is too large ($100s billions per day) for authorities to significantly manipulate are foreign exchange markets (FX). These markets are based upon converting money into different currencies worldwide and HFTs would also have no interest in these markets. What FX markets can follow using TA are carry trades and whether investors are seeking risk or are seeking a safe haven for their investing.
Thursday, September 23, 2010
Tweeting trouble
New forms of web sites are arising on the internet daily. One popular site is Twitter, a site where users "Tweet" short messages 140 characters or less. It is microblogging or blogging simple statements. I am assuming a large portion of this blog's readers are avid users. Yahoo! reports that a 17 year old Australian teenager caused a storm on Twitter recently with a short, malicious Javascript code that was spread using Tweets.
Pearce Delphin, whose Twitter name is @zzap, admitted exposing a security flaw which was then pounced upon by hackers, affecting thousands of users and causing havoc on the microblogging site for about five hours.Delphin, who lives with his parents in Melbourne, said he tweeted a piece of "mouseover" JavaScript code which brings up a pop-up window when the user hovers their cursor over the message.
As is often found with computers, cutting edge things are performed by students messing around with simple computer code. I had a lot of computer scientist major friends in college that did similar things. This is an example where education enriches a person's life, but demonstrates that creativity is within. The young man was only in high school.
What is interesting about the incident is the extent which the code caused Twitter interruptions world wide. Once the genie escaped from the bottle, it was not returning. It eventually came back to haunt the code's creator.
Twitter apologised to its millions of users after the "mouseover bug" raged through the site, opening pop-up windows in Web browsers and automatically generating tweets from other accounts.
White House press secretary Robert Gibbs and Sarah Brown, wife of Britain's former prime minister Gordon Brown, were among those hit by the bug before engineers patched it up.
The "Netcraft" security website traced the malicious code back to Delphin, who said he got the idea from another user who employed a similar code to make his profile and tweets rainbow-coloured.
"After that, it seems like some of my followers realised the power of this vulnerability, and within a matter of minutes scripts had taken over my timeline," Delphin said.
It appears that the code was not used for malicious intent when hackers got a hold of the script. What is appropriate though is hackers used the script for one of the internet's biggest money generators, porn.
But the idea was soon taken up by hackers who tweaked the code to redirect users to pornographic sites and create "worm" tweets that replicated every time they were read.I think too often these kind of accidental discoveries are not utilized enough in our society. People have to have proper education and proper titles to have their ideas or products spread. This incident is proof creative tinkering requires no titles and limited education.
Wednesday, October 14, 2009
Learning by Computer or Learning the Computer
My friend Joe recently posted this comment on Facebook concerning learning and suffering:
” Pathein estin mathein, mathein estin pathein.”
To learn is to suffer; to suffer is to learn.
-Aeschylus, Agamemnon (paraphrased)
Does learning have to be painful, or can it be made more pleasurable?
This brings up an old debate about calculators or computers being used for math education. When is the computer useful for learning or when is the computer doing the work for the student? Personally, I think calculators are great for math that requires tables (logs) or excessive amounts of algebra, i.e. complex differential equations. Unfortunately, basic math like multiplication tables require memorization to grasp the knowledge. Significant amounts of work is involved. Repetition is what allows students to recall values in the future. Making the repetitious process less tedious would result in students being more willing to memorize.
Taking this into consideration, I think computers could be used for basic mathematics education in an interactive manner. The program would require students to follow a programmed series of scenarios with the student controlling the action in a video game. The student could have a customized character going through a mathematical world. Think Indiana Jones running through a jungle maze. Each step of the way through the game, a student makes one of two inputs answering questions:
1) answers with exact numbers
2) multiple choice numbers.
The method in which a student answers the question depends on the
question being asked. The game based on multiplication tables would present a question on screen:
5 × 5 = ?
If the student types in the correct answer of 25, the character proceeds in the game. The next question is presented and the cycle is repeated. Wrong answers would have the same question repeated up to three times after which a new question is posed. The character remains in place until a correct answer is given. In a more advanced level, the multiple choice option would be utilized with equations. The jungle landscape would then fit the equation’s plotted shape. The final touch would be to have students compete with each other within a multiplayer game. Keep students interested by getting the competitive juices flowing.
