• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ZigZag indicator on current bar

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

    ZigZag indicator on current bar

    Hi,

    So I've noticed that the ZigZag indicator doesn't continue and show up until the current bar. Is there anyway to change the properties of the indicator to show the trend change and also make sure the indicator is plotted on the current bar?

    Attaching some photos.

    #2
    Hello Ph0enixa27,

    What is the Calculate property set to?

    Is this real-time or historical?

    Is TickReplay enabled on the chart?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      This is what I have.

      Comment


        #4
        Hello Ph0enixa27,

        This screenshot appears to be for NinjaTrader 7. Your forum thread is in the NinjaTrader 8 section of the forums.

        I am moving your post to the NinjaTrader 7 section of the forums.

        You have CalculateOnBarClose set to true. When true the indicator will only update when the bar closes and will not update in real-time.

        Below is a public link to the help guide. Please see the CalculateOnBarClose property in the 'How to edit an indicator's parameters' section.
        https://ninjatrader.com/support/help...indicators.htm
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi,

          Still doesn't seem to be updating. Is it because this is in the demo version? Or do I have to change the code?

          Comment


            #6
            Hoping to get a reply!

            Comment


              #7
              Hello Ph0enixa27,

              Thank you for your patience.

              Zig Zag lines will only update upon the price movement between a swing high and a swing low exceeding the Deviation Value. By filtering minor price movements, the indicator makes trends easier to spot in all time frames. You could go into the code and plot the currentZigZagHigh and the currentZigZagLow values as they would update in realtime but a Zig Zag line is not confirmed until and new high or low is made and thus those values do not technically represent a Zig Zag until that occurs.

              You can find information on Zig Zag at the following publicly available link: https://www.investopedia.com/terms/z..._indicator.asp

              Please let me know if you have any questions.
              Patrick H.NinjaTrader Customer Service

              Comment


                #8
                Hi,

                I've attached three images in my first post. Could you let me know why in the first one the ZigZag indicator seems to be plotting on a more realtime basis compared to the second image? In both charts, new highs were made.

                Comment


                  #9
                  Hello Ph0enixa27,

                  Thank you for your response.

                  Your Deviation Value is 2 and your Deviation Type is Percent according to your post with the settings for the Zig Zag. That means the value must break 200% of the last swing high or low. Price is not shown in your screenshots nor are the instruments so I can only make a generalized analysis of those screenshots.

                  Please let me know if you have any questions.
                  Patrick H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by swcooke, Today, 02:01 PM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by guidoisot, Today, 01:11 PM
                  1 response
                  4 views
                  0 likes
                  Last Post NinjaTrader_PatrickG  
                  Started by martyn73, Today, 12:26 PM
                  0 responses
                  11 views
                  0 likes
                  Last Post martyn73  
                  Started by uday12, Today, 09:45 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post uday12
                  by uday12
                   
                  Started by uday12, Today, 08:25 AM
                  3 responses
                  20 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X