NexusFi: Find Your Edge


Home Menu

 





Ninja Hanging Again!!!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one moneypenny with 4 posts (1 thanks)
    2. looks_two cory with 1 posts (3 thanks)
    3. looks_3 Zondor with 1 posts (2 thanks)
    4. looks_4 NinjaTrader with 1 posts (0 thanks)
      Best Posters
    1. looks_one cory with 3 thanks per post
    2. looks_two Zondor with 2 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 TheWizard with 1 thanks per post
    1. trending_up 4,293 views
    2. thumb_up 9 thanks given
    3. group 6 followers
    1. forum 10 posts
    2. attach_file 1 attachments




 
Search this Thread

Ninja Hanging Again!!!

  #1 (permalink)
 moneypenny 
Albuquerque
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation, Sierra Chart
Trading: Futures
Posts: 40 since Sep 2013
Thanks Given: 15
Thanks Received: 9

Ahhhhhhh

NT was hanging and freezing on my old computer - bought a Falcon beast of a trading computer with the latest i7 turbo boost to 4.0 gHz.
NT still hanging!!!!!!!!!!!! I know NT is single-threaded but if this is happening on a 4.0 gHz how can so many people be using it with no problems?
Anyone else experience this?
moneypenny

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #2 (permalink)
 supermht 
Naperville IL
 
Experience: Intermediate
Platform: ninjatrader
Broker: NT broker
Trading: NQ ES 6E GC CL
Posts: 962 since Feb 2010
Thanks Given: 1,189
Thanks Received: 661


moneypenny View Post
Ahhhhhhh

NT was hanging and freezing on my old computer - bought a Falcon beast of a trading computer with the latest i7 turbo boost to 4.0 gHz.
NT still hanging!!!!!!!!!!!! I know NT is single-threaded but if this is happening on a 4.0 gHz how can so many people be using it with no problems?
Anyone else experience this?
moneypenny

Call NT customer service, or post on their forum, they have quick response.

Reply With Quote
  #3 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686



moneypenny View Post
Ahhhhhhh

NT was hanging and freezing on my old computer - bought a Falcon beast of a trading computer with the latest i7 turbo boost to 4.0 gHz.
NT still hanging!!!!!!!!!!!! I know NT is single-threaded but if this is happening on a 4.0 gHz how can so many people be using it with no problems?
Anyone else experience this?
moneypenny

Computer horsepower will make no difference if you have a badly coded script running. 99% of the time NinjaTrader freezes is due to bad code. Please follow up with our support team as they can help narrow down and isolate the issue.

Follow me on Twitter Reply With Quote
  #4 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


NinjaTrader View Post
Computer horsepower will make no difference if you have a badly coded script running. 99% of the time NinjaTrader freezes is due to bad code. Please follow up with our support team as they can help narrow down and isolate the issue.

I agree with Ray, I have two different environments. One where I use fully debugged and stable Ninjascript (very little outside code) and one which I play with different code. As you can guess, the 2nd computer freezes frequently. This is one of the biggest strengths of NT, but be careful of who's code you load on your machine as it may have problems.

I am not sure how easy it would be for NT to keep exposing the level of NinjaScript to the community but yet prevent programming errors by people customizing the code. You could see maybe adding a Watch Dog timer, but I would want to be able to disable that feature as I have some scripts that will look like they hang for hours as they are doing Machine Learning cycles millions of times. I would not want NT to dump this thread!

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 moneypenny 
Albuquerque
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation, Sierra Chart
Trading: Futures
Posts: 40 since Sep 2013
Thanks Given: 15
Thanks Received: 9

Oh how I love Big Mike and his forum!! This has been a huge problem for years!!
I removed a new 3rd party indicator and the problem was solved.
Thank you, thank you, thank you!!
moneypenny

Started this thread Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


moneypenny View Post
Oh how I love Big Mike and his forum!! This has been a huge problem for years!!
I removed a new 3rd party indicator and the problem was solved.
Thank you, thank you, thank you!!
moneypenny

Please name the indicator, so others can check their configs for the same.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 moneypenny 
Albuquerque
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation, Sierra Chart
Trading: Futures
Posts: 40 since Sep 2013
Thanks Given: 15
Thanks Received: 9

Hi all,
The indicator that was causing the freezing/hanging with Ninja Trader is attached below.
moneypenny

Attached Files
Elite Membership required to download: ZigZagUTC.cs
Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

Classic example of clueless, sloppy programming, with inline function calls of the MIN and MAX indicators on every tick. Predefined reusable instances should be used and code rewritten so that they only need to be called on FirstTickOfBar.

However another, even worse problem is extensive use of Draw methods, (DrawText, DrawLine etc) which is much more resource intensive than using the Plot method to put things on the screen. The Draw methods are a huge resource hog.

In case you were wondering, I have no intention of fixing it unless somebody gives me a real good reason to do so.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #9 (permalink)
 moneypenny 
Albuquerque
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation, Sierra Chart
Trading: Futures
Posts: 40 since Sep 2013
Thanks Given: 15
Thanks Received: 9

Hi all,
Zondor thank you for pointing out the coding mistakes made on the above indicator.
I have a suggestion - if it doesn't exist already, why don't we make forum on futures.io (formerly BMT) that listed the basic coding do's and don'ts for each platform - a kind of checklist for each platform?

Just an idea,
moneypenny

Started this thread Reply With Quote
  #10 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224



moneypenny View Post
Hi all,
The indicator that was causing the freezing/hanging with Ninja Trader is attached below.
moneypenny

You might try @Fat Tails anaZigZag. I'm sure it's written better than the ZigZagUTC.

I found a link to it, here:


After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
Thanked by:




Last Updated on August 1, 2014


© 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