NexusFi: Find Your Edge


Home Menu

 





NT7 custom user code causing memory leak


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one syxforex with 19 posts (3 thanks)
    2. looks_two ThatManFromTexas with 7 posts (1 thanks)
    3. looks_3 Fat Tails with 7 posts (8 thanks)
    4. looks_4 eman with 6 posts (3 thanks)
      Best Posters
    1. looks_one bnichols with 1.5 thanks per post
    2. looks_two Fat Tails with 1.1 thanks per post
    3. looks_3 eman with 0.5 thanks per post
    4. looks_4 syxforex with 0.2 thanks per post
    1. trending_up 16,518 views
    2. thumb_up 19 thanks given
    3. group 8 followers
    1. forum 49 posts
    2. attach_file 1 attachments




 
Search this Thread

NT7 custom user code causing memory leak

  #1 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

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.

Visit my NexusFi Trade Journal 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
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

Definitely have a leak... anybody else?

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #3 (permalink)
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238



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.
Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

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


Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238


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.
Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

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.....

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,355

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)
 
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,102


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



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)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010


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,

Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on November 21, 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