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
        http://www.ninjatrader.com/support/h...tml?zigzag.htm

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mg.watts, Today, 03:17 PM
        0 responses
        2 views
        0 likes
        Last Post mg.watts  
        Started by JTizz, Today, 01:20 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by omermirza, Today, 12:39 PM
        2 responses
        12 views
        0 likes
        Last Post omermirza  
        Started by mballagan, Today, 01:02 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by larkmail, Today, 12:30 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X