NexusFi: Find Your Edge


Home Menu

 





Ninjatrader 8 not ready for prime time?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bobc635 with 39 posts (66 thanks)
    2. looks_two bobwest with 30 posts (58 thanks)
    3. looks_3 Blash with 26 posts (24 thanks)
    4. looks_4 NinjaTrader with 22 posts (43 thanks)
      Best Posters
    1. looks_one NinjaTrader with 2 thanks per post
    2. looks_two bobwest with 1.9 thanks per post
    3. looks_3 bobc635 with 1.7 thanks per post
    4. looks_4 Blash with 0.9 thanks per post
    1. trending_up 93,019 views
    2. thumb_up 437 thanks given
    3. group 68 followers
    1. forum 310 posts
    2. attach_file 16 attachments




 
Search this Thread

Ninjatrader 8 not ready for prime time?

  #61 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018

It's true that you can get issues with workspaces, but again this most likely comes back to indicators. There's plenty of ways to screw things up by not managing state, serialization, public variables, and edge conditions properly. There can be bugs in the indicator that don't show up until you reload the workspace or template. You run into an edge condition that your code doesn't handle properly, and then that error gets serialized and causes problems the next day.

My suggestion for the NinjaTrader devs is to focus on some changes that will help us track down issues like this more easily. Here's a few ideas:
  • When indicators break I usually just get a short error message to the output window / log. This is rarely enough information to help anyone determine even what indicator the error is coming from. I'll usually try to debug with visual studio so I can fix it, but most users aren't going to take it that far. I'll usually need a stack trace, and information about which chart it's attached to in order to track it down.
  • I've had issues where it crashes while loading up the workspaces. Deleting my workspace.xml file solves the issue, but doesn't allow me to find out why it was crashing. The ability to pause NinjaTrader during startup so that I can attach a debugger to the application would be useful.
  • I have a few bugs that are difficult to recreate. I'll only run into a day that causes the error once a month, and when I do I don't have time to debug things. When I start up the next day it's gone. Some way to save the state of everything so I can debug later would be nice.
  • It would also be nice to have a way to specifically recreate problem datasets. An instrument with hand crafted historical data that I know has caused problems with my indicator in the past. I could then use that instrument as a sort of regression test.
  • A way for the author to provide within the script contact and update information. If an error with an indicator is detected the users can send bug reports to the author. If the author has made an update it can notify the users.

If you're having these sort of workspace issues my suggestion is to list out every indicator you're using in your workspace. Perhaps we can find issues in the indicators you are using.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #62 (permalink)
 luigizerozero 
hong kong
 
Experience: Beginner
Platform: Ninjatrader
Trading: futures
Posts: 35 since Oct 2014
Thanks Given: 66
Thanks Received: 25

Thanks for all of your input. Has any of you experience these problems?

1) My workspaces go "blank" on a regular basis, that is the file is not deleted but the content is empty. This usually happens after an automatic backup which is every Friday.

2) when I'm trying to load/save a template, the menu bar on each chart flashes erratically. I'm told that there's a bug with one of my code, as instructed by NT I start fresh and tested each indicator one by one, I can't replicate the problem. But when I run these indicators together, the problem comes back after awhile. NT solution is to reinstall the program again. I really don't want to do this as I've spent so much time fixing things on NT rather than trading. I'm using V8.05.

If anyone has similar experiences or know what the problem/fix could be, please let me know. Thanks!

Reply With Quote
  #63 (permalink)
 bobc635 
Tucson
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage5
Trading: CL, YM
Posts: 209 since Jan 2011
Thanks Given: 137
Thanks Received: 233


Hi Luigi.... I have had an occasional flashing of the chart, but not the other probs. I do not use the Ninja backup. I back up my entire drive weekly.

My routine seems to work pretty well for keeping NT8 in check..... I posted it a few days ago in this thread...

Daily....
Before I start, I open the Windows Task Manager and sort by memory use.
Before I start NT 8, I clear NT 8 cache and in db clear cache and the contents of day, min, and tick as well as _Workspaces (bcNT8Cleanup.bat)
After I start NT 8, I let the NT8 CPU usage go down under 10% and then I connect to broker.
Memory should be in the 700Mb area, depending on your charts and indis.
I keep an eye on memory use and if it creeps up to 1.5GB area, I go through the NT shutdown and restart procedure.. Changing indi parameters may start a memory build.

Every Week, delete titled workspaces and rebuild them. I don’t know why, but they seem to contribute to memory creep. To rebuild, start a fresh chart and apply the chart templates. So far, the chart templates do not add to memory creep.

With all of the probs that I am reading about and experiencing, it seems that NT either needs to set up a service to produce compliant indis or have a way of validating the indies that the users build. The swamp seems to be getting a lot busier.

Bob




luigizerozero View Post
Thanks for all of your input. Has any of you experience these problems?

1) My workspaces go "blank" on a regular basis, that is the file is not deleted but the content is empty. This usually happens after an automatic backup which is every Friday.

2) when I'm trying to load/save a template, the menu bar on each chart flashes erratically. I'm told that there's a bug with one of my code, as instructed by NT I start fresh and tested each indicator one by one, I can't replicate the problem. But when I run these indicators together, the problem comes back after awhile. NT solution is to reinstall the program again. I really don't want to do this as I've spent so much time fixing things on NT rather than trading. I'm using V8.05.

If anyone has similar experiences or know what the problem/fix could be, please let me know. Thanks!


Reply With Quote
Thanked by:
  #64 (permalink)
 
Blash's Avatar
 Blash 
Chicago, IL
Legendary Market Chamois
 
Experience: None
Platform: NT8,NT7,TWS
Broker: InteractiveBrokers, S5T, IQFeed
Trading: The one I'm creating in the present....Index Futures mini/micro, ZF
Posts: 2,311 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,518


TWDsje View Post
It's true that you can get issues with workspaces, but again this most likely comes back to indicators. There's plenty of ways to screw things up by not managing state, serialization, public variables, and edge conditions properly. There can be bugs in the indicator that don't show up until you reload the workspace or template. You run into an edge condition that your code doesn't handle properly, and then that error gets serialized and causes problems the next day.

My suggestion for the NinjaTrader devs is to focus on some changes that will help us track down issues like this more easily. Here's a few ideas:
  • When indicators break I usually just get a short error message to the output window / log. This is rarely enough information to help anyone determine even what indicator the error is coming from. I'll usually try to debug with visual studio so I can fix it, but most users aren't going to take it that far. I'll usually need a stack trace, and information about which chart it's attached to in order to track it down.
  • I've had issues where it crashes while loading up the workspaces. Deleting my workspace.xml file solves the issue, but doesn't allow me to find out why it was crashing. The ability to pause NinjaTrader during startup so that I can attach a debugger to the application would be useful.
  • I have a few bugs that are difficult to recreate. I'll only run into a day that causes the error once a month, and when I do I don't have time to debug things. When I start up the next day it's gone. Some way to save the state of everything so I can debug later would be nice.
  • It would also be nice to have a way to specifically recreate problem datasets. An instrument with hand crafted historical data that I know has caused problems with my indicator in the past. I could then use that instrument as a sort of regression test.
  • A way for the author to provide within the script contact and update information. If an error with an indicator is detected the users can send bug reports to the author. If the author has made an update it can notify the users.

If you're having these sort of workspace issues my suggestion is to list out every indicator you're using in your workspace. Perhaps we can find issues in the indicators you are using.



I use Process Hacker to pause NT8 and anything else for that matter. https://processhacker.sourceforge.net/

Ron


Sent from my iPhone using futures.io

...My calamity is My providence, outwardly it is fire and vengeance, but inwardly it is light and mercy...
The steed of this Valley is pain; and if there be no pain this journey will never end.
Buy Low And Sell High (read left to right or right to left....lol)
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #65 (permalink)
 bobc635 
Tucson
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage5
Trading: CL, YM
Posts: 209 since Jan 2011
Thanks Given: 137
Thanks Received: 233

Thanks Blash.... I have asked NT to supply some tool that would allow them, or users to track down what is consuming the memory... even as basic as the Windows Task manager, but with enough detail to watch each window and perhaps each process within a window within NT. I asked several months ago and have not seen anything yet. Maybe if we all post enough, they will get the message. The platform has great potential, but the frustrations may outway the benefits at some point. NT Support seems to accept mediocre platform performance... or their hands are tied and they have no solution. I agree with you... it is a development problem.

Bob



Blash View Post
I use Process Hacker to pause NT8 and anything else for that matter. Overview - Process Hacker

Ron


Sent from my iPhone using futures.io


Reply With Quote
Thanked by:
  #66 (permalink)
 bobc635 
Tucson
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage5
Trading: CL, YM
Posts: 209 since Jan 2011
Thanks Given: 137
Thanks Received: 233

Thanks TWDsje, to me, it seems that we are chasing a ghost, but that just means that I dont understand yet. Using my data and cache clearing routing daily seems to keep things in check, but I am continuing on the path of trying to find if my indies are at the root of the problem.

I know that there is no data flowing on the weekend, but I have had memory creep problems on weekends in the past. I loaded 10 instances of each of my indies on a chart, one by one, watching for odd behavior. I changed parameters around a lot and recalculated often and I could not find any issues on this experiment. Perhaps the latest version has resolved some of those issues. I am running 8.0.5.1 64-bit.

Maybe this week, I will try not using my clear routine and see if the memory issues have been resolved.

We should all keep piping in and see if we can help each other in any way. I know that SIM22 really helped me a lot, and Zondor has given me some info to digest.

Trade Well... and Good Luck!!!!
Bob



TWDsje View Post
It's true that you can get issues with workspaces, but again this most likely comes back to indicators. There's plenty of ways to screw things up by not managing state, serialization, public variables, and edge conditions properly. There can be bugs in the indicator that don't show up until you reload the workspace or template. You run into an edge condition that your code doesn't handle properly, and then that error gets serialized and causes problems the next day.

My suggestion for the NinjaTrader devs is to focus on some changes that will help us track down issues like this more easily. Here's a few ideas:
  • When indicators break I usually just get a short error message to the output window / log. This is rarely enough information to help anyone determine even what indicator the error is coming from. I'll usually try to debug with visual studio so I can fix it, but most users aren't going to take it that far. I'll usually need a stack trace, and information about which chart it's attached to in order to track it down.
  • I've had issues where it crashes while loading up the workspaces. Deleting my workspace.xml file solves the issue, but doesn't allow me to find out why it was crashing. The ability to pause NinjaTrader during startup so that I can attach a debugger to the application would be useful.
  • I have a few bugs that are difficult to recreate. I'll only run into a day that causes the error once a month, and when I do I don't have time to debug things. When I start up the next day it's gone. Some way to save the state of everything so I can debug later would be nice.
  • It would also be nice to have a way to specifically recreate problem datasets. An instrument with hand crafted historical data that I know has caused problems with my indicator in the past. I could then use that instrument as a sort of regression test.
  • A way for the author to provide within the script contact and update information. If an error with an indicator is detected the users can send bug reports to the author. If the author has made an update it can notify the users.

If you're having these sort of workspace issues my suggestion is to list out every indicator you're using in your workspace. Perhaps we can find issues in the indicators you are using.


Reply With Quote
Thanked by:
  #67 (permalink)
 bobc635 
Tucson
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage5
Trading: CL, YM
Posts: 209 since Jan 2011
Thanks Given: 137
Thanks Received: 233

I updated to NT 8.0.5.2 64-bit.... so far, so good for my setup. It runs less memory than NT 7... Good Job Ninja!!!!


After an hour... this revision seems great.... Chart refresh is very quick and memory is very well contained.

Bob

Reply With Quote
Thanked by:
  #68 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018


bobc635 View Post
Thanks TWDsje, to me, it seems that we are chasing a ghost, but that just means that I dont understand yet. Using my data and cache clearing routing daily seems to keep things in check, but I am continuing on the path of trying to find if my indies are at the root of the problem.

I know that there is no data flowing on the weekend, but I have had memory creep problems on weekends in the past. I loaded 10 instances of each of my indies on a chart, one by one, watching for odd behavior. I changed parameters around a lot and recalculated often and I could not find any issues on this experiment. Perhaps the latest version has resolved some of those issues. I am running 8.0.5.1 64-bit.

Maybe this week, I will try not using my clear routine and see if the memory issues have been resolved.

We should all keep piping in and see if we can help each other in any way. I know that SIM22 really helped me a lot, and Zondor has given me some info to digest.

Trade Well... and Good Luck!!!!
Bob

My comments are based mostly on things that I've seen in my own indicators. So for instance I had an issue where certain properties were public instead of private, and this was causing data to get serialized that shouldn't have been. Then that data was overwriting what was set up in my initialization, and caused all sorts of bizarre issues. You can imagine how if you save your workspace every day that this data could get reinitialized every time, and cause an issue later on down the line.

But there also seems to be some sort of edge case in indicators that use OnMarketData that I simply can't track down. It happened today in ZN's ETH with Rithmic as the datafeed, but of course I couldn't investigate because I was trading. Today it even messed up my Jigsaw DOM. Changing my chart to the RTH fixed the error.

Reply With Quote
  #69 (permalink)
 
Blash's Avatar
 Blash 
Chicago, IL
Legendary Market Chamois
 
Experience: None
Platform: NT8,NT7,TWS
Broker: InteractiveBrokers, S5T, IQFeed
Trading: The one I'm creating in the present....Index Futures mini/micro, ZF
Posts: 2,311 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,518

@NinjaTrader

I have noticed that if I set an Alert to Share a message to Twitter with Screenshot type: Tab, having a chart window with many tabs, moving to a different tab, leaving my office and an hour later the Alert is hit ....the chart pic is from the tab I was last viewing and not from the chart Tab containing the Alert.

This must be an error correct? The point is to have a chart picture from where the Alert was generated ...not some other chart.

Say I have a chart window with 5 Tabs and one Alert per chart..... I have to end on one Tab I can't be viewing all of them. So for each Alert the same chart pic would be sent?????

Thank you.

Ron

...My calamity is My providence, outwardly it is fire and vengeance, but inwardly it is light and mercy...
The steed of this Valley is pain; and if there be no pain this journey will never end.
Buy Low And Sell High (read left to right or right to left....lol)
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #70 (permalink)
 
Seahn's Avatar
 Seahn 
New York, New Jersey/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
Posts: 161 since Jan 2013
Thanks Given: 63
Thanks Received: 274



Blash View Post
@NinjaTrader

I have noticed that if I set an Alert to Share a message to Twitter with Screenshot type: Tab, having a chart window with many tabs, moving to a different tab, leaving my office and an hour later the Alert is hit ....the chart pic is from the tab I was last viewing and not from the chart Tab containing the Alert.

This must be an error correct? The point is to have a chart picture from where the Alert was generated ...not some other chart.

Say I have a chart window with 5 Tabs and one Alert per chart..... I have to end on one Tab I can't be viewing all of them. So for each Alert the same chart pic would be sent?????

Thank you.

Ron

I have seen these kind of things happen with some of my custom indicators. I think there is a major bug or architectural flaw in NT8 relating to tabs. In my case when using tabbed charts some members and methods become "shared" among the tabs rather that being specific to its own tab chart.

I have not looked into it further, my solution is to place each chart in its own window avoiding tabs altogether.

Started this thread Reply With Quote
Thanked by:




Last Updated on July 17, 2020


© 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