NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-18-2008, 02:57 PM   #1
rjburek
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default How to Handle Overflow Errors?

I attempted to move the Rsquared/Hat indicator from eSignal usergroup files to NT. It runs most of the time but sometimes doesn't. I get random OverFlow errors in LOG file that sometimes mess up price bars or the indicator itself. I tried testing formula denominators for zero values but that didn't help Any suggestions on how to handle or trap these pesky overflow errors, or how to code the Rsquared/Hat Indicator?
rjburek is offline  
Reply With Quote
Old 11-18-2008, 03:08 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Overflow errors are usually division by zeroes. I suggest you use a try-catch block. http://www.ninjatrader-support2.com/...ead.php?t=9825
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Just to confirm, there's no way to handle tick updates during historical backtest? tradefaz General Programming 11 07-14-2009 07:12 AM
Overflow Error fy260498 Indicator Development 3 10-10-2008 07:20 AM
automated trading using NT and TradeStation, how to handle a rollover? Rocket130713 Automated Trading 7 05-25-2008 08:11 AM
Please check the 'Plot' method:Overflow error. ATI user Strategy Development 14 04-29-2008 06:56 AM
can NT handle advanced TS orders? DoveforUsAll Automated Trading 9 02-13-2006 01:23 PM


All times are GMT -6. The time now is 09:18 AM.