Announcement

Collapse
No announcement yet.

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