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

Displacement in indicator

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

    Displacement in indicator

    Hello. If I set displacement in indicator parameter to 30 - this mean it shows me value of indicator 30 days ago, but will plot in the chart to present? If I set "-30" - it calculates the same value for 30 days ago and will be plotted to 30th day before present?

    #2
    Hello alexstox,
    Yes, correct. If you set displacement to 30 then the value of the indicator at 30 bars ago will be the current value.

    If you set it as -30 then the current value will be plotted at bar 30 and there will be no values from bar 29 to the current bar.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      eureka!

      I see. It simply moves indicator "as is" on 30 periods to the left if set "-30" and 30 p to right if "30"

      Comment


        #4
        Hello alexstox,
        Yes, right. The Displacement property only displaced the plot values.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rjbtrade1, 11-30-2023, 04:38 PM
        2 responses
        72 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Started by suroot, 04-10-2017, 02:18 AM
        5 responses
        3,021 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Stanfillirenfro, Today, 07:23 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        2 responses
        22 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by olisav57, Yesterday, 07:39 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X