Script attached.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
ZigZag barsAgo
Collapse
X
-
Hi Chelsea,
Thanks for sharing the script, I modified it by adding "+CurrentBar" into the draw.dot objects so that we can see the printed dots historically, otherwise dots are moving. Here below is the modification; I'm also attaching the script in case you want to run it in your NT.
Draw.Dot(this, "high1"+CurrentBar, true, highBarsAgo1, High[highBarsAgo1] + 3 * TickSize, Brushes.Green);
Draw.Dot(this, "high2"+CurrentBar, true, highBarsAgo2, High[highBarsAgo2] + 7 * TickSize, Brushes.Blue);
I'm also attaching a screenshot, you'll see how blue and green dots are stored as Highs which were never confirmed in the end. I understand the green dot which is HighBarsAgo1, it might move but even 2 High bars ago are being confirmed as the highs (blue dot) which were actually not Highs. I'm getting false Highs even for 2 high bars ago. If you add this attached strategy on a 10 second NQ chart with 0.05 ZigZag, let it run for 5 mins and you'll see the issue very clearly.
I feel like I'm repeating myself here I used to use this BarsAgo function up until your v17 release without any issues, I saw the release notes and ZigZag was modified during that update and since then it's not behaving the way it's supposed to be. I would really appreciate if the developer who modified it can also look into this?
Thanks
M
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, 03-12-2024, 06:12 AM
|
4 responses
32 views
0 likes
|
Last Post
by bmartz
Today, 08:02 AM
|
||
Started by Aviram Y, Today, 05:29 AM
|
4 responses
12 views
0 likes
|
Last Post
by Aviram Y
Today, 07:57 AM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
3 responses
28 views
0 likes
|
Last Post Today, 07:41 AM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Comment