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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    160 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    307 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    348 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    178 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X