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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tgn55, Today, 09:51 PM
    0 responses
    1 view
    0 likes
    Last Post tgn55
    by tgn55
     
    Started by cxxazssx, Today, 09:45 PM
    0 responses
    1 view
    0 likes
    Last Post cxxazssx  
    Started by southpacific001, 02-26-2021, 09:25 PM
    14 responses
    65 views
    0 likes
    Last Post REI140205  
    Started by punkiy2111, Today, 05:22 PM
    0 responses
    3 views
    0 likes
    Last Post punkiy2111  
    Started by secrettrader, Today, 03:36 PM
    0 responses
    8 views
    0 likes
    Last Post secrettrader  
    Working...
    X