NinjaTrader Support Forum  

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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 12-27-2007, 09:44 AM   #1
Burga1
Senior Member
 
Join Date: Nov 2007
Posts: 388
Thanks: 0
Thanked 0 times in 0 posts
Default Why does this happen?

Hi,

I have a strategy that begins by retrieving the last high/low "swing" bars. I'm seeing an odd behaviour that seems to happen if one of those values returns to "-1"...the entire strategy shuts down and does not calculate on later bars.

I've setup a screenshot showing this, you can see in the Output Window that no other output is there for the later bars on the chart. This happens with different instruments as well. It seems the strategy runs correctly if the first bars do not return "-1"...any ideas?
Attached Images
File Type: jpg screen1.JPG (49.2 KB, 15 views)
Burga1 is offline  
Reply With Quote
Old 12-27-2007, 09:50 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Did you proceed as per my last contribution on an issue you experienced?
- please check the logs
- please debug your strategy
NinjaTrader_Dierk 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


All times are GMT -6. The time now is 08:00 AM.