Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

equivalent function for "swinghighbar"

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

    equivalent function for "swinghighbar"

    hello, I'm trying to translate from Easy Language to Ninja Script, in EL the function “swinghighbar” return the number of bars ago a swing high occurred.

    what is an equivalent function in NT8?

    thanks

    #2
    Hello futuros,

    Thanks for your post.

    You would need to use the Swing indicator and use the following methods syntax from the help guide:

    Syntax - Bars Ago
    High Bar
    Swing(int strength).SwingHighBar(int barsAgo, int instance, int lookBackPeriod)
    Swing(ISeries<double> input, int strength).SwingHighBar(int barsAgo, int instance, int lookBackPeriod)

    Low Bar
    Swing(int strength).SwingLowBar(int barsAgo, int instance, int lookBackPeriod)
    Swing(ISeries<double> input, int strength).SwingLowBar(int barsAgo, int instance, int lookBackPeriod)

    Return Value
    An int value representing the number of bars ago. Returns a value of -1 if a swing point is not found within the look back period.


    Please be sure to review the complete swing help guide here: https://ninjatrader.com/support/help...nt8/?swing.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X