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

Negative Displacement

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

    Negative Displacement

    Hello,
    Is it possible to see a negatively displaced indicator in the current bar?
    Thanks

    #2
    Hello,

    Yes you can use both positive values for displacement.

    Putting a displacement of -10 would set a Moving Average to 10 bars behind the current bar.

    Using a displacement of +10 would set a Moving Average to 10 bars ahead of the current bar.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Matthew, thanks for the reply. If I use a -10 displacement then the indicator lags 10 bars behind the current bar. Is there a way to see that -10 displacement in the current bar? Thanks

      Comment


        #4
        Hello CaptainAmericaXX,

        If you want to see the indicator value for the current bar, then don't use displacement.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Ryan, thanks for the reply, but a negatively displaced indicator is visually different than a 0 displaced indicator. Is there a reason why a positively displaced indicator will show in the current bar, but a negatively displaced indicator shows the amount of negative bars behind?

          Comment


            #6
            Displacement only affects the visual position of the indicator. The values are the same.

            Positive displacement shifts the indicator visually forward.

            Negative displacement shifts the indicator visually back.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by XXtrader, Yesterday, 11:30 PM
            2 responses
            11 views
            0 likes
            Last Post XXtrader  
            Started by Waxavi, Today, 02:10 AM
            0 responses
            6 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by TradeForge, Today, 02:09 AM
            0 responses
            11 views
            0 likes
            Last Post TradeForge  
            Started by Waxavi, Today, 02:00 AM
            0 responses
            2 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by elirion, Today, 01:36 AM
            0 responses
            7 views
            0 likes
            Last Post elirion
            by elirion
             
            Working...
            X