NT7 custom user code causing memory leak - NinjaTrader | futures io social day trading
futures io futures trading


NT7 custom user code causing memory leak
Updated: Views / Replies:6,528 / 49
Created: by syxforex Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

NT7 custom user code causing memory leak

  #1 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received

NT7 custom user code causing memory leak

Hi,

Wondering if anybody knows exactly how to check NT7 for memory leaks. I am running a chart with two free futures.io (formerly BMT) indicators. One of them, when applied, seems to instigate a run on memory usage. From task manager the memory usage is continually running higher. This afternoon I removed the indicators, restarted, and found that the memory seemed like it was idling at a fairly constant level.

I then tried to remove the indicator from NT7 to update reinstall it but I was not able to remove it, due to a message that said it was required by another indicator, an indicator that I do not have installed. I could not find the .cs file that it said was causing the problem so I opted to uninstall/reinstall NT7.

I am back up and running now, and since putting up the workspace with updated versions of the two indicators the memory usage has doubled from 200k to 420k, and counting. It's not ticking up that fast, but it's definitely ticking higher. This afternoon it had reached 9 gigs and was spinning like the US debt clock.

Is it normal for the memory usage to slowly increase over time like it is doing now or is one of the indicators leaking memory. The indicator that I suspect might be causing the leak is the Universal Keltner Channel. But I'm not sure. Can anybody comment on how to diagnose NT7/indicators for memory leaks?

Thanks for your feedback.

Reply With Quote
 
  #2 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received

Definitely have a leak... anybody else?

Reply With Quote
 
  #3 (permalink)
Elite Member
Cincinnati Ohio
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Futures Broker
Favorite Futures: AUD
 
Silver Dragon's Avatar
 
Posts: 1,597 since Feb 2011
Thanks: 3,860 given, 3,318 received



syxforex View Post
Definitely have a leak... anybody else?

If there is a memory leak with the indicators in then there is bad code in the indicator. Which ones are you using?

Robert

nosce te ipsum

You make your own opportunities in life.
Reply With Quote
 
  #4 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received

I am using two... right now i'm using the vwap indicator, it is quite stable, not leaking. When I put on the Universal Keltner Channel with adxvma setting, the leak begins... I have updated to the latest version so must be something in the latest update.....



Silver Dragon View Post
If there is a memory leak with the indicators in then there is bad code in the indicator. Which ones are you using?

Robert


Reply With Quote
 
  #5 (permalink)
Elite Member
Cincinnati Ohio
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Futures Broker
Favorite Futures: AUD
 
Silver Dragon's Avatar
 
Posts: 1,597 since Feb 2011
Thanks: 3,860 given, 3,318 received


syxforex View Post
I am using two... right now i'm using the vwap indicator, it is quite stable, not leaking. When I put on the Universal Keltner Channel with adxvma setting, the leak begins... I have updated to the latest version so must be something in the latest update.....

I believe the adxvma is an indicator as well. Try changing it to something else to be sure the adxvma is not causing the problem. If you get the same results then it is definitively the Keltner indi.

Robert

nosce te ipsum

You make your own opportunities in life.
Reply With Quote
 
  #6 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received

Thanks Silver Dragon,

I tested out the Universal Keltner with the SMA setting. There was no leak. Switched back to adx, and we are leaking again. I also applied the adxvma on its own, not from within the Keltner, and didn't really notice a leak. With the adxvma setting inside the Keltner however, we are leaking. I made a note on the indicator on the downloads section so hopefully the contributor will see it and be so kind as to check it out... I dare not approach him directly for fear of death.....

Reply With Quote
The following 2 users say Thank You to syxforex for this post:
 
  #7 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received

The leak is coming from the anaADXVMA, not the Keltner Channel with the adxvma. I am running the channels now and there is no leak. If I add anaADXVMA, the centre line, the leak begins, only when applied to eman's momentum bars, it does not leak when applied to native ninja bar types.

thanks to those who can figure this out

Reply With Quote
 
  #8 (permalink)
Elite Member
Houston,Tx
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,208 given, 4,293 received

As per @Big Mike suggestion ... moving memory leak discussions here ....


ThatManFromTexas View Post
@syxforex

I just tried it with 2 charts and did not notice any effect on memory.


syxforex View Post
Try opening four, the effect become much stronger with four or five charts open. Also, it takes time, the leak is slow at first. It creeps up over time, after about an hour I get to about a gig as seen from windows task manager processes tab...


ThatManFromTexas View Post
@syxforex

Ok ... I have had 4 charts running for an hour.... no effect


syxforex View Post
OK, TMT, sorry to waste your time. I didn't give you the complete setup. In addition to the keltner channel I was using the adxvma separately as the centre line. I thought it was one in the same indicator. It appears there is no memory leak with the adxvma keltners, but the leak may be associate with the adxvma itself, when applied indepently and seaparetly. I am watching now, does not appear to be leaking but will let you update when I know for sure.... thanks again


I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
 
  #9 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


syxforex View Post
Thanks Silver Dragon,

I tested out the Universal Keltner with the SMA setting. There was no leak. Switched back to adx, and we are leaking again. I also applied the adxvma on its own, not from within the Keltner, and didn't really notice a leak. With the adxvma setting inside the Keltner however, we are leaking. I made a note on the indicator on the downloads section so hopefully the contributor will see it and be so kind as to check it out... I dare not approach him directly for fear of death.....

@syxforex: I think that we can exclude a leak of the Universal Keltner and the anaADXVMA. Both @ThatManFromTexas and myself have done extensive tests and did not find any leak. For more information see link below

https://futures.io/ninjatrader-programming/40-adxvma-questions-4.html#post260817

Also the code of the anaADXVMA is pretty simple, too simple for a possible leak.

The leak must be somewhere else.

Reply With Quote
 
  #10 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received


Thanks for taking a look.

I am at a loss then. I now have my the charts up and running the adxvma keltner channels, channels only, no centre line, no adxvma on in addition to the UKC. There is no memory leak. If I add the anaadxvma with bar paint and plot the memory begins to leak. What else could I look at in my system? I did a fresh install yesterday, only three indicators installed, anavwap, anaadx, and anakeltner Univeral.


thanks again,

Reply With Quote

Reply



futures io > > > > NT7 custom user code causing memory leak

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Custom Indicator Causing Error Problems shmcclun NinjaTrader 17 May 23rd, 2016 11:29 AM
Custom Toolbar Button for NT7 protrader007 The Elite Circle 38 February 24th, 2013 09:38 AM
NT7 memory use & 32- / 64-bit SARdynamite NinjaTrader Programming 22 May 7th, 2012 09:19 AM
Wicked Renko custom bar type for NT7 aslan NinjaTrader Programming 25 March 10th, 2012 11:13 AM
Market Wizard's: Create your custom user title Big Mike Beginners and Introductions 0 December 12th, 2009 07:31 AM


All times are GMT -4. The time now is 08:23 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.13 seconds with 20 queries on phoenix via your IP 54.234.247.118