Heap corrupt in NT 7 - NinjaTrader | futures io social day trading
futures io futures trading


Heap corrupt in NT 7
Updated: Views / Replies:1,811 / 22
Created: by rleplae Attachments:3

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
 3  
 
Thread Tools Search this Thread
 

Heap corrupt in NT 7

  #11 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary


sam028 View Post
@rleplae, you should try to write you own ATI: a strategy listening to a socket port and executing the order with "normal" NinjaScript functions.
Not perfect on an intellectual point of view but not very difficult.

Hi @sam028
I have now a working setup, which is stable and working well.
It is a mix of using the ATI interface to do any order creation, update, cancel and a direct link to the ninjatrader DB using SQLCE that provides me now with all functions i need. If I now manually update the stop or target in chart trader, the trading robot 'sees' this and takes that into account.

Through ATI alone this was not possible.

Reply With Quote
The following 2 users say Thank You to rleplae for this post:
 
  #12 (permalink)
Trading Apprentice
Utrecht, Netherlands
 
Futures Experience: Intermediate
Platform: TOS, eSignal
Favorite Futures: Crude Futures
 
Posts: 20 since Jun 2016
Thanks: 1 given, 7 received

Nothing in the log or trace files? Just died?

I'd try removing indicators one by one. It's an extendable platform - not everyone that extends it knows what they are doing....

Reply With Quote
 
  #13 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary



UpsideDown View Post
Nothing in the log or trace files? Just died?

I'd try removing indicators one by one. It's an extendable platform - not everyone that extends it knows what they are doing....

No nothing in the log, only in the windows even viewer, it is really the ninjatrader process going 'KO'
I did run it without charts and just injecting orders, so i know it comes from the ATI interface
I have been able to do a few tricks, to reduce the frequency, but once in a while it still happens

I'm now trying to 'temporize' the interface by add some delays to be able to understand where it comes from.
of course this doesn't look like very nice

Likely i will write my own broker link, to avoid this crashing platform.
Ninjatrader is normally able to 'sync' with the executions you put on the broker.
curious if that will crash also if too busy

Reply With Quote
 
  #14 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary

I keep struggling with this issue.
Mostly in the night, around 04:00-05:00 my NinjaTrader will crash when an order is placed using ATI interface.

In the trace I can find the following :

2016-06-17 05:04:41:489 in OnUnhandledApplicationException
2016-06-17 05:04:41:508 *************** unhandled exception trapped ***************
2016-06-17 05:04:41:508 Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
2016-06-17 05:04:41:508 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Data.SqlServerCe.NativeMethods.CoTaskMemFree(IntPtr ptr)
at System.Data.SqlServerCe.Accessor.Dispose()
at System.Data.SqlServerCe.Accessor.Finalize()

Reply With Quote
 
  #15 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary

NT support recommends to restart at least once a day, if not issues can occur...

Curious if @sam028 is also restarting NT on his servers for customers ?
and if he can stop/start it automatically ?

Reply With Quote
 
  #16 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received


rleplae View Post
NT support recommends to restart at least once a day, if not issues can occur...

Curious if @sam028 is also restarting NT on his servers for customers ?
and if he can stop/start it automatically ?

We don't have a direct access to our clients servers: we can stop/start/reboot/reset them but we can't log on to read their files or start/stop any program.
From what I know some users are never stopping Ninja, some others restart it every week-end but just in case. From what I remember from the Battle of the bots I kept Ninja running for months, with a dozen of running strategies.

For your custom stuff do you open the Ninja DB in read-only, and don't update it at all?

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #17 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary


sam028 View Post
We don't have a direct access to our clients servers: we can stop/start/reboot/reset them but we can't log on to read their files or start/stop any program.
From what I know some users are never stopping Ninja, some others restart it every week-end but just in case. From what I remember from the Battle of the bots I kept Ninja running for months, with a dozen of running strategies.

For your custom stuff do you open the Ninja DB in read-only, and don't update it at all?

I de-actived the reading of the DB, so i'm sure it's not coming from there...

It is strange that NT support says that you should reboot at least once a day...

my custom stuff uses ATI, that is probably the main cause of the issue.
so my conclusion is somehow that NT is a bad platform for order routing, and execution
of orders that originate outside NT. It is nice for charting and some ATM programming.

Another option would be to use Interactive Brokers API and let the orders fall in NT in
reverse sense using the sync function.

Reply With Quote
 
  #18 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received


rleplae View Post
I de-actived the reading of the DB, so i'm sure it's not coming from there...

It is strange that NT support says that you should reboot at least once a day...

my custom stuff uses ATI, that is probably the main cause of the issue.
so my conclusion is somehow that NT is a bad platform for order routing, and execution
of orders that originate outside NT. It is nice for charting and some ATM programming.

Another option would be to use Interactive Brokers API and let the orders fall in NT in
reverse sense using the sync function.

I'll stick with my previous idea here.
IB API is not very complex but with a fake strategy sending orders initiated by something else all will be seen as native Ninja orders. Then you could do some funny things like let your external program initiate the trade and let Ninja manage the exits.
That would also be simpler than basically rewriting an IB connector.

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #19 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary


sam028 View Post
I'll stick with my previous idea here.
IB API is not very complex but with a fake strategy sending orders initiated by something else all will be seen as native Ninja orders. Then you could do some funny things like let your external program initiate the trade and let Ninja manage the exits.
That would also be simpler than basically rewriting an IB connector.

That fake strategy would have to do , order creation, cancel, update, status, etc.. very quicly this becomes also a piece of software and i would have to have it running on a chart for every instrument.

Reply With Quote
 
  #20 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,462 since Sep 2013
Thanks: 1,691 given, 3,655 received
Forum Reputation: Legendary


Completely restarted from scratch this morning.

No indicators, just ATI interface sending orders.
NT just crashed again...

The error looks very ugly in the trace file :

2016-06-17 16:12:35:764 (IQfeed) Cbi.OrderStatusEventArgs.Process: Order='9b5e6c47f963408e807f6b2c83d0ecaf/Sim101' Name='Target1' New state=Filled Instrument='6B 09-16' Action=Sell Limit price=1.4291 Stop price=0 Quantity=1 Type=Limit Filled=1 Fill price=1.4291 Error=NoError Native error=''
2016-06-17 16:12:35:802 *************** unhandled exception trapped ***************
2016-06-17 16:12:35:802 Object reference not set to an instance of an object.
2016-06-17 16:12:35:802 System.NullReferenceException: Object reference not set to an instance of an object.
at System.Data.SqlServerCe.Accessor.Dispose()
at System.Data.SqlServerCe.SqlCeCommand.CloseInternalCommand()
at System.Data.SqlServerCe.SqlCeCommand.set_Transaction(SqlCeTransaction value)
at System.Data.SqlServerCe.SqlCeConnection.ObjectLifeTimeTracker.Zombie(SqlCeTransaction tx)
at System.Data.SqlServerCe.SqlCeTransaction.Commit(CommitMode mode)
at Wilson.ORMapper.Transaction.Commit()
at NinjaTrader.Db.Globals.DBThreadProc()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

An exception that is not caught ?

Reply With Quote

Reply



futures io > > > > Heap corrupt in NT 7

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
NT : framework to access trades history in indicators, using NT database gomi The Elite Circle 51 September 18th, 2015 01:31 PM
Iceland Dismantles Corrupt Government Then Arrests All Bankers Victory Trader News and Current Events 5 June 22nd, 2012 05:46 PM
Guest Post: The Collapse Of Our Corrupt, Predatory, Pathological Financial System Is Quick Summary News and Current Events 0 November 5th, 2011 03:30 PM
Is this corrupt data or a horrible fill? grego Beginners and Introductions 8 October 20th, 2010 01:43 AM
NT 6.5 issue - image sometimes stays on screen after I close NT window Todd The Elite Circle 11 March 19th, 2010 10:14 AM


All times are GMT -4. The time now is 05:57 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-11 in 0.15 seconds with 20 queries on phoenix via your IP 54.82.79.109