NexusFi: Find Your Edge


Home Menu

 





New Strategy Coding Help


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one FatDemon with 25 posts (3 thanks)
    2. looks_two MWinfrey with 13 posts (10 thanks)
    3. looks_3 grimReaper with 6 posts (2 thanks)
    4. looks_4 vegasfoster with 2 posts (1 thanks)
      Best Posters
    1. looks_one MWinfrey with 0.8 thanks per post
    2. looks_two vegasfoster with 0.5 thanks per post
    3. looks_3 grimReaper with 0.3 thanks per post
    4. looks_4 FatDemon with 0.1 thanks per post
    1. trending_up 14,842 views
    2. thumb_up 17 thanks given
    3. group 23 followers
    1. forum 49 posts
    2. attach_file 9 attachments




 
Search this Thread

New Strategy Coding Help

  #11 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318

Well here it is:

Setup: 2 Tick Renko with Donchian set at 21. I remove the Don Upper/Lower since I don't use them to find entry.

Entry: once the bars cross the Donchian Mean line, I look for it to pass through and close 8 ticks. Once this happens, I place an entry order 1 tick above the Mean line and modify the order along the Mean line until the trend retraces back and fills the order.

Management: I have an ATM strategy set



The purpose of this scalping system is to catch those short runners that move 5-8 points, which happens a few times each morning. Typically, I'll catch one before the morning session is over and call it a day. I do use some discretion when I come into Support and Resistance lines and manually tighten my stop or close out my profit to insure I don't get stopped out on an obvious retrace on my second contract. My pain threshold is about -$300. If I get close to this, I call it a day. If a runner looks to be consolidating, I take my profits and call it a day. I'm looking to take about $500 each day, which I will normally close any profitable trades once my daily profit gets close. If the runner looks strong and there isn't any S/R, I'll let it run it's course. Based on the results, it seems to be working!

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623


MWinfrey View Post
The other point about back testing is that unfortunately the method I use to back test based on the close of the bar instead of the open uses the JAMRenkoFills.cs script that was in the Elite downloads at one time but is no longer there.

Simple way of doing it is while backtesting to replace your market order with limit order:

EnterLongLimit(Close[0])

(this will use close of last bar as an entry price)

Obviously for trading live one you would probably still use the type of order you want/understand the implications

Reply With Quote
Thanked by:
  #13 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


Take a look at this to make sure I've interpreted your rules properly. Import the strategy. Then put it on a chart and enable it. It only displays the Long entries so far. You will see a white arrow marking the entries. I will proceed with the short entries and other capabilities after you approve what I've done so far.

Attached Files
Elite Membership required to download: FatDemonDonchianStrat.zip
Reply With Quote
  #14 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


MWinfrey View Post
Take a look at this to make sure I've interpreted your rules properly. Import the strategy. Then put it on a chart and enable it. It only displays the Long entries so far. You will see a white arrow marking the entries. I will proceed with the short entries and other capabilities after you approve what I've done so far.

Wow, you're fast... and I spent 15 hours yesterday just getting the arrows to show up! I'll check it out!

Today's results:
Caught my runner, stopped out on one entry and missed an earlier trade. I should have made the kids walk to school...damn them...!


+287.50

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #15 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


MWinfrey View Post
Take a look at this to make sure I've interpreted your rules properly. Import the strategy. Then put it on a chart and enable it. It only displays the Long entries so far. You will see a white arrow marking the entries. I will proceed with the short entries and other capabilities after you approve what I've done so far.

I added it to my charts, but the arrows are off. Look at my results for today and notice how I took a short at 9:55 once it retraced back to the Dom line. The order is placed once the renko crosses short 8 tick close at 9:36

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #16 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


FatDemon View Post
I added it to my charts, but the arrows are off. Look at my results for today and notice how I took a short at 9:55 once it retraced back to the Dom line. The order is placed once the renko crosses short 8 tick close at 9:36


Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #17 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


FatDemon View Post
I added it to my charts, but the arrows are off. Look at my results for today and notice how I took a short at 9:55 once it retraced back to the Dom line. The order is placed once the renko crosses short 8 tick close at 9:36

I just notice you said you only plotted long entries... they look right.. sorry! awesome

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #18 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318

Here is what a typical day would look like if I was trading from market open till lunch hours. Your long entry signals look right. However, I obviously wouldn't take one of them since I was already in a trade. I went back and replayed today and took +50 ticks for today based on the below image. I missed the morning and stopped trading live as showed in my previous post.. but this is a normal day outlay.





Revised:
I wouldn't have taken the last winner since I would have already met my $500 mark for the day. I closed my last trade early instead of letting the ATM trail it, which would have cost me several points on the second contract ( if I let it run). Then again, I could have taken 2 more points if I just let it run... the discretion part.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #19 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


FatDemon View Post
Here is what a typical day would look like if I was trading from market open till lunch hours. Your long entry signals look right. However, I obviously wouldn't take one of them since I was already in a trade. I went back and replayed today and took +50 ticks for today based on the below image. I missed the morning and stopped trading live as showed in my previous post.. but this is a normal day outlay.





Revised:
I wouldn't have taken the last winner since I would have already met my $500 mark for the day. I closed my last trade early instead of letting the ATM trail it, which would have cost me several points on the second contract ( if I let it run). Then again, I could have taken 2 more points if I just let it run... the discretion part.

After looking at your chart and reading your posts, I'm wondering why you want a strategy. You obviously apply discretion. A strategy will just get in your way.

Reply With Quote
Thanked by:
  #20 (permalink)
 artemiso 
New York, NY
 
Experience: Beginner
Platform: Vanguard 401k
Broker: Yahoo Finance
Trading: Mutual funds
Posts: 1,152 since Jul 2012
Thanks Given: 784
Thanks Received: 2,685



MWinfrey View Post
After looking at your chart and reading your posts, I'm wondering why you want a strategy. You obviously apply discretion. A strategy will just get in your way.

+1.

Also, if I get the whole part on the renko bars correct, I think it is very unusual reasoning not to fix a bug on the basis that the unfixed version exhibits better results. Another point which MWinfrey stated in the last page that I absolutely agree with is that automated trading does not imply unattended trading.

Reply With Quote




Last Updated on January 4, 2013


© 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