Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 DayTradingDEMON, Today, 09:28 AM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Stanfillirenfro, Today, 07:23 AM
      9 responses
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by George21, Today, 10:07 AM
      0 responses
      8 views
      0 likes
      Last Post George21  
      Started by navyguy06, Today, 09:28 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      8 responses
      33 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X