![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Nov 2007
Posts: 388
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Did you proceed as per my last contribution on an issue you experienced?
- please check the logs - please debug your strategy
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|