NexusFi: Find Your Edge


Home Menu

 





NT7 Strategy/Strategies Needed


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Slipknot511 with 5 posts (2 thanks)
    2. looks_two zeller4 with 1 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (0 thanks)
    1. trending_up 4,393 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 8 posts
    2. attach_file 3 attachments




 
Search this Thread

NT7 Strategy/Strategies Needed

  #1 (permalink)
 
Slipknot511's Avatar
 Slipknot511 
Springfield,Missouri, USA
 
Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Trading: CL, TF, 6E
Posts: 169 since May 2010
Thanks Given: 60
Thanks Received: 314

I would like to test some trading ideas. Since I have no programming experience whatsoever and I would like to be able to trust the historical results, I thought it best to have someone more qualified than me. I'm willing to either pay someone to do this or make a donation to futures.io (formerly BMT) on behalf of the programmer. While easy to visually backtest such a simple approach, it's unbelievably time consuming, so it's worth a few bucks for a strategy. This is only for forward & back-testing, not trading live!

There are two different strategies I would like. (They can also be programmed into just one strategy with user entered variables to select the differences between them, if possible) It would also be nice if it was constructed in such a way as to be able to run optimization on the variables.
These are a simple breakout with different methods for exit. The easiest way for me to be able to define breakout is to use a break of the default NT7 donchian indicator. I use a displacement of 1 on my charts to make the break more visual (in case that matters). This will be traded on minute, range or tick charts, so all indicators are calculate on close=false.
The variables:

1)
Donchian = enter with stop on break by X ticks.
Exit Stop = ticks or %ATR
Profit Limit = ticks or %ATR
Start Time & Stop Time = (HH:MM) (close/cancel all @ stop time)
Max trades per day
Slippage = X ticks

2)
Donchian 1 (slow) = enter with stop on break by X ticks.
Donchian 2 (fast) = exit with stop on X ticks break
Start Time & Stop Time = (HH:MM) (close/cancel all @ stop time)
Max trades per day
Slippage = X ticks

It would be great (but not necessary) if the two could be combined into one strategy with exit options for scaling out. i.e. Exit 3 lots @ X ticks(or %ATR), then exit remaining @ break of fast donchian (or greater ticks/%ATR).
(or maybe just the option to assign an ATM strategy for scaling out).

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Did you try to create it with the "Wizard" ?
I don't use it, but I know that simple things can be done with it, just in clicking
You wont be able to have the start/stop time, nor the max number of trades/day with it, but i will give you a first "image" of the strategy.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #4 (permalink)
 
Slipknot511's Avatar
 Slipknot511 
Springfield,Missouri, USA
 
Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Trading: CL, TF, 6E
Posts: 169 since May 2010
Thanks Given: 60
Thanks Received: 314

Remember... I have ZERO programming skills. I tried the wizard several times, and they didn't function at all. No trades. I tried reading the tutorials and watching the videos and it might as well have been in Greek. I was completely lost after the first minute or so.

The start stop time & max trades are the core of the strategy as this is basically testing open range breakouts.

I do also have 6.5 installed, so if somebody is more at ease with it, that will do... I just don't have much historical data for 6.5. I've tried exporting NT7 data & importing into 6.5 = No joy.

Started this thread Reply With Quote
  #5 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Hey Slipknot,

Don't worry, you're from the SHOWME state, so just hang in there. You'll eventually get it.
Also, I'd recommend you stay with V7, it appears to me to be stable enough going forward, I'm still on v7.19 and don't yet want to migrate to 7.20 til I know it's working fine.

Try a couple screenshots for the community to demonstrate what you're trying to achieve. Someone who loves coding but doesn't like to keep tweaking it because of misunderstandings or unspoken ideas will get frustrated after awhile. Someone might like to give you some basic help.

Keep looking at the helpful videos, then, try the wizard one more time - or in my case, until I got it. If you get satisfaction from hands-on do-it-yourself projects, you may just get there sooner than you think.

HTH,
kz

Reply With Quote
Thanked by:
  #6 (permalink)
 
Slipknot511's Avatar
 Slipknot511 
Springfield,Missouri, USA
 
Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Trading: CL, TF, 6E
Posts: 169 since May 2010
Thanks Given: 60
Thanks Received: 314

Thanks, I do eventually want to learn C# and NT7 programming.

Here's a screen cap of today's chart.
My start time is 8:40 CST... no trades before then (I have an indi that automatically highlights it on my chart).
The blue lines are an 8 bar donchian (basically the highest high and low of the last 8 bars).
The red lines are my 2 bar donchian (highest high & lowest low for the last 2 bars).
Breakout of 8 bar is entry.
Break of 2 bar donchian is trailing stop.
First target is 10 ticks. Second target is the stop being hit.
With these rules, there were 2 trades today. Today was an unusually good day because of the news spike down.

I usually don't trade this mechanically. For example, in Dec. 09, and Mar. '10, these rigid rules had piss poor returns. While it didn't lose money, the equity curve was pretty gut wrenching.

What I hope to accomplish with the strategy is to test other parameters for exits. 10 ticks is arbitrary and the market tended to move only 9-10 ticks last winter, so a limit target didn't get filled. Perhaps a %of ATR would make for better targets as it could adapt to volatility. Maybe I'd be way better off not taking the first target and just letting the whole order run to the stop. (Today, that would have netted me another $100. Other days, I'd not pocket the 19 ticks at all). What about exiting all contracts at 20 ticks?

The entry works for me. The market is usually in breakout mode during the first hour. At this point, it's all about managing the position and having a good exit strategy. Considering how long it took me to come up with a satisfactory entry and timeframe, it would take forever to nail down an exit strategy without computer backtesting of different ideas.

That's where I'm at and what I'm looking for. I have all sorts of money management rules and such. I don't need all that coded, I merely want to see if a particular idea has a decent edge or not. Also, I've only traded this on the mini Russell. With a strategy, I could test this on other markets to see if the general idea is robust. Plus, with a strategy, I could also test this over various slices of time and markets (Sort of a poor man's Monte-Carlo).

Also, I've added a snapshot of a losing day... last Wednesday, so you can see this isn't the holy grail by any means. That day was about as pleasant as passing a kidney stone. Typically, the stops are wide initially, but tighten very fast. This was one of the few exceptions. Wed was about as bad as it gets with this method... unless you just keep on trading. Then it could get much worse.
"Gotta know when to fold 'em"

Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	272
Size:	74.8 KB
ID:	18876   Click image for larger version

Name:	8-11-10.JPG
Views:	213
Size:	62.4 KB
ID:	18878  
Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 
Slipknot511's Avatar
 Slipknot511 
Springfield,Missouri, USA
 
Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Trading: CL, TF, 6E
Posts: 169 since May 2010
Thanks Given: 60
Thanks Received: 314

Here's today's chart showing a little of the discretion I take, plus it shows how some alternate exits may/may not be much more profitable over the long haul.

Today was a $200 day, but could have been $400 or $600 had I simply targeted 2 or 3 pts instead of scaling out. I need a strategy to see if this would be profitable long-tern though. So you can see why it's easily worth a couple hundred bucks for me to have a well-built strategy made.

I'm going to take a whack at the wizard again this weekend. I think the easiest way for me to create the most flexible and versatile strategy is to make it call upon an ATM for trade management. That way I have an infinite choice of exit strategies that I can easily change without having to modify the strategy itself. I think I can probably pull that off. It's simple enough. The only variables I need are:

Start time
Entry channel (stock donchian indi)
Stop ATM
Max trades per session

While this won't lend itself to optimization, it would be a great start & would suit my purposes.

I'll chronicle my feeble attempts here and let's see if we can get this done. I know there's some amazingly talented people on this forum who could do this in their sleep. But I do enjoy a challenge and will probably learn a lot trying the DIY approach. Plus most people are more willing to help those who are willing to help themselves.

Besides the NT support forum, any other hints tips would be appreciated. But be gentle... it's my first time.

Attached Thumbnails
Click image for larger version

Name:	8-20-10.JPG
Views:	210
Size:	61.7 KB
ID:	18885  
Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 
Slipknot511's Avatar
 Slipknot511 
Springfield,Missouri, USA
 
Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Trading: CL, TF, 6E
Posts: 169 since May 2010
Thanks Given: 60
Thanks Received: 314

Well, only being able to use the wizard if frustrating. It's very limited.

For starters, the biggest problem is the COBC=false problem. I can only run this with replay data, otherwise the results are worthless. Frankly, It's quicker to backtest with pen and paper than to fiddle around with replay. And since I need intrabar execution, that makes optimization out of the question. The only work around I can think of is to run this on a 1-second chart and multiply my breakout channel by 60.
Since I haven't yet invested anything in NT strategies or learning C#, I have to wonder if it wouldn't be better to start with MultiCharts for backtesting purposes. Hell, I may even switch completely if they implement a chart trader.

Started this thread Reply With Quote
  #9 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

There is a demo script on the Ninja support site that shows how to backest with intrabar granularity. You basically add a smaller time frame data series and trade off that using COBC=true. Say your signals are 5 min bars, but you actually trade off 1 sec bars.

IMHO it is worth your while in the long run to learn to code rather than use a Wizard, be it on ANY trading platform or language. Short term pain, long term gain etc etc.

Reply With Quote




Last Updated on August 22, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts