Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Swing().SwingHighBar

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

    Swing().SwingHighBar

    Hello,
    Can anyone please confirm that if a swing high 18 bars ago was penetrated upwards but a new swing high was not established yet (i.e. no lower highs following a highest high) than the Swing(5).SwingHighBar(0, 1, 50) still refers to the last swing bar 18 bars ago?
    Would this mean that the Swing(5).SwingHighBar(0, 1, 50) has a minimum value of 5 because 4 consecutive lower highs required to qualify for a swing high? (not to forget of course -1 value if a swing point is not found within the look back period)

    Thanks
    LazKz

    #2
    LazKz,

    It would likely refer to the most recent swing. The minimum value of the swing high bar is just whenever the swing is detected. Please be aware that the swing indicator is extremely difficult to program against because the indicator repaints itself in the future. It will see new conditions and go back and change the plot which makes it extremely difficult to know what the conditions were like when they were evaluated in prior points in time.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by f.saeidi, Today, 11:02 AM
    1 response
    1 view
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by geotrades1, Today, 10:02 AM
    4 responses
    11 views
    0 likes
    Last Post geotrades1  
    Started by rajendrasubedi2023, Today, 09:50 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by lorem, Today, 09:18 AM
    2 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by geddyisodin, Today, 05:20 AM
    4 responses
    30 views
    0 likes
    Last Post geddyisodin  
    Working...
    X