| |||||||
| |||||||
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 ...
![]() |
| |||
|
| | LinkBack | Thread Tools |
| | #1 |
| Senior Member | 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. |
| |
| | #2 |
| Senior Member |
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... |
| |
| | #3 |
| Guest Join Date: Feb 2008 Posts: 1,024
|
Horace goes skiing - wasn't that early spectrum or ZX81 ? |
| |
| | #4 |
| Senior Member | |
| |
| | #5 |
| 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. |
| |
| | #6 | |
| Senior Member | Quote:
Y'know, I should probably at some point figure out why the "broken" version of this seems to actually work... | |
| |
| | #7 |
| 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. |
| |
| | #8 |
| Senior Member | |
| |
![]() |
| 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? |
Please Visit Our Preferred Brokers
GlobalFuturesDeep Discount Broker | MF Global Futures, Forex & CFDs | ||
Capital Spreads Spread Betting | FXCMForex Trading | IG Index Spread Betting | optionsXpressOptions, Stocks & Futures |
ChoiceTradeDirect Acess Broker | Galvan CFD Advisory Service | IG Markets CFD Specialist | thinkorswimAward Winning Broker |
All times are GMT -4. The time now is 4:06am.
Copyright © 2001-2009 Trade2Win Ltd







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...

