Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Zigzag indicator depth and backstep equivalence

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

    Zigzag indicator depth and backstep equivalence

    Hi all,

    I am developing a strategy using the Zigzag indicator. I am using the zigzag settings from another platform which has depth=12 deviation=5 and backstep=3. The Zigzag indicator in NinjaTrader has the deviation parameter, but I can't find the equivalent parameter for Depth and Backstep. Could someone tell me how to set the depth and backstep?

    My code simply says ZigZag(DeviationType.Percent, 5, true).ZigZagHigh[0], and there isn't anywhere I can set the depth and backstep.

    I have read through the zigzag indicator page: https://ninjatrader.com/support/help...t8/?zigzag.htm, but I am still not getting it.

    Thank you,

    #2
    Hello op1031,

    Unfortunately, I'm not certain what the other platform values are referring to.

    This thread will remain open for the community to provide suggestions.

    To me, the depth word sounds similar to deviationValue, backstep sounds similar to lookBackPeriod.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      To me, the depth word sounds similar to deviationValue, backstep sounds similar to lookBackPeriod.
      I thought deviationValue is deviation=5

      I saw the description of depth and backstep from here: https://fbs.com/analytics/guidebooks/zigzag-235
      Depth = the minimal number of candlesticks which won’t be regarded as a top/bottom if a top/bottom was already found using deviation
      Backstep = is the minimal number of candlesticks between local highs or lows.

      You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script.
      I am not sure if I am at the point yet. I am thinking the indicator is likely implemented the same way in different platforms, but probably different naming fields, so I am hoping to find the equivalence of Depth and Backstep in NinjaTrader's platform.
      Last edited by op1031; 02-15-2021, 12:34 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      132 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      65 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      118 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X