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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment