|
Terry:
First let me point out that this is just an execise. The goal was to duplicate the results Seykota has posted. The system itself expecially the position sizing part is not tradable without heavy modification. (I have posted an cleaner version to the online library which is easier to follow.)
Note: "Quotes from your reference web page"
You are
right.
In the CBT loop,
the equity value is acquired at the beginning, meaning it is from yesterday. The
trade delay (0,0,0,0) is necessary to simulate stop orders in backtesting, which
by their nature are executed immediately when the prices are met. But it doesn't
mean it is same-day-trading. You can certainly enter a stop order for
tomorrow as long as you know the stop price.
(If you find a
better way to simulate stop orders, let me know. This is the first time I have
to use stop orders in AmiBroker).
The
stopPrice calculation is used to simulate Seykato's Skid (slippage) which is
half way between the real stop price and high/low (+/- 0.5*ff). In real
trading, you would probably enter an stop order for tomorrow 1 tick below
fast support and 1 tick above fast resistance of today, without
knowing if your order would be filled or not. So the stopPrice calculation in
the code only make sense in backtesting.
Again, this is just
an execise to demonstrate trend following concept. It doesn't consider all this
factors which are required in real trading. It doesn't consider such factors as
limit up, limit down, position size as volume percentage etc
either.
The position sizing
is based on 5% heat. Meaning not to risk 5% of total equity for every order. So
if the protection stop is very close, the position size can be huge. In reality,
even 1% heat is too much for many systems.
Only "positions: long and short" is applicable. Everything else is unchecked or 0. No stops are set. Again, I haven't studied your code in detail, especially the CBT portion, so maybe you have all these items covered already. PS: The price plot was missing from your display so I added it here because I like to see it and the example shows the price as well: (You don't need to if you just apply the formula as an indicator to an existing price chart) __._,_.___Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [amibroker] Ed Seykota's TSP: Support and Resistance Mark H
- [amibroker] Re: Ed Seykota's TSP: Support and Resistance osgem_2006
- [amibroker] Re: Ed Seykota's TSP: Support and Resistance scourt2000
- Re: [amibroker] Ed Seykota's TSP: Support and Resistance Mark H
