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 gregid with 1 thanks per post
    2. looks_two MWinfrey with 0.8 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,900 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

  #41 (permalink)
 grimReaper 
Los Angeles, CA
 
Posts: 50 since Nov 2011


FatDemon View Post
I noticed on your charts that you are taking 1 contract at entry. When I take an entry, it is always 2. One which takes a 2pt target, and the other to break even + 1 tick (for commissions) and left to catch a quick run up/down in price. The majority of success I've had trading this is that second contract.

Tiny bug in the first version: Misplaced two lines of code which resulted in the strategy not taking all of the available trades. After the fix, it performs even worse (not surprisingly).

If you insist the reason it's not profitable is due to the breakeven stop, I'll take a look.

Attached Thumbnails
Click image for larger version

Name:	Results2.png
Views:	282
Size:	67.0 KB
ID:	95534  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
77 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #42 (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


grimReaper View Post
Tiny bug in the first version: Misplaced two lines of code which resulted in the strategy not taking all of the available trades. After the fix, it performs even worse (not surprisingly).

If you insist the reason it's not profitable is due to the breakeven stop, I'll take a look.

I've been trading this manually for about two weeks with great results. Although I initially only wanted to script this so I'd get better entry...and still use discretion on exits, I think it could be tweaked to preform on its own. Who knows... It may be profitable also because I stop using this strategy once my profit target is hit. This may keep me out of losers, but also out of winners. All in all, I think it is reasonable to assume that being up $500 at some point most days is realistic. Many times, that happens within the first few hours of the session. There have been days I've traded till close and still fell short by a few hundred bucks.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #43 (permalink)
 grimReaper 
Los Angeles, CA
 
Posts: 50 since Nov 2011



FatDemon View Post
I've been trading this manually for about two weeks with great results.

Two weeks is not enough. Look at the graph if you want to know what I mean.

Implemented trailing stops. Entry same as last time, but I added colored dots show the trail, and blue dots to represent trailing stop. Still not profitable.

Works well when price trends, otherwise it gets chopped around.

Attached Thumbnails
Click image for larger version

Name:	chart.png
Views:	268
Size:	63.1 KB
ID:	95589   Click image for larger version

Name:	results.png
Views:	263
Size:	91.6 KB
ID:	95591   Click image for larger version

Name:	graph.png
Views:	252
Size:	46.3 KB
ID:	95593  
Reply With Quote
  #44 (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


grimReaper View Post
Two weeks is not enough. Look at the graph if you want to know what I mean.

Implemented trailing stops. Entry same as last time, but I added colored dots show the trail, and blue dots to represent trailing stop. Still not profitable.

Works well when price trends, otherwise it gets chopped around.


Not profitable! It's up $725 bucks! lol

I see what you mean though, not nearly enough upside to be worth the time. What if the entry was executed on the second signal in the same direction (long or short)? Would that identify a trend and eliminate being stopped out during choppy sideways channels?

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #45 (permalink)
 grimReaper 
Los Angeles, CA
 
Posts: 50 since Nov 2011


FatDemon View Post
Not profitable! It's up $725 bucks! lol

I see what you mean though, not nearly enough upside to be worth the time. What if the entry was executed on the second signal in the same direction (long or short)? Would that identify a trend and eliminate being stopped out during choppy sideways channels?

It's not statistically significant. It spent most of the time in the red. I didn't even apply the $1000s in commission.

I applied the tweek. Makes about $2k, but was unprofitable in 2011. Time to shelve this idea, I'm burned out

Reply With Quote
  #46 (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


grimReaper View Post
It's not statistically significant. It spent most of the time in the red. I didn't even apply the $1000s in commission.

I applied the tweek. Makes about $2k, but was unprofitable in 2011. Time to shelve this idea, I'm burned out

I appreciate you taking a look at it! I guess it's back to watching charts all day... the only consistant profitable method for me over the last 7 years trading. I may get skin cancer from monitor radiation and was hoping this would prevent it... sigh

If you're willing to share your code, I'd love to play with it. Perhaps I can modify it when I learn a little more about programming.

Thanks again.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #47 (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
I appreciate you taking a look at it! I guess it's back to watching charts all day... the only consistant profitable method for me over the last 7 years trading. I may get skin cancer from monitor radiation and was hoping this would prevent it... sigh

If you're willing to share your code, I'd love to play with it. Perhaps I can modify it when I learn a little more about programming.

Thanks again.

I was out most of the day yesterday and just caught up with this thread. @grimReaper thank you for stepping in and doing all the work. You confirmed what my previous study of the donchian entries told me. As I see it, @FatDemon has more knowledge about his set up than he did before so your effort wasn't in vain. Also, it appears that @FatDemon now knows that in order for him to be profitable with this set up, he needs to apply the discretion as he's been doing even though he may die at an early age from radiation poisoning. I have one of these strategies as well. I'm doing very well applying discretion but it's pretty bad as an automated strat.

Good luck...

Reply With Quote
Thanked by:
  #48 (permalink)
 grimReaper 
Los Angeles, CA
 
Posts: 50 since Nov 2011

@FatDemon - Are you still using this strategy? If so, how many trades did you take and how is it going?

Reply With Quote
  #49 (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


grimReaper View Post
@FatDemon - Are you still using this strategy? If so, how many trades did you take and how is it going?

No @grimReaper, I haven't been using this strategy at all for the last few weeks. I've been sticking to price action lately. My hopes and dreams of fully automating my profession have been dashed... sigh... I will however revisit this approach later this month. I'll post the results when I resume.

FD

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #50 (permalink)
 grimReaper 
Los Angeles, CA
 
Posts: 50 since Nov 2011


@FatDemons, alright. Just wondering because I was rereading the thread and despite the very small sample, your initial results (post #7) looks nice. So maybe there was a difference between how my program executed the trades and how you executed the trades.


FatDemon View Post
No My hopes and dreams of fully automating my profession have been dashed... sigh...
FD

What?! Don't give up so easily

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