Showing posts with label thoughts. Show all posts
Showing posts with label thoughts. Show all posts

Saturday, October 13, 2012

Robot Thoughts

It's getting easier to look at a chart and figure out what to do. For example, recently I've been using bollinger bands on the D1 and trading infrequently when something presents itself.

It's more difficult to turn this intuition into an algorithm and quantify it. I suppose I need to come up with clever ways to localize a local bottoming or topping event and then characterize the shape of it.

What I am relatively good at is finding moments of extreme extension. Unless a major new trend is about to occur these can indicate reasonable entry points. For example, if the price is getting "far" away from a moving average and price action is respecting a boundary or throwing a good candlestick event then a robot can take action based on well defined situation.

There are also "warnings" available. If the price is moving very fast then what is considered a good entry point may be a lot riskier. This type of thing can be examined across multiple time frames to detect a larger scale event while trading on lower time periods.

The latest thought and robot experiment is to collect these little nuggets of interpretation. Accumulate the "value" of a list of reasons that it looks like a good time to trade and compare to the "value" of those reasons that a trade should not be entered.

To illustrate, let's assume our robot is "thinking" about entering a long trade on the USDJPY pair:

  • Bid price is 8 pips below the m15 moving average (+ 0.08)
  • Bid price is touching the lower h1 bollinger band (+ 0.10)
  • Bid price is within one pip of middle h4 bollinger band (+ 0.05)
At the same time we have some hazards:
  • The h1 bollinger band was recently pinched
  • The previous m15 candle dropped 25 pips
Well, never mind then, a nefarious "something" is happening that the robot should have the sense to realize it doesn't understand. Wait for a clearer situation.

Perhaps many robots would be better than people expected if they were able to look for more reasons not to enter a trade?

Sunday, April 25, 2010

Weekend Notes

I've been through a lot of (non-trading) issues since I last wrote.

My family and I have moved halfway across the nation, we've gotten new jobs, and had to take care of a million minor items that occur when you relocate your life. Sorry for the lack of updates.

I have been doing a little manual trading here and there.

The AUDJPY has been failing in the 87.xx range for most of this month. Greece, Goldman Sachs and various other items are scaring risk takers while continuing signs of improvement placate them. I'm expecting an eventual spike once the 87.xx resistance is overcome -- so I'm very willing to open long positions when we pull back into the 83.xx, 84.xx or 85.xx zones.

On another note... trading seems to be getting "easier" as time goes by.

Thursday, February 18, 2010

AUDJPY: Profit Is My Density

No, that's not a typo. It's a rip-off of a line from the Back To The Future movie. Anyway, this post is another in the series of theoretical considerations with respect to various robot building strategies.

In this scenario let's consider fixing our maximum total position size across a specific price range. For example, perhaps we are willing to purchase 10000 units per 1000 pips (remember, I'm generally talking about small account sizes). For Oanda traders this will run you up to about $175.00 in margin.

If you want to limit your overall positions to 10% of your account capital then you'll have to ante up $1750.00 to play in that 1000 pip range. Obviously, a large account value will either give you a larger playing field or a higher density of positions if you don't expand the playing field.

Are you still with me?

I know, at this point things are pretty boring. In fact, we're looking at a simple grid that we can play every time price passes through our space. However, this gets a bit spicier if we can find a way to optimize the open and close activities.

For example, what if we can compress our position openings towards the low end of a short term movement? Similarly, what if we can compress our position closings towards the higher end of price movements within our price space?

If you have good ideas for these processes, then you are set!

My thought is to adjust the probability of closing profitable positions based on the amount of profit a position embodies. For example, perhaps a position with a 10 pip profit has a 1% chance of being closed while a 20 pip profit has a 5% chance of being closed -- per bar. What would this do to the expected profit per position? Are some probability formulas able to provide much better returns?

Remember, we're talking about trading a maximum density of positions while prices move through our trading space. We know our total position, our total risk, and simply want to allow our winners to run as much as we can based on historical price movement patterns. Basically, we know that prices range for a while and then take off up or down. It's the multi-day upward movement that we want to catch... letting go of positions slowly during smaller moves until we can eventually latch onto a bigger move.

I'm probably about 85% into building a new robot based on this concept. I like the measured aspect of this on the risk side. I like the less definable profitability expectation -- it's beyond my math skills at any rate -- which is suggestive of an ability to preferentially capture larger profits. I also like that it should continue to eek out smaller profits if the price decides to languish in a smaller range for some period of time.

Maybe I'll be able to fire this up on Monday.

Wednesday, February 17, 2010

AUDJPY: Range Or Reversal?

The AUDJPY has had a nice run just recently.

However, the 1HR is showing a small double top. Obviously, we might be looking at the beginning of a range discovery action or perhaps even a reversal if we get renewed panic concerning Greece or similar situations.

Be patient and look for good opportunities.

Now if only I can take my own advice... ;)

Wednesday, February 10, 2010

AUDJPY: A Change Of Mind

Finally, something has happened to lift the pall from the AUD/JPY market.

What happened? The Australian economy showed signs of heat. We have recent employment numbers that absolutely blew away expectations.

Apparently, today, the AUD/USD moved from a value that gave a 25% chance of a hike in march to a 50% chance of a hike in march.

Do you remember me talking about the need for a upside surprise to start movement off a possible bottom? In order to continue upward all we need is some nice stats from China and the lack of a new crisis of confidence.

There is a lesson in this -- as if you don't know this already.

When the world has given up and this has been priced in (baked in) there will be a good chance to grab an upside move. The employment report could have been traded by taking a position with a reasonable stop prior to release... if you thought employment was going to be strong (hopefully because you had insight or evidence instead of just raw gambling).

My insight offering would be that a ship the size of China doesn't turn around overnight just because of some tightening. Alternately, tightening credit in China with an aim to keeping growth at 8% or so isn't tightening in the same sense that we'd consider it in the western world.

This was an obvious and big miss...

What I see is an opportunity to figure out some of the blind spots that the big money has -- let them spend their powder moving the herd and then pick a good point to have their mistake revealed, such as Australian employment stats, and take a stop protected position on it.

Thursday, February 4, 2010

AUDJPY: Oh Oh

While I've been talking about the cake being baked we've just done nice big double top over the course of October 2009 through February 2010 on the daily charts.

Obviously, this doesn't have to "fire" but it does invite a big panic drop to retest the July 2009 low of 70.75 or so. Considering today's rapid plummet of 300 points at this point who can say.

As I noted on my last post I do think people are being too pessimistic. However, they can panic and be pessimistic far long than I can stay solvent if I bet against them. Be careful out there.

Monday, February 1, 2010

AUDJPY: The Cake is Baked

Well, the RBA just decided not to increase rates.

Recently, China decided to tighten up capital requirements for lenders.

Also, there has been talk of taxing or otherwise restricting carry trade activities.

Lest we forget, recent news in Australia is mixed.

The US market has been skittish.

Emerging markets have been very skittish.

So, what am I trying to say?

I'm thinking the cake is baked. You might want to let the dust settle from the RBA decision -- but I think we have become overly pessimistic. We are so pessimistic that all the bad news and presumptions of bad news should soon be baked into the price of the AUDJPY.

All we need now are some upside surprises...

UPDATE: It's thursday morning and we are having a nice panic day apparently due to a less than stellar jobs report. I think the panic is unnecessary but I do understand the lynchpin that is being attacked here. If jobs don't come back then how can the economy recover? However, I think they have it backwards, as we do see spending continue to recover, which should after a lag lead to jobs. Obviously, the market can stay irrational far longer than you can remain solvent, so don't jump in just because you have a long term belief (as I do).

I guess the cake is baking, but not yet ready to come out of the oven.

Monday, November 30, 2009

Challenging Times

While I realize the world went through a bit of an unwind, before and after the Dubai incident, I've been busy with work and family issues instead.

Things have just been incredibly busy!

In any case, what with the volatility and unwinding that has been going on it's probably a good time to be inactive. I did manage to blow up my small discretionary account (my robots are far better traders than I am) but that's insignificant.

However, the big news, from my own point of view, is that I have some tweaks for my up-and-coming robot. Basically, I need it to detect a downward slide quickly and then decide not to waste it's risk capital on redundant positions.

Maybe I'll have some time to do some blogging and tweaking this week?

Wednesday, November 11, 2009

AUDJPY: Ominously Flat

I'm looking at a short term chart, but the lack of volatility suggests that something is in the air.

Even with the recent good news from China things have been relatively lethargic.

The daily chart is also showing the potential to have a few down days.

This seems like a good time to manage risk.

UPDATE: This evening, while I was on the road, I see that we had a nice spike upwards, hitting my take-profit points and leaving me flat. Nice.

Friday, November 6, 2009

Trading Week Recap

Since the trading robot, BREAD, was predominantly sidelined for the last couple of weeks I felt the need to do more discretionary trading.

While the capital used wasn't very large it felt great to pull in a 34% increase over the course of the week. If I could scalp like this all the time it would definitely spell the end of the day job. I have dreams of setting up a trading office with spacious rental cubes available for other traders. Rookie's trading pit.

Back to reality, BREAD on the other hand snailed along earning 2.4% and 1.7% over the last two weeks. Sometimes I think I live in Bizarro world when I have disdain for a 100% annualized rate of return...

In any case, I think the long tail of H1N1 recovery has finally come about. I should be able to concentrate both on my day job and on creating new robot strategies during evenings.

Sunday, October 25, 2009

Minor BREAD Adjustments

The BREAD trading robot has had a minor tweak during this last weekend.

To make a long story short, another risk modification metric has been defined. If things work as planned this will give the robot the ability to trade over a wider currency pair price move.

Obviously, the plan is to simultaneously maintain the same level of profitability.

My initial readings on quantitative analysis, via forums, seem to indicate another insular pool of thinking. Unfortunately, it seems that ego often persuades people that their own area of expertise is the right area while other areas have nothing to offer.

Advice to any that will take it...

Find the important or valuable information without consideration of the source. Often, combining a few great insights from various fields (validly) will provide greater value than being very proficient at all the skills of a particular field. The real world often is not as simple as the assumptions made in order to perform calculations at the edge of the envelope.

Tuesday, October 20, 2009

AUDJPY: Market Call

The AUDJPY has done a whole lot of nothing for the last few days.

Can you blame it? It must be tired after the recent climb.

More seriously, with the RBA considering whether to raise rates another 25 or perhaps even 50 basis points, I don't expect any type of calamitous drop.

I think we might see a drop down to 83.00 again but if it does stop in that region I'd consider the range between there and 84.30 to be a consolidation zone. Again, given the interest rate decision in the near term future I'd eventually expect more upward movement as long as there is not an RBA based negative surprise.

Your mileage may vary.

UPDATE: Wednesday after 10:00am, we have an apparent AUDJPY breakout... currently at 84.50 and testing the underside of our previous support channel. I'm hoping that we reject 84.50 a few times before crossing -- as that will help my trading robot better take advantage of the movement.


See what I'm talking about? You can go back through a few previous posts to get a wider view of recent events.

Saturday, October 17, 2009

New Robot Rules Fermenting

It's late Friday night, the markets are closed, and all through the house not a creature is stirring. Well, nobody but the scheming trader hatching up another robotic system.

As someone who designs software systems for a living I can assure you that, in terms of making improvements, nothing is more helpful than watching a system in action. The key point here is the concept of "seeing" the results. While this arena is a bit of a different animal I've always been proud to claim that if I could see the problem I could fix it. You see, no matter how complex the problem there is usually something along the lines of a paradigm shift which greatly changes the nature of available solutions.

So, at the end of the week, when I'm not at work, I can review charts, apply various indicators, and see how various changes might affect trading and earnings. During the week I can see or hear positions open and close and watch the daily results tally up. Simple but powerful stuff.

Anyway, the thing that is keeping me awake at night, in a good way, is a relatively easy way to increase the profit per trade. I believe so anyway. Hopefully we'll find out next week... as I'll be developing this new ARTFAB robot pronto.

I do already have a robot trading at an average return of 1.2% per day over the last five weeks (BREAD - basic robot earning all day) but I've set an aggressive stretch goal of averaging 2.5% per day. BREAD just isn't going to get there. Assuming that other people have done much better than my paltry goal really gets the creativity flowing -- as you simply know it's possible if others have done it. There must be a way to get there while strictly controlling risk levels.

I'm sure there are many ways. I intend to find one of them.

Tuesday, October 6, 2009

Buy AUDJPY On Dips?

It's very plausible that the RBA (Reserve Bank of Australia) has started the slow process of moving interest rates from emergency levels to normal.

We'll want to see what happens over the next couple of months in order to confirm this analysis. However, from now on whenever the markets are panicked about the latest downward surprise, it might be time to dip your toes in.

We're staring at the bottom of a long term AUDJPY carry trade cycle.

I know that Japan has made some noise about not wanting a weak dollar -- but you have to look at the size of their debt load before you start to worry about them being willing or able to withstand high interest rates.

The recently touted alternate carry trade, consisting of the AUDUSD, is much more precarious in my opinion. It's great in the short term. However, in the longer term, perhaps a year or more, I think you'll find the greenback starts to get supported by higher interest rates. How else will the USA entice foreign entities to continue to buy and hold debt once the worldwide spate of risk aversion fades?

Personally, I think this is a good time to raise capital and slowly work on getting carry trades protected by an in-profit stop loss. Presumably, over the course of months and years, we should find that 80.00 represents resistance, then perhaps 85.00, 90.00, 95.00 or more. We'll probably have Yen intervention from time to time as well and language designed to scare us out... but if you keep an eye on the fundamentals you can probably view these as opportunities to place more capital into stop loss protected profitable trades.

Also, if I was managing a countries financial reserves I think I'd be looking for currency trading opportunities involving countries that are both economically sound and likely to continue to raise interest rates over the years as inflation gathers steam. The general business cycle is probably not going to disappear this time around either... regardless of all the hyperbole in the mainstream media.

US Economy Heads Up

If you are wondering what is going on with the US economy, this puzzle piece from CNBC will fit in very nicely.

What this is saying is that there probably is not a small business collapse in the works due to credit issues. Smaller businesses will simply wait until they see consumer spending before they bother to access credit.

Personally, I am going to suggest that old habits die hard. For all those that did not suffer unemployment, which will be the majority of consumers, the lure of credit and consumption will be waiting for them once confidence returns. As well, they will have fattened their bank accounts to the point that they won't know how to resist putting some of it to use.

While we do perhaps have a lot of reasons to fear gloom and doom, we also have a consumer tinderbox waiting for a spark. I don't know which one will win out nor do I know how long it will do so. For example, I don't know if the tinderbox can be lit before housing prices start to rise. What is the ratio of renters vs owners?

I do know that the nuggets of information regarding real people, real habits, and their likely actions are few and far between. Too much of the material we read (on CNBC) is very biased by political viewpoints... and you need to find a way to see past that barrier to the good information the partisan baloney conceals.

UPDATE: Wednesday 7-Oct-2009

As a counterpoint, here is another article talking about problems caused by the ongoing lack of various debt-securitization markets.However, I will point out that the title seems a bit broad for the issue at hand. It seems that the article is pointing to the idea of a systemic inability for large lenders to resell their lending in order to enable more lending.

Perhaps the fact that these institutions, and their rating agency cohorts, have just burned half the planet with their prior recklessness is one reason that purchasers of these products are a bit gun shy?

Friday, September 25, 2009

Friday Market Analysis

I am following CNBC regularly (via their web site) these days. I see many of the pundits advocating panic and doom. I suspect they all want to be able to claim they were right when we finally do experience some type of pullback.

However, these braying naysayers of doom really don't have much of import to say. All they really do is act as large forces on the emotions of market players. Everyone is appropriately skittish due to the massive bear movements over the last year or more. It's only natural.

All of these fools who only imagine one direction for the markets will be right from time to time. What they say is not important. What's important is to understand the volatility, or level of price fluctuation, and the amount of risk that this implies when you are trading.

For example, the odd negative number here and there doesn't mean all that much. This doesn't mean the market won't throw a tantrum, but it does mean that there could be a spate of good numbers in another week or two. These trends have variations in them as well. Perhaps because the media jumps on whichever bandwagon has the most passengers the market sentiment gets rapidly overblown.

So, sure, we could see some type of sell-off coming soon. So what? So, don't risk all your money on the notion that the markets, carry trades, risk appetite, GDP growth, corporate profits or whatever will only go up. In fact, cushion yourself by assuming a mini-panic could be right around the corner. Seriously, hasn't everyone been hiding under their sheets due solely to the fact that we're in September?

What am I going to do? I'm going to move more capital into my account. Any serious downtown represents a good opportunity to scale in. So, let it rain, I'm going to wait until all the overextended or panicked fools get forced out, then I'm going to take a peck at an opportunity here and there. Again, just make sure to nibble your way in at appropriate times.

Remember, fear and downward movement provides opportunity, but only if you don't assume you can predict the bottom and thus assume too much risk. When you aren't being pushed into making decisions by market movements you can make much better decisions.

So, early next week, fresh capital into my account. I can apportion this to my robot trading army (I know, but it sounds more fun this way) in small chunks as we come up to significant resistance levels. Unless the world collapses, and if it does my trading account will be the least of my worries, there will eventually be another upturn.

As a side note, I'm planning to make opposing robots this weekend. They will trade long and short positions in different sub-accounts. I expect that one of the two will be earning during up or down movements. I expect both of them will earn during periods that the market is moving sideways. You can't see it but I'm rubbing my hands together in a greedy manner -- think Mr Burns.

Good luck out there.

Thursday, May 28, 2009

Long Term Carry Trade Fundamentals

While reading a recent CNBC article about current events something clicked for me.

Here is the passage:

The dollar rose broadly on Thursday as yields on 10-year U.S. government bonds jumped more than 50 basis points in the last two weeks, drawing Japanese investors into overseas assets like global semi-conductor stocks, banks and U.S. junk bonds, according to Reuters.
Do you remember the massive unwinds that occurred during the past year? Do you remember all the talk about money heading towards Japan due to risk aversion?

Pay attention, this is significant. It's also backs up my much touted long term notion that carry trade currency pairs are in for a recovery.

Given the quote above what do you think will happen once the jobs numbers start to turn around in the US economy? I'll tell you what I think. I think interest rates and yields will start to rise. What do you think all that money sitting in Japan will do if there is a hot US economy paying good yields? I suspect that it will leave Japan in order to earn good returns.

Guess what that will do to the Yen? That's right, it will drop like a stone. When that happens you'll see carry trading pairs rise massively.

Okay, I realize this may be a year to two away, but as long as we do eventually get a worldwide economic stabilization this is what is in store for us. Anyway, if you are a rookie, be careful, as you can't simply make long term bets willy-nilly. The market can always move against future expectations long enough to blow up your account and it often does so as soon as you throw caution to the wind.

What this means for me is that I may be more willing to accumulate carry trade positions at moments of opportunity. Keep an eye out for fundamentals and watch leading economic indicators such as the Baltic Dry Index or the price of copper.

As you can see these indexes are rising. However, they are still at historically low levels. Are we just in a bounce with respect to worldwide economic activity or are we simply coming up from a recent bottom? You decide.

Tuesday, May 26, 2009

FX Trading And Analysis

I've become a little frustrated with most of news sources out there. If you've been an active forex trader for any length of time you'll notice that talking heads are always trying to tell you why something happened.

That's really nice, and might possibly help you learn about various financial interactions, but it's absolutely useless from a trading point of view. If you are trading you need to figure out what's going to happen -- not what just happened. Check out this video (complete with atrociously low audio levels).


This type of analysis is unlikely to help you with your fx trading tomorrow. Generally, how the markets will move tomorrow, based on tomorrow's news, is not something you'll get from any of the gurus and talking heads.

On the other hand useful analysis will be too slow to be meaningful. For example, I'm very confident the world economy will eventually recover. When that happens we'll have a period of high interest rates as rising commodity prices drive inflation. Guess what? This will mean that carry trades pairs will end up at much higher prices. Unfortunately, I can't tell you when the world is going to focus on this. Generally, not before the money moves from wherever it is to wherever it is finally going to end up.

The closest thing to predictive analysis, or something you can really use to drive your forex trades, is technical analysis. Charting. Something which gets very little respect in some circles. Many people don't understand it and many others discount it because it isn't able to make perfectly accurate predictions. Technical analysis does not have to be a perfect tool for prediction. It merely has to increase the odds that your fx positions end up earning you a profit.

Tuesday, May 19, 2009

Microtrading: Decent Returns?

I blogged about this idea not too long ago. The concept is to use very small trades relative to your available margin and net asset value (NAV). I'm doing this with the AUDJPY pair so that when I accumulate positions I am earning a positive carry trade return.

My trade size over the last week has been such that the margin involved in each trade is 0.2% of my NAV. That's tiny. Twenty five trades in and you are looking at using 5% of your available margin.

However, the carry trade interest would represent approximately a 3.65% return if annualized. At the same time my unrealized profits had me up almost 4% earlier this morning. This 4% unrealized profit is due to only the last 10 days of trading. We've had a downturn, I've accumulated positions, and the AUDJPY has jumped just recently.

Anyway, I hope this demonstrates that short term scalping is not the only way to earn money using forex. While this concept won't make you rich overnight the risk is very low and the returns can be good compared to currently available financial instruments.

Wednesday, May 6, 2009

Theory: Trading With Little To No Margin

As I often do, especially when the markets are excruciatingly slow in determining when to make the next significant move, I've been thinking about Forex.

Take a mental walk with me...

The DOW falls from 10,000 to 5,0000 and loses 50% of it's value. It returns from 5,000 to 10,000 and gains 100% of it's value.

Wait, think about that for a minute. In the normal world having the ability to gain double digit gains, per year, is considered excellent.

If you are confident that an upward cycle will eventually happen, in a suitable time frame of course, then movement is valuable. If you aren't trading on margin, and you don't have the associated risk, then you can afford to look at each dip in price as an opportunity.

While this may be applicable to the DOW, it is ever more applicable to the Forex markets. If you are trading with little or no margin it's simply a matter of scaling your entry and exit based on price moves. This is very similar to the gridding concept that I posted recently.

However, when the margin is gone the risk is gone. You choose the price range you expect and scale your entry and exit points within it. If you must, you leave some positions in place while you recapitalize to attack another range. In fact, perhaps you simply allocate a set number of dollars per thousand pip trading range. If the price falls into a lower range you simple ante up and play within a lower range -- while your higher range positions provide interest income.

However, keep in mind, it's possible that currency pairs adjust interest rate differential. This could erode or reverse the suitability of holding a pair over a long period of time.