Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaced Indicators

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

    Displaced Indicators

    Hi,
    I already found out how to plot a horizontal (= time axis, i. e. plot the same indicator with the same settings displaced 3 bars to the right) displaced indicator. But now I want to do calculations/create strategies with this displaced indicator (i. e. if the "not displaced" indicator crosses the "displaced" indicator do something => see attached pic). How to address the displaced indicator within a strategy?
    Any help is highly appriciated.
    firstbrain
    Attached Files

    #2
    Hello firstbrain,
    Welcome to the forum and I am happy to assist you.

    Displayed is a visual setting only.

    You can however increase the look back period of the indicator to get the displaced value. For example if you are setting the displayed value to 3 then please set the lookback period of the indicator to 3. Thus instead of calling the indicator as say MyIndicator()[0], you will call it as MyIndicator()[3].

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

    Comment


      #3
      Joydeep,
      thank u very much for the quick response.
      I had the same idea, but had a little mistake in understanding the logic behind.
      Now it seems to work. Will test it back and forth in realtime. The backtested results are just unbelievable though.
      Will inform u when the my account crosses the first million USD ;-)
      Again many thx,
      firstbrain

      Comment


        #4
        Hello firstbrain,
        Thanks for your note.

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X