Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Donchian Channel Offset

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

    Help with Donchian Channel Offset

    Hi NT Support Community,

    I am seeking to displace my Donchian Channel in the Strategy Builder in the same way that I can displace it from the indicator window. I have tried multiple combinations with Bars Ago and Offset (with ticks and arithmetic) and I can't get it to work. For instance, I have tried inputting "1" for "Bars Ago" and I am not getting the result I am looking for. If you recommend doing this, please explain what I can expect to see, as it doesn't seem to be effective. I have two pictures below - one snap is what I am looking for (when I enter "1" in the displacement field for the Donchian Channel Indicator - the price clearly crosses over the top and bottom of the channel), and the other snap is what I get when I build the Donchian in the Strategy builder (price does not cross over the top and bottom of channel) - several combinations with Offset and Bars ago didn't seem to change that the price never crosses over the channel top or bottom in the strategy builder Donchian. I am being specific about this because other forum posts have suggested using Bars Ago and it isn't working for me.



    Attached Files

    #2
    Hello Austiner87, thanks for your post.

    The BarsAgo will shift the data numerically but not visually. So if you reference Dochain[1] and Close[0] for each bar, the most current price will come from Close[0] and the value the Dochain closed at 1 bar ago will come from Dochain[1]. It's not possible to edit the displacement of an indicator on the chart that is added by a strategy. As a test, you could take a simple SMA crossabove/below just like the SampleMACrossover strategy. If you perform the calculation of each SMA 1 bar ago, you will see the actions of bar index 0 rely on what happened 1 bar ago.

    Please let me know if this does not resolve your inquiry.

    Comment

    Latest Posts

    Collapse

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