test of the trading simulator: using stop and reverse
I want to be able to set a stop at a given number of ticks and reverse position at the stop instead of closing my position.
I changed the following modules:
trade.py
money.py
and the script
dotrade.py
The resulting orders for a stop set at 2 ticks and 6 ticks are in
orders5m_reverse2.csv
orders5m_reverse6.csv
and the executions are in
execs5m_reverse2.csv
execs5m_reverse6.csv
This is the chart (click it to see it full-size):

To understand what is going on, bear in mind that the chart shows:
1) the highs and lows of the 5m bars in grey
2) short entries as black dots
3) long entries as blue dots
4) stop executions as red dots
5) entries resulting in a loss as red circles around the corresponding dot
6) green lines connecting entry and exit of a winning trade
7) red lines connecting entry and exit of a losing trade
This experiment shows a loss of $265.6.
Setting a tighter stop makes things worst. A stop and reverse at 2 ticks results in a loss of $2,444.
Categories: trading simulator, trading setups, price action
I changed the following modules:
trade.py
money.pyand the script
dotrade.pyThe resulting orders for a stop set at 2 ticks and 6 ticks are in
and the executions are in
This is the chart (click it to see it full-size):

To understand what is going on, bear in mind that the chart shows:
1) the highs and lows of the 5m bars in grey
2) short entries as black dots
3) long entries as blue dots
4) stop executions as red dots
5) entries resulting in a loss as red circles around the corresponding dot
6) green lines connecting entry and exit of a winning trade
7) red lines connecting entry and exit of a losing trade
This experiment shows a loss of $265.6.
Setting a tighter stop makes things worst. A stop and reverse at 2 ticks results in a loss of $2,444.
Categories: trading simulator, trading setups, price action
![Blogger Feed [Blogger Feed]](http://adwords.blogspot.com/media/blogger-feed.png)
![Add to My Yahoo! [Add to My Yahoo!]](http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif)
![Subscribe with Bloglines [Subscribe with Bloglines]](http://www.bloglines.com/images/sub_modern1.gif)

![Blogroll Me! [Blogroll Me!]](http://img107.imageshack.us/img107/3803/blogrollme1uw.png)
![Add to Technorati Favorites! [Add to Technorati Favorites!]](http://static.technorati.com/pix/fave/tech-fav-4.gif)
posted by Benz at 19:45 










0 Comments:
Post a Comment
<< Home