Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator with displacement in strategy

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

    Indicator with displacement in strategy

    Hello,

    I have programmed an indicator with a displacement of 1 which appears perfectly on the chart.
    When I use it in my strategy, the displacement is not taken into account.
    What do I have to add to my strategy to have the signal initiated in line with my indicator.
    Thank you in advance.

    #2
    mombasa, you would need to reference the correct value of the indicator then, for example the SMA displaced 2 bars would then be SMA(Close, 10)[2], you would need to the same for your custom indicator.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Barry Milan, Yesterday, 10:35 PM
    5 responses
    16 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    11 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    8 views
    0 likes
    Last Post nandhumca  
    Working...
    X