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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    53 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    34 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    100 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    180 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X