![]() |
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 21 times in 12 posts
|
Hello,
currently I have a strange behaviour in the ZigZag indicator inside a strategy and I think it would be wise to enlight the Maximum Bars Lookback parameter further. What does it mean for my strategies: Let's say I have strategy on ES 12-09 1 Minute bars running. and MaximumBarsLookBack is set to 256. Inside OnBarUpdate() 1. Will input[257] give the correct value allthough it is outside the lookback parameter? 2. You state the 256 bars limit is applied to IDataSeries Objects excluding DataSeries objects. Does this mean DataSeries objects do NOT have the 256 bars lookback limitation? I don't understand? Are Objects based on the IDataSeries interface not DataSeries? 3. Will int i= ZigZag(DeviationType.Percent,zzPercent,usehighlow) .HighBar(0,1,257); double zig= ZigZag(DeviationType.Percent, zzPercent, usehighlow)[i] give the correct value? Thank you Andreas |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Please try again with Beta 3 which I anticpate releasing later today. We resolved some issues with ZigZag indicator.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 21 times in 12 posts
|
Excellent,
today I expected signals from ZigZag, but my strategies never triggered so I was -unexpectedly flat - all day. Another question: Parameter MinBarsRequired ad MaxBarsLookBack, what if MinBarsRequired is 750 and MaxBarsLookBack is 256? Does this make sense? regards Andreas |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
The two do not conflict. This just means wait until I have 750 bars before calling OnBarUpdate() and and internal DataSeries type objects should only maintain the last 256 values.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 21 times in 12 posts
|
1. MinBarsRequired. You are right.
2. ZigZag: Are you sure to have resolved the issues? Currently I have exactly the same code in an indicator and there ZigZag High and Low Vertices are shown. The very same code inide a strategy will not trigger the Highs vertices. Currently I have the situation that inside a strategy only the ZigZag Low vetices are detected , but the ZigZag Highs not. Identical code (...ok, a lot of wrappers in a bigger piece of code in the strategy...) for the ZigZag calls in both indicator and strategy, but only the indicator will work properly! Any ideas? I will try to strip down the code to show better tomorrow, can I send you a private message for this? regards Andreas |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
No I am not sure. If you have tried on Beta 3, then go ahead and provide us a sample script.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 21 times in 12 posts
|
OK, so I found out the following, for indicators and strategies:
In OnBarUpdate() //double dummy=ZigZag(DeviationType.Percent,zzPercent,false)[0]; int FirstHigh=ZigZag(DeviationType.Percent,zzPercent,f alse).HighBar(0,1,20); The above code will not give correct results forFirstHigh in such that -1 is returned all the time. Uncomment the lines above and FirstHigh will be correct. It seems that dummy=ZigZag(...) causes the ZigZag indicator to calculate some internal values which are needed for .HighBar and .LowBar. If I remember well this internal calculation was done in 6.5 (not 100% sure) , but in NT7 you need to uncomment the lines above. @Ray, will you change or are you happy as it is? regards Andreas |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
This is a bug which will be fixed with next update. Thanks for reporting.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 371
Thanks: 1
Thanked 3 times in 3 posts
|
Dierk
The trick with attaching private zigzag indicator to multiple time frames seems does not work on 7.0. i've tried different combinations but only crashed NT. this beta version is unstable - 7.0.5. Is there to be an updated zigzag indicator or should I make my own? Cheers Cliff |
|
|
|
|
|
#10 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
To clarify: are you saying the NT standard ZigZap indicator would not work with NT7B5? If so, what in particular do you experience? Thanks
Dierk
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Maximum Bars Lookback | rt-trader | Version 7 Beta General Questions & Bug Reports | 19 | 04-06-2010 02:54 AM |
| Maximum bar size for minute bars. | NickA | Charting | 4 | 08-07-2009 12:15 AM |
| NT not saving the lookback period on my charts properly? | JS999 | Charting | 3 | 04-27-2009 04:47 AM |
| Lookback period? | FireFly | Charting | 2 | 10-14-2008 02:22 PM |
| Highest High in a LookBack Period | daven | Indicator Development | 2 | 09-28-2007 12:39 PM |