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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      72 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X