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

How can I get 5% Zigzag

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

    How can I get 5% Zigzag

    Hi,

    I have a series bar, 1,2,3 bars

    How can I get close price 5% zigzag current bar(3), previous bar and first bar's zigzag?

    Thanks
    Thomson

    #2
    Hello Thomson,
    Thanks for writing in and I am happy to assist you.

    To assist you further can you please explain what you mean by a 1,2,3 bars and what exact value you want.

    I look forward to assist you further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi Joydeep,

      Thanks for your quickly respond. I want to write an indicator, which can compare the series of bar's zigzag.

      Thanks
      Thomson

      Comment


        #4
        Hello Thomson,
        You can get the ZigZag high low value from the following codes:
        Code:
        int highBar = this.ZigZag(DeviationType.Percent, 0.05, false).HighBar(0,1,100);
        double close = Close[highBar];
        Please refer here for more details


        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,602 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        12 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X