Divergence:
Here is a tick chart of GBP.USD. I have inserted a line at the highs and lows. I continue to struggle with interpreting divergence. This chart looks like is is in consolidation, so a breakout set up is probably best, but I'd like some comments on where you readers see a divergence set-up. What is used for the MACD, the MACD itself or the histogram? I have seen both used. This chart shows two opposite divergences for MACD and the histogram, at line B and D. Perhaps the double top makes it null and void. Can anyone help on interpreting this chart?
Tick: I have read that back testing should be done with tick data, since it removes the time element. I am beginning to read more about using tick charts, after looking at them for a few days I like what I see. Price action matters more than time data. Comments?
Wednesday, April 16, 2008
Divergence and the Tick
Monday, March 31, 2008
EURUSD

Note that none of these post are recommendations. I am entering these trades in the blog to capture this moment. I'll come back to each post and do an "UPDATE" as the trade close and add my thoughts. I want to track my progress for these daily time frame "swing" trades, or hopefully "trend" trades.
UPDATE:
The Good: Position size set, Stop placed, Target placed, trade planned before placing trade.
The Bad: Took a loss, a small loss.
The Ugly: Totally forgot about the first friday of the month. The US released the non payroll farm report. I was reading about trading the news just days before this trade and noted that I have to commit this news release date to memory. I think it will stick in memory now!

Correlation and Sentiment
This post includes some useful information I found at Mataf.net. An interesting feature they have is called the sentiment calculator that allows the user to determine sentiment of the various pairs by looking at different time frames of charts and selecting up, down, or sideways trend. Once you pick all the choices it tells you what you entered. An easy way to determine the trend yourself without any bias.
The chart is the last one in the post. This correlation table supposedly update with time as it is a link, not an image.
Sunday, March 30, 2008
USDJPY Trade
Watching the Daily Charts
Downtrend, recently broke 1.00, and bounced back to 1.00. I'm looking for
consolidation around this level before it drops hard. I'm not playing this
looking for the drop, the chart doesn't tell me it's going to drop. The 1.00
level is importnat because it's "round" and "par". This time it cracked it.
(Look at USDCAD when it cracked par 9/20/2007). I'm watching it to come back to
1.02 to test the high, watching the STOCH, and watching my 5EMA trigger when the
time comes. One potential outcome is for the STOCK to drop below 20 and sit
there as the pair heads south, if this happens I'll be looking at riding that
sled to the bottom of the hill.
A short is setting up. It broke 100, a nice round number and 100 has became
resistance. This level has been support since 1999 and now that it has been
penetrated, it is resistance. I'll be shorting this soon, looking to catch
100.40 so I can set a tight stop. If I miss the move, there will be others and I
will learn from it.
Looks like its going into consolidation for a while on weekly, making Lower Low
and Lower High (see chart). I'll be looking to short at 2.0021 to 2.0026. On the
daily, it looks like it could make its way up to the higher high. Stoch is on
the way down, a good signal might be to wait until Stoch gets to 20 then short
for the start of the downtrend using a tight stop. The yellow line is
resistance. The hollow red circle is a sell signal, if I was watching this I
would have shorted at the low the day before the hollow circle appeared.
EURUSD
Weekly - no signal - good counter trend short, I don't play that game though.
Daily - huge uptrend continues, wait for pull back, wait until Stoch gets to
below 50 then buy on strength on the break of a daily high, also watch the 5EMA
system for triggers.
Forex Video
Here are a couple of videos that I find useful.
1. MACD Video
2. Where to get Forex Information
MACD = A trend-following momentum indicator that shows the relationship between two moving averages of prices. The MACD is calculated by subtracting the 26-day exponential moving average (EMA) from the 12-day EMA. A nine-day EMA of the MACD, called the "signal line", is then plotted on top of the MACD, functioning as a trigger for buy and sell signals.
Here is an educational video done by Brian Shannon at AlphaTrends.net He explains the MACD and how to use it. Good review if you don't have things memorized. The MACD is one of the ost verstaile indicators.
Wednesday, March 26, 2008
Trendline Trading
I have updated my code to include a trailing stop. When I see a possible set up, I can now set the "Study" in Amibroker to send two complete orders to IB. The first has a defined target and stop, better known as a bracket order. The second submits a buy at the same price with only a trailing stop. This will get me a quick profit and also let an order run with the price. Here is the window I use (Param window) to set it up.
The colored bars are a system in itself, I don't use the signals for automation, I use it for "watching the screen trading"
I set up the "Study" lines, green for buy, red for short, as solid lines. When the order is triggered the profit and stop lines turn grey, this tells me the lines are not active and locked out. I can also go to the menu and press "Lock-Out" so a trade will not be triggered for buy or short. I can also select "scale-out" to use the trailing stop feature. With more options comes more clutter. The plan is to figure out what suits me best, suits my style best and remove everything else.
Right now I'm scalping some evening (EST) USD.JPY and setting up night time trades for EUR.USD. So far it's break even with real money. This blog is one way to record how I'm doing instead of keeping a log. Perhaps my next posts will describe some trades, both good and bad, so I can track what my thoughts were and what worked. Haven't decided on that yet.
Friday, March 21, 2008
A Trading System
Much has been written on trading systems. I have tried many and found that the advice given by most honest traders is fitting, that is, the system has to fit well with the person. One such system is shown in the screen shot below. I was reading the latest post by Rich over at Forex Project and the comment section began a long topic of systems discussion. It was a discussion about trading systems and one trader offered up his charts. The discussion is very interesting, and should be read. I noticed that the chart looked familiar to one I use. All I really had to do was change the period variable. Read it here - Want To Buy a Forex Trading System?
I don't use this systems now, I stick to S/R and a 5 period EMA on the 1H or 4H charts. The top chart is mine, the lower chart is from the post at Forex Project.
This particular chart is from comment No. 16.
Tipster Code Above
System posted and discussed at Forex Project.
Friday, March 14, 2008
Breakouts
What is better, indicators or trend lines, what has better results for an auto trading system? I have tried, as many others have, to use indicators to buy and sell Forex. It works about half the time. Why not just use a random number generator to trade then? What about breakouts?
Look at a 5 or 15 minute chart, how far is 10 pips in relation to the average bar length. How hard can it be to make 10 pips? It's harder than it looks. My next system involves breakouts and trend line trading. Here's the idea;
I set the chart up with 1 to 4 lines, when the line is crossed it trades, setting stops and targets, and gets locked out until I reset it. I can use horizontal or sloped lines to do this in Amibroker (AB). The code I have done so far works OK. I'm amazed how how simple the code was to do this. The "system code" is very small compared to the auto trading interface code need to talk from Amibroker to TWS via the IBcontroller. I'm waiting for the bugs to show themselves. I was surprised when I was testing this, I would trigger it to test signals and next thing I know I'm hitting the profit target of 10 pips.
I can't find many others that have coded this or auto trade this way, I searched with Google and found very little. The AB Knowledge Base doesn't have much either. If you trade Forex this way I'd like to chat via email, drop me a line. Email link is at the top of this page.
Wednesday, February 20, 2008
Profit Target and the Spread
Some online forex brokers now offer 3 to 5 pip spreads in the liquid currencies such as EUR/USD and USD/JPY. These are very competitive prices which a few years ago were unthinkable. As recently as the mid 1990's brokers were quoting 10 pip spreads in the major currencies plus a commission! Thankfully due to the internet, the current boom in Forex trading and the competition between Forex brokers, those days are well and truly over.The excellent value available from trading on tight spreads works very much to the traders advantage. However, some recomend that you avoid overtrading and entering trades for just a 5-10 pip profit or loss. Even trading this way on 3 pip spreads can adversely affect your profitability.
Below are examples of both a winning trade and losing trade when trading for a 10 pip profit or loss:
Winning Trade:
Buy EUR/USD at 1.2020 (price = 17/20)Sell EUR/USD at 1.2030 (price = 30/33)
Market moves 13 pips before taking profit
Losing Trade:
Buy EUR/USD at 1.2020 (price = 17/20)Sell EUR/USD at 1.2010 (price = 10/13)
Market moves 7 pips before taking loss
The above example highlights that the risk/reward of trading for a 10 pip profit or loss is poor. For the same 10 pips P&L, the market must move 13 pips for your winning position, but only 7 pips for your losing position. As a general rule of thumb, Take-Profit or Stop-Loss levels are recommeded by some as at least 10 times the spread you have traded on. This strategy will (should) help avoid overtrading and improve risk/reward. This is being considered in my current system where I aim to take a profit at 10 pips.
Wednesday, February 6, 2008
Automatic Order Transmission
When the charting software has a signal to buy, it transmits it to the broker software client running on the same computer, your laptop. That software in turn sends the order to the broker office computer for execution. Here the things I have found to be important, to safeguard against things like loss of data connection, or power failure, or anything that could go wrong.
The order is transmitted with a buy order, limit order, and stop order. The buy order has a "Good Until Time" attached to it. I'm going for 10 pips of profit, so once the order is sent, the PC can crash all it wants. I have this portion working.
The next issue is loss of data feed. When the data starts up again, a buy order could be sent, but it might not be current, that’s a problem, and I haven't solved it yet. I haven't actually tried yet.
Right now I'm using 6 pairs to work out the bugs, and while I'm doing this, I'm tracking all the trades in excel and summarizing the trades and pips per pair, and the number of minutes I'm in trades. Once I get enough data I'm going to look at the daily charts and see what the correlation is between good performers and bad performers. I'll look deeper into trading times as well. The plan so far is to trade 2 pairs on the 15 minute time frame. I will try the 1 hour to see results I get too. The comparison of 15 minute time frame to 1 hour can probably be done by back testing. My issue here is most data is dirty, such as FINAM. I see lots of spikes in the data. I may try EODDATA and see what I get.
The nice thing is that this is being testing during the night and day while I'm at work, then I fix the bugs in the evening.
For anyone that is entering orders manually, there is a simple script you could use with Amibroker to initiate your order all at once will little risk of error. It's fast and accurate. I use it to send bracket orders while I’m at work.
Sunday, February 3, 2008
"The Squeeze" - Part 2
Here is the code for "The Squeeze" for Amibroker.
I don't think system by itself works very well. It needs some work, possibly using it in conjunction with MACD would work, but I haven't done any work on it at this stage. Feel free to play with it, if you come up with some ideas please share.
Wednesday, January 30, 2008
Nickel and Dime "Mother Market" to DEATH
The last two weeks have been rather enlightening for me... so far. Here's what developed that "turned on" the light in my head. I just hope the light is what I think it is. I was reading the book about Larry Livermore called "Reminiscences of a Stock Operator" that I downloaded from ForexProject in PDF. The book is outdated in terms of the trading laws and some other things but as far as trader psychology and approach I think there is value in reading this book. I have read comments from readers that suggest Livermore never tells how he made all his cash in trading, I disagree. He didn't give a step by step account but I picked up some pointers. One such pointer was that he was always talking about having a "bigger line to swing". That means the more capitol one has, the more you can put on any one trade and thus make more profit in terms of dollars. He made millions and lost millions, and did it all over again. Then I recalled looking at a spreadsheet I downloaded somewhere that showed how fast your dollars grow when compounding. So I returned to the spreadsheet and had a look. I didn't do what I need it to do so I made my own. Here are my assumptions;
make at least 10 pips per day
trade 5 days a week, one or two pairs
start with $2000 (one lot, 100,000, at 50:1)
Maximum size of 5 lots - assuming I get there!
Here is the spreadsheet that shows what you can do if you make 10 pips a day, if it has errors, I would love for you to point them out. As you can see, it would take 6 months to get to $50,000.
Then I thought "my account is another person or entity, just like a corporation", I don't need this money to pay bills, I have a day job for that. What if I could automate this and make this "entity" wake up at 3am and trade until 11am (the best time to trade Forex). This "entity" would only have to capture 10 pips a day to make this work. Is that achievable in an automated program? The short answer is "yes it is". So assuming the above is correct and without any glaring errors in calculation, I am now testing my system and checking the trades daily. I have found some problems but I'm getting close. I have completed only 2 days of testing and the first showed 24 pips, the seconds showed 8 pips. I'm not concentrating on the signals so much as the order transmission. I don't think it is very difficult to capture 10 pips a day, but to do it constantly may take some work. If that target can be achieved, then the power of time will make the coin grow. To capture 10 pips, I plan to trade the system only between 3am and 11am EST, and trade only one pair, probably EURUSD, but that remains to be decided. 10 pips do not seem like a mountain, that’s why I call this post "nickel and dime". For the testing of the order system, I'm using 6 pairs to work out the bugs. Comments on this are more than welcome, as are any suggestions.
What's next?
A couple of things to blog about tonight;
- New indicators
- Trading system update
I used to use a "squeeze" indicator when I traded stocks, it was mainly focused on day trades and worked well on the US markets but not too well on the Canadian markets due only to the number of high volume stocks on the TSE (lower than those on the NASDAQ). The pattern day trader rule in the US was an issues. It worked even worse for FOREX. I recently came across a system that uses the squeeze, MACD and bollinger breaksouts. I'm looking into combining the indicators for a system that will trade short term moves in FOREX. Take a look at the videos at this site. While I'm doing that, I'm letting my current system run on the IB paper account to work out any bugs. That brings us to the second item I want to talk about tonight.
I have been slowly working on my new automated trading system and have some success. Back testing has produced results that are too good to be true. I've check the trade logs and they look right, so things are promising. Let me give you a quick brief of a post I hope to make shortly, if things work out. I ran across an excel spreadsheet that allows you to quickly calculate the periods needed to make a million based on the percent gain per period (I used a daily period). This got me thinking about more of a long term approach to profits, with short term gains, as in baby steps. So all I want to say right now is that I have a plan and I'll outline it shortly. Stay tuned.
Saturday, January 19, 2008
The Squeeze
I have an indicator for Amibroker that is very similar to the TTM Squeeze over at tradethemarkets.com. You can go there and view the video for instructions on how to use it. I find it somewhat useful, but look at the chart below, it doesn't look like a long term indy. I think this would be OK to capture 20 pips or so, not sure as I haven't studied it enough. If any readers have used this please comment on your strategy.
I was also reading some posts over at forexproject.com on this.
Saturday, January 5, 2008
GBPJPY
Head and Shoulders - This looks like an easy kill, but it is rarely that easy. Be careful out there. Will the gap be filled? My data is empty for a few days around new years, it's not a gap.
Saturday, December 29, 2007
Dec 29 Trends
Friday, December 28, 2007
Price Patterns
Here's a simple video on price patterns. It's about the most straight forward one I have seen. It's from a great web site called "Profiting with Forex"
Sunday, December 23, 2007
The TREND Scan
A while back I posted this Post. Now I want to know how exactly to interpret what the table was telling me. So I ran the scan for a few months back to see the story the table was telling, and then looked at what happened on the charts. Then I searched for and read the Livermore trading rules. I'm going to take a stab at this with the little research I've done (no back testing etc., just looking through charts to figure out how to use the table).
Here is the scan I ran today on the FOREX market.
Here is what I would do (simulated trading exercise) -
Short all the rows with 3 RED cells except for GBPNZD and GBPCHF. I don't really like the looks of GBPAUD but it looks like it will go red based on the H&S pattern it has completed today, so I would probably short that as well. The prices I would use to short would be based on interday charts but for this exercise, lets say its half way between open and close of the day before. Trailing stops would be the high of the day before.
Long all the rows with 2 GREEN cells. Buy price would be halfway between the open and close of the previous day (or no entry). Trailing stops would be the low of the day before.
I'll record these and see what happens. I wonder what the holiday season trading will be like, if the price levels will be impacted. I figure the volatility will be low.
More info on the screen rules.
The screen is based on the Livermore rules; below is an except from a web site on this trader.
All successful stock and commodity traders have rules for buying and selling. Many traders today still use the trading rules Jesse Livermore first devised almost a century ago.
Jesse Livermore constructed his rules over several years while he learned by trial and error what worked on the markets. He was guided by one of his favorite principles:
"There is nothing new in Wall Street. There can't be because speculation is as old as the hills. Whatever happens in the stock market today has happened before and will happen again."
Trading Rules
- Buy rising stocks and sell falling stocks.
- Do not trade every day of every year. Trade only when the market is clearly bullish or bearish. Trade in the direction of the general market. If it's rising you should be long, if it's falling you should be short.
- Co-ordinate your trading activity with pivot points.
- Only enter a trade after the action of the market confirms your opinion and then enter promptly.
- Continue with trades that show you a profit, end trades that show a loss.
- End trades when it is clear that the trend you are profiting from is over.
- In any sector, trade the leading stock - the one showing the strongest trend.
- Never average losses by, for example, buying more of a stock that has fallen.
- Never meet a margin call - get out of the trade.
- Go long when stocks reach a new high. Sell short when they reach a new low.
- Don't become an involuntary investor by holding onto stocks whose price has fallen.
- A stock is never too high to buy and never too low to short.
- Markets are never wrong - opinions often are.
- The highest profits are made in trades that show a profit right from the start.
- No trading rules will deliver a profit 100 percent of the time.
Saturday, December 22, 2007
The Holiday Season
Thursday, December 20, 2007
Saturday, December 15, 2007
How to get FOREX quotes from MSN into Amibroker via Amiquote
Amiquote is equipped with an automated download of FOREX from FORAM but only has the majors. I''m interested in USDCAD so this isn't the best solution for me. Yahoo seems to offer only current day. So I tried MSN. I used MSN to download EOD FOREX data and noticed that the USDCAD pair was inverted, as was the CADUSD pair. So I went the next step and obtained a list of currency pairs. I'll list the pairs and then some instructions on how to configure Amibroker/Amiquote to auto download. Some pairs included here are useless, so you might want to trim your database once you've completed this. Then I configured the Amiquote translation table to relate the proper data to the symbols the way it should look. Here are the instructions on how to do this.
Here are the pairs, import this list into Amibroker. Import using "Import Wizard" select the file and set the window up like this screen shot.

Now you have a populated database in Amibroker, but it's empty. Next, click "Tools" "Auto Update", Amiquote opens. Select MSN as the datasource. In AMiquote Select "Tools" Symbol Translation", select "MSN Historical" and copy the following list to the clipboard and paste into the translation table in Amiquote as shown below. Hit OK and select the dates you want to import, then start the download. If you go to far back it will only give you monthly data, so do a long term and then a short term download. You can even try to get data for something like 2005 to 2006 and see if it give you finer resolution.

Copy this list into Amiquote translation table for MSN
AUDCAD,/CADAUD
AUDCHF,/CHFAUD
AUDEUR,/EURAUD
AUDGBP,/GBPAUD
AUDHKD,/HKDAUD
AUDJPY,/JPYAUD
AUDNZD,/NZDAUD
AUDSGD,/SGDAUD
AUDUSD,/USDAUD
CADAUD,/AUDCAD
CADCHF,/CHFCAD
CADEUR,/EURCAD
CADGBP,/GBPCAD
CADHKD,/HKDCAD
CADJPY,/JPYCAD
CADNZD,/NZDCAD
CADSGD,/SGDCAD
CADUSD,/USDCAD
CHFAUD,/AUDCHF
CHFCAD,/CADCHF
CHFEUR,/EURCHF
CHFGBP,/GBPCHF
CHFHKD,/HKDCHF
CHFJPY,/JPYCHF
CHFNZD,/NZDCHF
CHFSGD,/SGDCHF
CHFUSD,/USDCHF
EURAUD,/AUDEUR
EURCAD,/CADEUR
EURCHF,/CHFEUR
EURGBP,/GBPEUR
EURHKD,/HKDEUR
EURJPY,/JPYEUR
EURNZD,/NZDEUR
EURSGD,/SGDEUR
EURUSD,/USDEUR
GBPAUD,/AUDGBP
GBPCAD,/CADGBP
GBPCHF,/CHFGBP
GBPEUR,/EURGBP
GBPHKD,/HKDGBP
GBPJPY,/JPYGBP
GBPNZD,/NZDGBP
GBPSGD,/SGDGBP
GBPUSD,/USDGBP
HKDAUD,/AUDHKD
HKDCAD,/CADHKD
HKDCHF,/CHFHKD
HKDEUR,/EURHKD
HKDGBP,/GBPHKD
HKDJPY,/JPYHKD
HKDNZD,/NZDHKD
HKDSGD,/SGDHKD
HKDUSD,/USDHKD
JPYAUD,/AUDJPY
JPYCAD,/CADJPY
JPYCHF,/CHFJPY
JPYEUR,/EURJPY
JPYGBP,/GBPJPY
JPYHKD,/HKDJPY
JPYNZD,/NZDJPY
JPYSGD,/SGDJPY
JPYUSD,/USDJPY
NZDAUD,/AUDNZD
NZDCAD,/CADNZD
NZDCHF,/CHFNZD
NZDEUR,/EURNZD
NZDGBP,/GBPNZD
NZDHKD,/HKDNZD
NZDJPY,/JPYNZD
NZDSGD,/SGDNZD
NZDUSD,/USDNZD
SGDAUD,/AUDSGD
SGDCAD,/CADSGD
SGDCHF,/CHFSGD
SGDEUR,/EURSGD
SGDGBP,/GBPSGD
SGDHKD,/HKDSGD
SGDJPY,/JPYSGD
SGDNZD,/NZDSGD
SGDUSD,/USDSGD
USDATS,/ATSUSD
USDAUD,/AUDUSD
USDBEF,/BEFUSD
USDBRL,/BRLUSD
USDCAD,/CADUSD
USDCHF,/CHFUSD
USDCNY,/CNYUSD
USDDKK,/DKKUSD
USDESP,/ESPUSD
USDEUR,/EURUSD
USDFIM,/FIMUSD
USDGBP,/GBPUSD
USDHKD,/HKDUSD
USDIDR,/IDRUSD
USDINR,/INRUSD
USDITL,/ITLUSD
USDJPY,/JPYUSD
USDKRW,/KRWUSD
USDMXN,/MXNUSD
USDMYR,/MYRUSD
USDNLG,/NLGUSD
USDNOK,/NOKUSD
USDNZD,/NZDUSD
USDPHP,/PHPUSD
USDPTE,/PTEUSD
USDRUB,/RUBUSD
USDSEK,/SEKUSD
USDSGD,/SGDUSD
USDTHB,/THBUSD
USDTWD,/TWDUSD
USDZAR,/ZARUSD
Let me know if the data looks right to you, or if I'm doing this backwards. If you want the database, it is a 4 meg zip file, send me an email.
Wednesday, December 12, 2007
Monday, December 10, 2007
FOREX Trend Scan

Weekly
Notice anything? EURGBP is in an uptrend on all time frames.
Scans by the dozen
Here are some scans of the recent market activity, US only, I don't have enough time to do Canadian tonight.
Trending Scan
The first is a trending scan. The trend is your friend. If your into buy and hold, this is for you. These are leaders. Someone said to me once "follow the leader", I replied "sure thing, as long as they're going in the direction I want to go!" This applies to stock too. Here's a pic of the scan, click to get it from google thing-a-ma-jig.
Here is the "All-in-one-scan" that I posted when this blog first started.
Here it is.
Friday, November 30, 2007
The Never Ending Post; a FOREX Scrapbook
This post will go on forever. I'm going to keep updating it with tidbits of info I find on the net about FOREX or technical analysis of FOREX. I like to keep notes in point form, and if I need more, there's always Google. To read this really fast, read the red text until something catches your eye.
Best time to trade (Eastern Standard Time)
Only trade when there is a market open somewhere, or risk getting reamed by a dealer (of course this only applies to day traders and scalps)
- New York open 7:00 AM to 4:00 PM
- Japanese/Australian open 7:00 PM to 3:00 AM
- London open 3:00 AM to 11:00 AM
The best time to trade is from 3 AM to 11 AM EST. The New York and London trading sessions overlap between 7 and 11 am EST. The volatility is much higher and trading opportunities are much more frequent with bigger moves, especially in these four hours.
The currency pair that moves the most during these hours are the USD/CHF, then the GBP/USD, then the EUR/USD, then the USD/JPY. This is when you can make 30-100 pips trading in just a few minutes or hours.
Notes from a "TraderInterview"
- trade from 7am to 12 noon EST
- use trendiness, pivot points from previous day
- GBP - more range than EUR
- JPY - all over the place
- CHF - great trend and conservative
- stops at 15 to 30 pips
- 5 min. chart - reversal shows up here first
- 15 min - pattern direction
- 60 min - main trend direction
- 5min and 15min match direction pull the trigger
- FOREX is indicator driven
- Linear regression channel (LRC) - use on any time frame from daily to 4 hour
- LRC shows trend
- when price goes below LRC it usually snaps back quick
- weekly or monthly charts used to detect trend reversal
- 10am EST is a common time for a reversal for most currencies
- another reversal that is common is 11:30 am EST
- reversal will seek its first support level
Highest High & Lowest Low
Here is an interesting chart of USDCAD that automatically plots the highest high and lowest low for a pre-defined period. I like the chart automation but I don't really like the pre-defined period. I would like to have a period that adjust automatically but I'm not sure what I want to use for the basis of the adjustment. I was think about using volatility like ATR or perhaps SAR to determine the look back period. The formula uses the moving average cross of the highest high and lowest low, that's why some lines are longer than others.
If you look closely and examine the chart, you can't really find a consistent pattern of support break through. I'm looking at the break through of support or resistance, specifically looking for a close above or below, and watching what happens to price.
The chart below has my special DOTS on it. This is a weekly chart. I'd say it still has some upward movement to work off. This week it briefly broke through the 1.00 level. About a month ago it hit 0.9054, what a profit that could have been eh? The weekly doesn't show any sign of this upswing weakening but the daily chart shows it's running out of gas. I'm going to wait for the downswing then jump on board.
A short using $2000 with 50:1 leverage at 1.0000 and covering at 0.9054 gives you some serious cash, not that this is possible but part of the move could be caught. The cash grab is about $10,000 for that move. It's nice to know the possibility. Remember, with this also goes that you could lose the $2000 just as fast. Practice risk management.
Monday, November 12, 2007
A quick FOREX trade
Today I looked risk in the eyes and shorted the USDCAD pair. The chart was screaming pull back. I used my developed signals to tell me when to pull the trigger, and actually ended up pulling the trigger twice, the first time taking a small loss.
The Word stated in a recent post "the Canadian dollar is in a power full bull trend". It is. However, looking at the chart, it seemed too powerful, it hit a low last month of 90 cents, great for Canucks living near the border, a quick 1 hour drive and save 20% on a new car, what a deal!! Maybe a car is not the best example because it sports miles and gallons, the old fashioned system based on arms and legs and feet, we use metric up here, based on water (I think?). I still get confused. Oh, back to trading.....
I was reading tradewhileworking blog earlier today and decided that it was time to find a little time to take on a trade, since I've not been able to trade for the past month or so. Great inspiration at his blog, how he manages to trade in a management role. I chuckle when I read about the issues he faces while trying to trade at work, it's familiar.
In the end I came out a couple of hundred bucks on top, but more importantly, played and learned with live dollars. At $2.50 a trade, I can afford to be wrong. I picked the right place for the stop, it got hit. Once USDCAD stopped climbing again, more signals showed up, on three different time frames, and I jumped in, setting the stop and the target in a bracket order. Then I shut down and drove home. Ate dinner, played with the kids, put them to bed, and turned on the 'puter. All right! Kicked 'risk' square in the balls. Moved the stop twice in and hour and it got hit.
The last few problems of my auto trading system are being worked out. I am inspired by reading about others that have their server located at the brokers, and they sit at home and check their account. Brilliant. If they can do it, so can I. The best part is, 'puters don't have emotions, that's why I'm so interested in a system. Low commissions too, the time is right. This is a revolution. If your a programmer, what are you waiting for?
Sunday, November 11, 2007
The fallacy of Canadian gold stocks
A few weeks ago, I was asked to post something about the Canadian dollar. The only thing I had to say about that currency was that it is in a powerful bull trend. Given that we may be at a critical point in the Canadian market, I wanted to "clone" the latest analysis I did on my own blog believing that this might be of interest to the readers of the TSX Trends blog followers. I would like to thank Brian for the invitation to post here from time to time.
Most people will believe that investing in Canadian Gold stocks is the way to participate in the rise of Gold. This is a myth. It is not true all the time. For this to be true, gold needs to rise, of course, and the economics need to be conductive to growth. Furthermore, value (the price of a stock) is created only is profit margins are stable or increasing when a commodity increases in price. When the price of the commodity or the price of profitability falls, the price of the stock will follow. I suspect that the costs to produce gold are rising faster than the price of gold thus creating pressures on margins.
Another falsehood that I have read on the Internet in the past month or so is some people finding precious metals somewhat “overbought” on a technical basis and thus recommending shorting Canadian gold stocks. That may be the right course of action but fundamentals are the right reason to short Canadian gold stocks not the price of Gold.
Agnico Eagle is currently trading at a double bottom support around $50.00. After reaching a high of $55.00, it has been building a triangle where the short term downtrend line has been resistance. The triangle was broken down and we have the potential for a sell signal which would also break the next short term uptrend line.
This set-up looks like the TSX composite index set-up of a few days ago. A break below the low of $47.00 would confirm an intermediary downtrend with 2 lower highs ($55 and $54) and 2 lower lows ($47 and $46).
The conflict between the fundamentals of a firm and the price of the commodity it sells is illustrated in the following chart which relates the price of the stock to the price of gold.

It is quite clear to me that fundamentals have taken over recently as investors are no longer willing to pay premium prices if they believe the economy is going into a recession.
This phenomenon is not unique to Agnico Eagle. Here is the picture for other Canadian gold stocks:




For those who prefer to invest in a diversified portfolio of Canadian gold stocks, the Barclay’s Gold iShares provided the following tracking error to Gold!

If you are using Horizon’s Gold Bull and Bear funds as a tool to participate solely in the rise and fall of the price of Gold, you will be sorry. This is tracking the performance of Gold stocks, not gold. You need to be aware of the fundamentals of the industry as well in order to make the correct bet.

And the correct bet may soon be available to you in a not too distant future. Wait for a breakout at $14.25.
There are two links on the right side of the page which will send you to Danny Merkel and Merv Burak’s web sites. They do a great job of following precious metals although Merv has another site where he posts his gold thoughts. I highly recommend these sites for a more thorough analysis of that sector.
In Conclusion:
Canadian Gold stocks have been leading the pack in the recent market uptrend. Even though the market appears to be topping into a new downswing, gold stocks have been resilient as their relative performance is still positive. That may be starting to change.
The Word
Saturday, November 10, 2007
The Q's
Here is my current system applied to the QQQQ. I have turned off all of the other lines, dots and stuff that clutter the chart and just left on the training stops that show when a buy and sell occured. I didn't participate in any of these trades. I find the system to work better on high volume issues such as the Q's and FOREX. I don't use volume in the system, but I do look at it when considering an order.
Amibroker Code - Zero Lag
I'm working on a bit of code that will plot a small line at recent high and lows in an attempt to highlight the "highest highs" and "lowest lows". I find that my eye doesn't catch that too quick, and that I have to stare at a chart for a while to determine what the trend is. I also know why I haven't learned to pick it up as quick as others, I don't "practice" enough. This is the main reason I'm trying to build a system, so I don't have to watch for trades all day long.... I can't anyways, I have a day job.
Here is some code I use called the "Zero Lag". I discovered this at amibrokerfan.com and modified it a bit. Enjoy.
When I post the code directly to the blog, the HTML screws up some of the text. Rather than figure out what the HTML switch is to post just text, I have posted the code to google docs.
Zero Lag Code
The World keeps me away
Over the past few years I have travelled to remote places within Canada and some foreign countries, a mixture of exotic and warm, rich and populated, and to various third world nations. The last place I happened to be was Panama.
Quick summary of the "look and feel" of Panama City: Poor nation trying to develop, US money is pouring in, the rich areas have a high Jewish population, perhaps baby boomers are looking to retire, I hear the weather is a allot like Miami the whole year around. It was too humid for me.
Monday, October 15, 2007
Caution taken while Auto Trading
One of the first things that I considered while formulating the basis for my automatic trading platform was risk. How would I place an order and not have to worry about my Internet connection or computer causing problems. I figured that I would let TWS do the risk management.
Using bracket order, I can send my orders to TWS and then on to IB's system. While my "system" is running here at home, the bracket order is continuously updated to move the stops and profit target. I don't really like trailing stops, so I don''t use them... for now. The worse that can happen under this scenario is that I get taken out of a trade. The second worst is that my profit target gets hit while price is moving up and the target has not been adjusted upwards.
I haven't been able to go a full day yet without some sort of bug or problem with the code, so I think this approach has paid off. It's only a paper trading account for now, but one day, I hope to have the auto trading working allot better.
Please participate n my poll on the left side of the blog page.
Sunday, October 14, 2007
The System, and auto trading
I have my system pretty much tuned for end of day and 1 hour FOREX (foreign exchange) charts. Why Forex? It's none stop data almost all week long, with no gaps (hardly). I started out using FOREX data just for testing, but lately I have traded it with success, although small success. I haven't gone full bore yet.
I have also been writing code for auto trading Forex through Interactive Brokers TWS platform, using Amibroker. I currently have a P3 laptop set up doing just that all day long. Windows Debug is also running, logging everything that happens. IB offers a 'paper' trading account, I'm using it for testing.
Technical analysis is an important part of my trading plan. To ensure I honour my stops, I figured that a auto trading platform would work well. It would not only get me in at the right time (defined here as buying based on signals and not emotions), it would also get me out on a stop that is pre-defined, without my second guessing. Since Forex is very liquid, placing stops on IB's TWS does not concern me. The stops aren't place at the typical levels either.
One of the things I had to do when setting up the auto trading interface was to draw out a block diagram, a decision tree. I go long and short (no up tick rule either). I discovered that there are many different things to watch out for while planning this out. Something as simple as exiting a position when I get a reverse signal, what to do?
I'm not ready to go live with the auto trading interface yet, but I have gone live with the system on a end of day time frame. In the coming weeks, I'll be posting screen shots of the system, as seen in previous posts, but tweaked with some new things on the screen.
To help me develop the system and auto trading platform I have been using Yahoo groups and Herman;s website, Amibroker.org/userkb, a great resource.
I'm interested to know how many readers have ever tried Forex and what their experience with it was?
Thursday, September 20, 2007
The Word has departed
Pierre "The Word" has moved.
As you have noticed, I haven't been posting all that much lately. I haven't even been reading the other blogs that I frequent. Just got married, not to mention a bunch of other things that seem to consume me for a while.
I want to thank Pierre for the effort he put into this blog, especially since I just had it up and running for a few weeks, he helped me get it rolling. It served as a good stepping stone for him to start his own operation. The more Canadian content out there in hyperspace, the better for us small people working the markets north of the border.
Pierre's blog is called "Canadian Point and Figure".
I encourage everyone to read it, he has been around the markets for a long long time, and offers great insight.
I have a question for Pierre, and a request. Perhaps he can celebrate the recent Lonnie action by posting a daily point and figure chart of the USDCAD and give us some comments.
The delicate matter of the loonie
It's official. I never thought I'd live to see it. The last time it happend was when I was a kid and Pierre was the Prime Minister. The dollar was at par with the USD today just after 2pm.

Friday, August 31, 2007
Trading System Update
Still working on my system using Amibroker. Here are a few things that I've tried, the work continues.
- I've incorporated Heiken Ashi charts for visual representation of trends.
- I'm now using a plug in dll for stops. It's called REM, and it's available on the yahoo Amibroker groups.
- I'm using FOREX data to test with since there are hardly any gaps. The downfall is that there is also no volume info available. But since I'm not using any volume related indicators, it's OK.
- Trying to incorporate the IB Controller plug in. It allows the buy & sell signals generated within Amibroker to transmit order to Interactive Brokers TWS application for placing orders. Wave files can also be triggered to tell you what is going on without watching the screen. It's not quite there yet. I'm using the paper trading account to test this functionality.
- I have incorporated signals from a Zero Lag indicator. It give similar signals compared to Stochastic but a bit earlier. I got this indy from Amibrokerfan.com. Mike, the admin, uses 5 indy's and Heiken Ashi charts for trading the emini. His system looks like it works but he doesn't advertise his loosing trades too much so who really knows.
- I continue to struggle with finding something that can do better than 5 to 10% CAR (compound annual return) . This may be some setting in my code to do with positioning size or something so I'll have to examine that.
The struggle continues. Overall, this is harder than I thought it would be. Hopefully I'll have something in a week or two.
Thursday, August 23, 2007
Chat
We have added a chat window on the left side of the blog. We welcome any suggestions for blog topics, or reviews of stocks, or sectors. I know "The Word" would like to have reader comments on his take of the market, or rather, what he "sees" in the charts.
If you have any experience or questions on trading systems, this is a great to place to discuss, much easier than opening comment windows.
I have seen some blogs with chats for day traders, to pass along stocks that are setting up or have begun a move. We welcome day traders to post through out the day.
Sunday, August 19, 2007
The Canadian market – Week in Review 32.
This week the TSX Composite broke through the 200 day moving average (13,327.04), then the March low of 12,661 and bounced back from 12,500 establishing a column of X which for now is a short term uptrend. I still don’t expect much from this bounce as there will be numerous resistance levels where supply will manifest itself, again.
-1- The first area of congestion will be the previous support at 13,250 (green rectangle) because broken support usually becomes resistance.
-2- For the short term trend to truly reverse itself, the market needs to break resistance at 13,650 (blue rectangle)
-3- The most likely scenario however would be the completion of an end of bull market distribution pattern called a head and shoulder, where the current rally would the formation of the right shoulder with a top in the area of 13,400 (purple square). The formation that I see here has been identified by the 3 purple arrows and the neckline would be at 12,500. I still believe we are now in a bear market. This long term trend will remain until the red bear downtrend line is broken (14,050 currently).
The TSE Bullish % is now valued at 36.94%, compared to a reading of 47.01% last week. This is bear market territory. For now, the bounce was not strong enough to change the bearish condition of most stocks in the index.
-1- Seven sectors had breakdowns as shown in the Last Event column compared to three last week. Metals and Mining and Energy moved from a bull to a bear trend joining Income Trusts and Healthcare.
-2- The bounce was lead by Metals and Mining, Energy, Finance and Materials (all are in a column of X).
The big event of the week was the breakdown of large cap stocks in Canada. The TSX 60 is now also in a confirmed bear market as show below.
There is no question that the Canadian markets are severely oversold, even after the recent rally. The legitimate question is what would convince me that this is a correction and not the beginning of a long term bear market. The answer lies in two indicators that are used side by side to confirm any short term uptrend.
The first indicator evaluates the number of stocks which are trading below their 50 day moving average. Currently 7.45% of the stocks are. There would have to be a breakout above the 30% resistance level (blue arrow) to confirm that the current bounce is more than a bounce.
In conclusion, the bulk of the evidence still favors the bears. The Feds handling of the liquidity crisis demonstrates to me how inexperienced Ben Bernanke has been in handling what may prove as a major economic event. He finally reacted to the pressure he received from his friends in the financial community. This may be a case of too little too late however. This week coming will be another lazy summer doldrums week!
The Word
therealword@gmail.com