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,276 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?

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

I have heard that the programmers at Rancho are very good. Reach out to them with your problem and let them dig into it. Clearing the cache and the data as mentioned above will also help a lot. They probably will need your log and trace file from when the issue happened.

Bob


xiaosi View Post
I never had such a problem.....until last night. Even with nothing open in a workspace it's using 2100 mb of ram FFS! This must be the data caches. I didn't have an issue until I started using the new version of rancho....


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
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
 
  #262 (permalink)
 
xiaosi's Avatar
 xiaosi 
Brisbane, Queensland, Australia
Market Wizard
 
Experience: Advanced
Platform: JIGSAW/SIERRA CHART
Broker: MacQuarie Futures/AMP Clearing/CQG
Trading: HHI, HSI, FDAX
Posts: 502 since Feb 2012
Thanks Given: 448
Thanks Received: 535


bobc635 View Post
I have heard that the programmers at Rancho are very good. Reach out to them with your problem and let them dig into it. Clearing the cache and the data as mentioned above will also help a lot. They probably will need your log and trace file from when the issue happened.

Bob

I rebuilt my workspaces, this time much more simple with only session profiles. I’ve subscribed to TradingView for longer term composite profiles, which I had to for hkex and Osaka stuff anyway as ninja doesn’t carry the historical data anymore. Eventually when I have time for the learning curve I’ll make the permanent switch to CQG and kiss ninjas sorry a$$ goodbye once and for all.

Thanks though, Troy from Rancho did offer to have a look, but with the time difference I just decided to rebuild again from scratch.

Follow me on Twitter Reply With Quote
  #263 (permalink)
pstrusi
Lalin Pontevedra Spain
 
Posts: 20 since Sep 2013
Thanks Given: 10
Thanks Received: 9



isomorph View Post
I'd recommend AlgoTrader (it uses tradingview for charts, plus all the pro goodies for algo development), Jigsaw daytradr, AlgoTerminal (formerly IQBroker), AgenaTrader, Bookmap (which is similar to Jigsaw Auction Vista, just mentioning it to give more choice) in that order.

AgenaTrader and AlgoTerminal also let you write scripts in C#.

AlgoTerminal is 'endorsed' by Collective2 (https://trade.collective2.com/). Well, perhaps 'endorsed' is not the right word, but C2 recommends it to their clients.

Then there always is the Javascript webapp UI from Tradovate. Not bad for beginners, but.... At least, it doesn't have the issues NT has. And wherever there's a browser, you can trade without having to install anything or paying close to $1,000 per install just for a lifetime NT license.

I was tempted once to buy Algotrader platform to develop my scripts I think it has several flaws too, according to several users experience in other forums. In your experience: Would you really trust Algotrader for serious "live" trading with your own ATS scripts ?

Thanks in advance

Reply With Quote
  #264 (permalink)
 isomorph 
Dubain, UAE
 
Experience: Intermediate
Platform: tradingview, AlgoTrader,
Broker: Stage 5, DTN IQFeed
Trading: ZB, CL, J6
Posts: 7 since Feb 2013
Thanks Given: 1
Thanks Received: 7


pstrusi View Post
I was tempted once to buy Algotrader platform to develop my scripts I think it has several flaws too, according to several users experience in other forums. In your experience: Would you really trust Algotrader for serious "live" trading with your own ATS scripts ?

Thanks in advance

You're right. Trust is a huge issue with AlgoTrader, AlgoTerminal, or any algo dev platform as long as they don't offer an encrypted sandbox preventing them from stealing your code.

Reply With Quote
Thanked by:
  #265 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,501
Thanks Received: 26,292

NT 8.0.14.1 issues.

I'm putting this post here because I think a number of NT 8 users will see it.

A post by @Silvester17 today ( ), directs us to a post by Harry ( @Fat Tails ) on the NT Support Forum regarding issues in NT 8.0.14.1, the newest release, that cause problems with his "ama" NT8 indicators, and, of course, potentially many more.

See link to the NinjaTrader site here: https://forum.ninjatrader.com/showthread.php?p=543768


Quoting 
We need to inform all our customers NOT to install NT 8.0.14.1, as it breaks the code that we have produced for NinjaTrader 8.

Worst release ever since NT 8 BETA.

Probably most users should wait to download the current version until the issues are addressed, as of course they will be. You can also always to back to NT 8.0.13.1 if you already have installed 14.1, and you probably should if you have any issues.

Thanks to @Fat Tails and @Silvester17 for the heads up.

Bob.

Reply With Quote
  #266 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


bobwest View Post
NT 8.0.14.1 issues.

I'm putting this post here because I think a number of NT 8 users will see it.

A post by @Silvester17 today ( ), directs us to a post by Harry ( @Fat Tails ) on the NT Support Forum regarding issues in NT 8.0.14.1, the newest release, that cause problems with his "ama" NT8 indicators, and, of course, potentially many more.

See link to the NinjaTrader site here: https://forum.ninjatrader.com/showthread.php?p=543768



Probably most users should wait to download the current version until the issues are addressed, as of course they will be. You can also always to back to NT 8.0.13.1 if you already have installed 14.1, and you probably should if you have any issues.

Thanks to @Fat Tails and @Silvester17 for the heads up.

Bob.

if you decide to go back to version 8.0.13.1:

- the download link for version 8.0.13.1 is still available on the nt download site
- you need to uninstall version 8.0.14.1 first
- your settings (indicators, templates, workspaces etc) will still be there

good luck

Reply With Quote
  #267 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103

NinjaTrader 8.0.14.1 does have a problem. Depending on conditions, it may call OnRenderTargetChanged() prior to State.Configure().

The proper order of calling the different methods - as implemented with all releases until including NT 8.0.13.1 is

1. State.Configure()
2. OnRenderTargetChanged()
3. OnRender()

What NinjaTrader 8.014.1 also does is

1. OnRenderTargetChanged()
2. State.Configure()
3. OnRender()

Now when you code a custom plot in an efficient way, you would not want to set and dispose of DX brushes with every single refresh of the plot. It is best practice to

- declare the DX brushes in the variables section of the indicator
- then set and dispose of value in OnRenderTargetChanged()

which makes it unnecessary to set and dispose of the brushes with every single refresh of the plot.


Opaque brushes:
Let us assume that your indicator shall display a shaded area and that you wish to use an opaque brush. In this case you would

(1) set a Windows Media Brush and a value for the opacity in the variables section
 
Code
private System.Windows.Media.Brush rangeBrush = Brushes.Blue;
private System.Windows.Media.Brush opaqueBrush = null;
private SharpDX.Direct2D1.Brush opaqueBrushDX = null;
private int opacity = 50;

(2) then set and freeze the opaque brush in State.Configure()
 
Code
opaqueBrush = rangeBrush.Clone();
opaqueBrush.Opacity = (float) opacity/100.0;
opaqueBrush.Freeze();

(3) The opaque brush is now frozen and ready for use in OnRenderTargetChanged()
 
Code
public override void OnRenderTargetChanged()
{
    if opaqueBrushDX != null)
	opaqueBrushDX.Dispose();

    if (RenderTarget != null)
	{
		try
		{
		     opaqueBrushDX = opaqueBrush.ToDxBrush(RenderTarget);
		}
                catch (Exception e) { }
	}	
  }

In case that OnRenderTargetChanged() is called prior to State.Configure, "opaqueBrush" has not yet been set, and the attempt to set a non existing value to "opaqueBrushDX" in OnRenderTargetChanged() will throw an exception. In a second step when OnRender() tries to call "opaqueBrushDX", NinjaTrader will freeze and halt.

The joke is that all (inefficient) indicators that do not make use of OnRenderTargetChanged() are not affected by the new bug in NT 8.0.14.1. For example, if you look at the inbuilt NinjaTrader indicator "VolumeZones", you will notice that it creates and disposes of all DX brushes with every single refresh of the plot(see lines 82-84 and lines 169-171).

Summary:

NT 8.0.14.1 does not properly synchronize calling State.Configure() and OnRenderTargetChanged(). This may result in NinjaTrader freezing and crashing. Affected are indicators that use public override void OnRenderTargetChanged() to reduce CPU load resulting from creating and disposing of DX brushes.

My recommendation is to stay with NinjaTrader 8.0.13.1 until the issue has been fixed.

Reply With Quote
  #268 (permalink)
imshinji
North Africa
 
Posts: 2 since Jun 2018
Thanks Given: 0
Thanks Received: 0

i stopped using NT8, i'm back to NT7. because of script are incompatible.

Reply With Quote
  #269 (permalink)
 
mmaker's Avatar
 mmaker 
Toronto Canada
 
Experience: Intermediate
Platform: ninjatrader
Trading: es
Frequency: Several times daily
Duration: Minutes
Posts: 400 since Feb 2011
Thanks Given: 1,178
Thanks Received: 508

how do you uninstall 14.1 gracefully without losing all your custom coded indicators, workspaces etc?

Visit my NexusFi Trade Journal Reply With Quote
  #270 (permalink)
 
Kaimu's Avatar
 Kaimu 
Madrid - Spain
 
Experience: Advanced
Platform: Ninja
Trading: ES,NQ
Posts: 315 since Mar 2012
Thanks Given: 883
Thanks Received: 346



mmaker View Post
how do you uninstall 14.1 gracefully without losing all your custom-coded indicators, workspaces etc?

Rename your NinjaTrader 8 folder (NinjaTrader Old). Remove your version of NinjaTrader and install the 13.1 version. You will not lose any of your indicators or workspaces and only you will need to copy them to the new folder created for NinjaTrader.

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