Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

B17: Problem with swing indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    B17: Problem with swing indicator

    Hello,

    find attached a chart that contains the swing indicator (Strength = 5).
    The swing low of the bar 6/14 11:10 pm (marked with arrow) is $74,73.
    The plot is correct and the databox also shows 74,73.

    When I write a new indicator with only one line in it:
    Print( Time[0]+ "\t" + Swing(5).SwingHigh[0] + "\t" + Swing(5).SwingLow[0] );
    The result is incorrect, e.g.

    ...
    14.06.2010 19:50:00 75,74 75,4
    14.06.2010 20:00:00 75,74 75,4
    14.06.2010 20:10:00 75,74 75,4 <-- correct: 74,19
    14.06.2010 20:20:00 75,74 75,4
    14.06.2010 20:30:00 75,74 75,4
    14.06.2010 20:40:00 75,74 75,4
    14.06.2010 21:50:00 75,31 74,19
    14.06.2010 22:00:00 75,31 74,19
    14.06.2010 22:10:00 75,31 74,19
    14.06.2010 22:20:00 75,31 74,19
    14.06.2010 22:30:00 75,31 74,19
    14.06.2010 22:40:00 75,31 74,19
    14.06.2010 22:50:00 75,31 74,19
    14.06.2010 23:00:00 75,31 74,19
    14.06.2010 23:10:00 75,31 74,19 <-- correct: 74,73
    14.06.2010 23:15:00 75,31 74,19
    15.06.2010 00:10:00 75,31 74,19
    15.06.2010 00:20:00 75,31 74,19
    15.06.2010 00:30:00 75,31 74,19
    15.06.2010 00:40:00 75,31 74,73
    15.06.2010 00:50:00 75,31 74,73
    15.06.2010 01:00:00 75,31 74,73
    15.06.2010 01:10:00 75,31 74,73
    15.06.2010 01:20:00 75,31 74,73
    ...

    The offset is 5 (Strength-setting)

    This is reproducible.

    Steffen
    Attached Files

    #2
    Steffen, thanks for reporting in - the Swing indicator back adjusts and is just a tool for marking the Swing Highs and Lows - if you plot the values returned from the methods you can see at which point after the actual high / low point (strength) the value could be accessed as it has occured at that point then.
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X