NexusFi: Find Your Edge


Home Menu

 





why do I get this from time to time when replay testing . . .


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 2 posts (2 thanks)
    2. looks_two jmejedi with 2 posts (0 thanks)
    3. looks_3 bukkan with 1 posts (1 thanks)
    4. looks_4 NinjaTrader with 1 posts (0 thanks)
    1. trending_up 2,481 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

why do I get this from time to time when replay testing . . .

  #1 (permalink)
 
jmejedi's Avatar
 jmejedi 
Lilburn, GA
 
Experience: Beginner
Platform: NinjaTrader
Broker: VelocityFutures/TT
Trading: ES
Posts: 62 since Jan 2011
Thanks Given: 13
Thanks Received: 4

alright, I'm replay testing my strategy, and from time to time, I get this:

{ please see attachment }


........................................................... why do i get this ?



[ this seems to happen even to very simple strategies that really should never throw any errors b/c they are too simple in nature ]

Attached Thumbnails
Click image for larger version

Name:	whyWhy.jpg
Views:	178
Size:	27.4 KB
ID:	30733  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
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
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #3 (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


It's a common problem with NinjaTrader in a fast moving market, NT throws this error instead of gracefully handling it. You can disable the handling of orders with NT and do it all yourself, if you are an extremely advanced programmer.

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:
  #4 (permalink)
 
jmejedi's Avatar
 jmejedi 
Lilburn, GA
 
Experience: Beginner
Platform: NinjaTrader
Broker: VelocityFutures/TT
Trading: ES
Posts: 62 since Jan 2011
Thanks Given: 13
Thanks Received: 4


Big Mike View Post
It's a common problem with NinjaTrader in a fast moving market, NT throws this error instead of gracefully handling it. You can disable the handling of orders with NT and do it all yourself, if you are an extremely advanced programmer.

Mike



Mike, excuse my ignorance, but, when this happens, does NT go ahead & exists all my positions (if any) AND goes ahead and stops executing the strategy ?


thanks in advance,

JME

Started this thread Reply With Quote
  #5 (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


jmejedi View Post
Mike, excuse my ignorance, but, when this happens, does NT go ahead & exists all my positions (if any) AND goes ahead and stops executing the strategy ?


thanks in advance,

JME

It's been a long time but if memory serves, it just halts the strategy. I can't remember if it closes open positions or not, but I am thinking not. You would be better served asking NT support or doing your own homework to be 100% sure on that one.

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:
  #6 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

 
Code
RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;
add the above line of code in Initialize. but do remember the gray areas while doing this, and as Mike said, you should be knowing what you are doing.

Reply With Quote
Thanked by:
  #7 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


bukkan View Post
 
Code
RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;
add the above line of code in Initialize. but do remember the gray areas while doing this, and as Mike said, you should be knowing what you are doing.

I also agree, and have to write this in bold, you really have to know what your doing in not trapping these errors.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #8 (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

In any market, fast or not, NinjaTrader does not control when this error occurs. This error is an invalid order price and is triggered by the exchange. Our simulator replicates where possible general exchange order handkling rules which is why this invalid price error is triggered in the market replay engine.

When an order is rejected in a strategy, NinjaTrader gracefully handles this with default action of halting the strategy and putting it into a state so that the strategy can't do any damage and provides notification to the developer via email as an option. We also provide the ability to override this default behaviour so that the system developer can account for exceptions and determine how best to deal with it.

Follow me on Twitter Reply With Quote




Last Updated on February 12, 2011


© 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