NexusFi: Find Your Edge


Home Menu

 





Absolute beginner here, strategy not working, any help greatly appreciated!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one alecsaccount with 13 posts (5 thanks)
    2. looks_two trendwaves with 6 posts (6 thanks)
    3. looks_3 shodson with 2 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 6,151 views
    2. thumb_up 13 thanks given
    3. group 3 followers
    1. forum 21 posts
    2. attach_file 11 attachments




 
Search this Thread

Absolute beginner here, strategy not working, any help greatly appreciated!

  #11 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13


trendwaves View Post
Can you please post a chart with the entry and exit markers and text enabled so we can see what is happening on your chart with the missed exits.

I would, but I'm about to be late for dinner with my mom, and I just switched to Windows, so I'm having a little trouble finding where it dumps your photos when you hit Alt + Print Screen.

Sorry.. I'll post it when I get back.

What do you mean by text enabled?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
Exit Strategy
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #12 (permalink)
 
trendwaves's Avatar
 trendwaves 
Florida
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader 8
Trading: ES, NQ, CL
Posts: 703 since Dec 2012
Thanks Given: 2,898
Thanks Received: 2,525


alecsaccount View Post
I would, but I'm about to be late for dinner with my mom, and I just switched to Windows, so I'm having a little trouble finding where it dumps your photos when you hit Alt + Print Screen.

Sorry.. I'll post it when I get back.

What do you mean by text enabled?

You can save a chart image to a file from inside NinjaTrader, no need to do Alt Print Screen. Right click in the chart window and select "Save Chart Image" from the popup menu. You can then add the saved chart image to your post here.

"Text Enabled" means how the trade executions are notated on the chart. To control this feature right click in the chart window and select "Data Series", at the bottom of the Data Series dialog bog is a selection called "Plot executions" , select that and choose "Text and marker" from the pull down menu.

Enjoy your dinner.

Be Patient and Trade Smart
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #13 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13



trendwaves View Post
You can save a chart image to a file from inside NinjaTrader, no need to do Alt Print Screen. Right click in the chart window and select "Save Chart Image" from the popup menu. You can then add the saved chart image to your post here.

"Text Enabled" means how the trade executions are notated on the chart. To control this feature right click in the chart window and select "Data Series", at the bottom of the Data Series dialog bog is a selection called "Plot executions" , select that and choose "Text and marker" from the pull down menu.

Enjoy your dinner.

So maybe you're using a different version or something; I couldn't find "data series" anywhere. I'll post again if you can tell me where to find that data series thing in NT8 backtest charts.





like I said, it doesn't happen very often.. These were kinda tough to find.

I just ate a lot of pizza.. It's getting hard to keep my eyes open, I'm gonna have to pick this up tomorrow.

Started this thread Reply With Quote
  #14 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13

a few more examples





It seems to only happen when the wick crossed the band but the candle did not. I know NT7 backtesting doesn't check intra-bar, but NT8 has an option for high order fill resolution which I have set to 1 tick, so this shouldn't be happening, right?

It's also missing a lot of entries, regardless of whether the open/close of the bar is past the band.



Started this thread Reply With Quote
Thanked by:
  #15 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13

Strategy

Attached Files
Elite Membership required to download: MyCustomStrategy.cs
Started this thread Reply With Quote
Thanked by:
  #16 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13

Playback not working;



Edit: Okay, I was wrong; I actually did get it to load the days I wanted! Sorry for the confusion..



As you can see, on the market replay it missed 1 exit, but caught the second one, which it missed on the backtest-



So I guess my question is why did this happen, and how can I make the backtests work properly? It would take a while to get the same results using market replay.

Started this thread Reply With Quote
  #17 (permalink)
 
trendwaves's Avatar
 trendwaves 
Florida
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader 8
Trading: ES, NQ, CL
Posts: 703 since Dec 2012
Thanks Given: 2,898
Thanks Received: 2,525

That is odd, it missed two exits.

Let me download that data and run it through MR.

You can speed up Market Replay to 100x normal speed, agreed it's cumbersome for this type of effort but since the backtest is not working we need to try a different path to debug the strategy.

Be Patient and Trade Smart
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #18 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13


trendwaves View Post
That is odd, it missed two exits.

Let me download that data and run it through MR.

Is there a way to do that where you don't have to download each day individually?


trendwaves View Post
You can speed up Market Replay to 100x normal speed, agreed it's cumbersome for this type of effort but since the backtest is not working we need to try a different path to debug the strategy.

You can actually crank it up to 1000.


trendwaves View Post
debug the strategy.

So it's definitely a problem with the strategy that is messing with the backtest accuracy? As in something we can fix? That would make my day.. I reaaally don't want to run this through MR every time I test. Thanks again for your time!

Started this thread Reply With Quote
  #19 (permalink)
 
trendwaves's Avatar
 trendwaves 
Florida
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader 8
Trading: ES, NQ, CL
Posts: 703 since Dec 2012
Thanks Given: 2,898
Thanks Received: 2,525

I played around with this in Market Replay off and on for a couple of hours and came up with a couple of versions.

Version One is as stripped down as I can make it. You can at least use it to learn how replay, backtest,
and live relate to each other. Also you can use it to compare with anything new you come up with.

Version Two gives you more flexibility with the entry and exit rules.

I made a few little changes to help it along, one being setting the Calculate mode to
Calculate = Calculate.OnEachTick; which helps it to trigger a response right as the band
is crossed.

Be Patient and Trade Smart
Attached Files
Elite Membership required to download: BollingerStrategyTwo.cs
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #20 (permalink)
 alecsaccount 
San Diego, California
 
Experience: Beginner
Platform: NinjaTrader 8
Trading: Emini ES, EUR/USD
Posts: 65 since Dec 2016
Thanks Given: 229
Thanks Received: 13



trendwaves View Post
I played around with this in Market Replay off and on for a couple of hours and came up with a couple of versions.

Thank you so much.. I feel like I should be paying you. I'm going to run it right after this reply, and then I'll edit with an update.


trendwaves View Post
Version One is as stripped down as I can make it. You can at least use it to learn how replay, backtest,
and live relate to each other. Also you can use it to compare with anything new you come up with.

Version Two gives you more flexibility with the entry and exit rules.

Version One won't compile-

Line 6 column 11; NinjaTrader.NinjaScript.Strategies.Strategy.Bollinger(double, int)' is a 'method' but is used like a 'type'

Line 8 column 11; Type or namespace 'TimeSpan' could not be found (are you missing a using directive or an assembly reference?)

No idea what that means..


trendwaves View Post
I made a few little changes to help it along, one being setting the Calculate mode to
Calculate = Calculate.OnEachTick; which helps it to trigger a response right as the band
is crossed.

Yeah, that was one of the first things I tried.. I only had it set to Calculate = CalculateOnPriceChange because it still wasn't working.. but hopefully whatever else you did fixed it.

UPDATE; You fucking fixed it, you genius!! Ohh my god I am so happy. I don't even know what to say.. If you ever come to southern California, you have a place to stay. Cheers!

Started this thread Reply With Quote
Thanked by:




Last Updated on December 16, 2016


© 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