Minggu, 03 Desember 2006

TRADE SYSTEMS AS SUCH

Last time I was talking about expectations and the use of stops. One of the things that interested me was the relation between a stop and other system parameters like amount of losses/winners and the average win/loss. I stated that for a given trade system a clear relation between these parameters doesn't exist.


But, as you may have noticed in earlier postings I wrote about the win ratio and it's relation to expectation. I described expectation in terms of win ratio (chance of a winner) and one of the things I found was a clear relation between the win ratio and the profit ratio (= average/average loss. From the figure given there some conclusions cold be drawn how big the profit ratio has to be with a given win ratio for the expectancy to be positive.


Now, you could ask, is this in contradiction with findings in my last post?. It is maybe a surprise but I think there isn't.


When I tried to describe a relation between expectancy and win ratio I was primarily interested to let you see the importance of a high win ratio, in contrary to some, or most, writers who stress the importance of an overall profit but ignore to tell you the serious problems you encounter when your trading systems comes up with only a few winners and a bunch of losers. They may be right but is it workable, see my last posting about expectancy and win ratio


So, in these postings I was comparingdifferent trade systems to each other. I then focussed one a particular system and its parameters. I have a strong conviction in the existence of trade systems as such, whose trade parameters are fixed. I think of trade systems as being some entity that produces so and so many trades a year, with a certain expectation per trade and profit factor. Seeing systems this way it is no longer a contradiction to say that parameters of a system in particular are dependant.


Now, the question is now as follows. When I or you try to trade this system, do we get the same results as theoretically would be possible? I already posted before about this (Luck and Randomness) and I suspected then some interesting aspects of trading on which I want to post in the future.

Selasa, 28 November 2006

STOPS AND TRADING SYSTEMS

It is common to use stops to avoid big losses and to avoid the psychological danger a trader can have when he is uncertain to close his positions at time.


Still sometimes no stop is proposed in trading. We all now that too small a stop the will punch out too often, sometimes leaving us behind with a potential winner while too big a stop can have a big influence on our overall results.


Suppose someone trades 100 times a year of which 80% are small winners and mall losers. This is not an unreal situation for a discretionary trader. His results are determined by the last 20% which we suppose to be big winners and big losers.


The influence of one of such a trade is substantial. A big loser or big winner can make a substantial difference to the final results of the trader.
But the question remains if how losers and winners effect each ohter.



We know the concept of Expectancy:


E = P / NP - L / NL = Average Win – Average Loss (1)



In words: The expectation of a trade is the total win divided by the total amount of losses minus the total loss divided by the total amount of losers.


The above formula has four variables, P the total win, L, the total loss, NP the amount of winners and NL the amount of losers. Each of them can be changed, e.g. decreasing the the total loss L, decreases the average loss and so increases the sum which is the expectation E.


But changing one variable in formula (1), changing one may affect the other ones. The variables are said to be dependant from each other. For a given system, changing the average loss may result in changing the average win too!


An example: a system produces 100 trades a year, 60 losers and 40 winners. When 5 potential losses could eventually turned into 5 winners by taking a bigger stop the average win will increase due to this, but you may also expect that the average loss will increase due to the bigger stop of the remaining 35 losses. We also could go for bigger winners just to see an increase in the amount of losses.


We don’t know at forehand what happens and the problem stays. Suppose there is a function G with parameters NP, NL, P, L so that :


G (NP,NL,P,L).


G produces some results in terms of expectation E:


G (NP,NL,P,L) = f (E) (2)


I did some effort to investigate some general characteristics of formula (2). Though not being very being successfully it helped me I a better understanding the concept of a trading system, in fact a way of producing losers and winners which outcomes are dependant to each other.


One of the strangest things I found was that the outcome of a system is changing over time and not seldom worsening, not necessarily in terms of expectation E or E per dollar risk but more in terms of other characteristics as drawdown, amount of losses and winners, runs of losses and winners and so on.


This is a fundamental (stochastic) principle everywhere probability plays such an important role.

Kamis, 16 November 2006

AUTOMATED TRADING

One reason of not being updating recently is a circumstance that I never thought would be important to me. I met a few years ago a trader which became also a friend and after numerous discussions about trading we decided this summer to join and trade some systems I looked at the last years.


This trader would do the actual trading so that would let me time to do my own trading. A good plan until he decided not to trade because of private reasons which left us with the question how to proceed. Go on with it or not. We wanted to proceed but it would mean I had to make the trading efforts.


It was than that I thought about a fully automated trading system (ATS), so that the computer would take the decisions of taking the trading, managing it and closing it. This is not an easy task.


First of all I had to consider my trading configuration. I trade with Interactivebrokers, a broker which also delivers the data. My charting program is SierraCharts and I use a Bracket Trader as a front end program. I am aware of the lacks and the failures of this configuration. I always look at other possibilities but it is somehow difficult to change what you are used to but besides that IB is very cheap and reliable.


I looked for programs doing he job but I did not found it. Tradebolt suggest doing just this but did not convince me. Than I found the website of this German guy, Juergen. On his website he offers a Replay module for back testing Sierra charts but also offers some kind of rudimentary ATS for SierraCharts and Bracket Trader, called fscript. It is written in VBScript of which the bron code is free; an ATS sample can be read and this was what I needed.


The last time I programmed was maybe 20 years ago in old languages as Pascal and Fortran. Programming in a script language was completely new to me and I have to admit it was by far not easy but finally succeeded. It was a very nice surprise to me that Juergen offered his help where he could.


What does fscript do? Simply said it reads data from SieraCharts, decides if a trade has to follow, and send it through Bracket trader to my broker. After weeks of testing it runs now completely free of hands. The only thing to do is to start the program. Off course I have to monitor it because with such a ATS in place something unexpected can happen.


The system is a combination of the FDAX, and two BUND future systems. I hope this will give me and my partner good trading results. The most satisfying was the completion of the ATS itself which enables us to develop and trade future systems automatically and independantly.
Related Posts Plugin for WordPress, Blogger...