Horace Goes Skiing (free Forex strategy with Ninjascript)

This is a discussion on Horace Goes Skiing (free Forex strategy with Ninjascript) within the Free Systems forums, part of the Mechanical & Systems Trading category; Here's one from my discard pile that people looking to start on strategies might be interested in. This is an ...

Reply
1 1 Attachment(s)
 
LinkBack Thread Tools
Senior Member
 
Join Date: Apr 2008
Posts: 498
rnicoll's Trading Profile
Horace Goes Skiing (free Forex strategy with Ninjascript)

Here's one from my discard pile that people looking to start on strategies might be interested in. This is an idea I had for trading EUR/CHF, and coded up this morning. The results are mixed; it might make money as an autotrader, but it's too unstable for my tastes. The fact that it gets trades 20-30% right and relies on the profits being much bigger than the losses doesn't help this.

Full source code to the strategy ready to run in Ninjatrader is attached, released under BSD license ( Open Source Initiative OSI - The BSD License:Licensing | Open Source Initiative ). Basic idea is that it creates two "ski slopes" from a Bollinger band pairs, and when the market moves from between the two slopes and into either, it open a trade in the direction of the slope. It closes out when the market leaves the slope. Price data is smoothed using an SMA of 5 periods to reduce hard swerves messsing with the system.

The parameters as supplied work well for GBP/USD over the last 7 months, but it's not designed to last that long un-optimised. I'd suggest a walk-forward optimisation, optimising on 21 days data every 7 days. Oh, and I use minute bars as my data source.

Tested only with Forex, but I'd love to know how it works for anything else.

Hope you find it interesting.

P.S. Hopefully this is obvious, but it's explicitely designed for a trending market.
Attached Files
File Type: zip HoraceGoesSkiing.zip (6.5 KB, 113 views)
rnicoll is offline   Reply With Quote
Senior Member
 
Join Date: Apr 2008
Posts: 498
rnicoll's Trading Profile
rnicoll started this thread Intruigingly, the script doesn't actually do what I meant. Implemented correctly, it's one of the most interesting ways of losing money I've seen in a long time. As it stands, though, it doesn't actually use the outer band at all...
rnicoll is offline   Reply With Quote
Guest
 
Join Date: Feb 2008
Posts: 1,024
Horace goes skiing - wasn't that early spectrum or ZX81 ?
pedro01 is offline   Reply With Quote
Senior Member
 
Join Date: Apr 2008
Posts: 498
rnicoll's Trading Profile
rnicoll started this thread
Quote:
Originally Posted by pedro01 View Post
Horace goes skiing - wasn't that early spectrum or ZX81 ?
Yup
rnicoll is offline   Reply With Quote
Registered User
 
Join Date: Jun 2008
Posts: 230
I first learnt to write code on a ZX80.

Loved those spectrum games though - wasted half my early teenage years playing them.
north5 is offline   Reply With Quote
Senior Member
 
Join Date: Apr 2008
Posts: 498
rnicoll's Trading Profile
rnicoll started this thread
Quote:
Originally Posted by north5 View Post
I first learnt to write code on a ZX80.

Loved those spectrum games though - wasted half my early teenage years playing them.
ZX80? Yikes, and I thought my learning on a BBC B was archaic stuff

Y'know, I should probably at some point figure out why the "broken" version of this seems to actually work...
rnicoll is offline   Reply With Quote
Registered User
 
Join Date: Jun 2008
Posts: 230
My dad was into electronics and built it for us in kit form. You had to write the programs in from magazines basically. It was a great time.(what a sad life I lead)

Last edited by north5; Jul 20, 2008 at 3:12pm.
north5 is offline   Reply With Quote
Senior Member
 
Join Date: Apr 2008
Posts: 498
rnicoll's Trading Profile
rnicoll started this thread
Quote:
Originally Posted by north5 View Post
My dad was into electronics and built it for us in kit form. You had to write the programs in from magazines basically. It was a great time.(what a sad life I lead)
My dad was... yeah, lets not have him anywhere near a screwdriver, for the best really..
rnicoll is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone been skiing in Poland? Hoggums The Foyer 16 Mar 17, 2009 6:40pm
Forex Cashing In Strategy crazydeveloper Forex Strategies & Systems 3 Jul 22, 2008 5:29pm
Forex-Strategy Team Welshmal Forex Strategies & Systems 14 Oct 7, 2004 11:22am
Free Trading Strategy Newtron Bomb Forex Strategies & Systems 26 Sep 1, 2003 9:37am


New To Site? Need Help?


All times are GMT -4. The time now is 4:06am.


Copyright © 2001-2009 Trade2Win Ltd