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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X