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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    581 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    338 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X