I'm trying to figure out what I'm doing wrong on a small sample Multi TF strategy. When I load up the Swing Indicator on the higher TF and print out the Swing Lows/Highs, I see different values than what I see on my chart set to the same timeframe. Can you tell me why this is occurring? I've attached my sample script and ran it on NQ 03-19 on 2/25/2019. If you load the Swing indicator on your chart and compare it to the printed values, they are different.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Different values for Swing indicator on Chart vs Multi TF strategy
Collapse
X
-
Different values for Swing indicator on Chart vs Multi TF strategy
Hey guys,
I'm trying to figure out what I'm doing wrong on a small sample Multi TF strategy. When I load up the Swing Indicator on the higher TF and print out the Swing Lows/Highs, I see different values than what I see on my chart set to the same timeframe. Can you tell me why this is occurring? I've attached my sample script and ran it on NQ 03-19 on 2/25/2019. If you load the Swing indicator on your chart and compare it to the printed values, they are different.
Tags: None
-
Hello PN720,
Just to update you.
The issue you reported was determined as a bug and has been fixed for the next release of NinjaTrader8. You should be able to use BarsArray[1] as the input (although closes works as well).
The bug was identified as NTEIGHT-13612, "Swing Input should not be used when BarsArray passed as Input".
Thanks for reporting your observation.
Comment
-
Hello PN720,
Thanks for your reply.
The specific issue is that the Swing indicator uses the High and Low data series of the bar when connected to price data series and uses the (single) input value when connected to an indicator. In this case, the swing indicator was misreading the BarsArray as an indicator type input and using the single value inputs so internally its high and low were being set the same as the close. We have corrected that behavior and the fix will be available in the next release of NinjaTrader8.
There are no other indicators that have the same input type coding as Swing that are included with the platform. In the case of the EMA, it is written to accept any input so it would not have the same issue.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment