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

break high zigzag

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

    break high zigzag

    Hi,
    I am trying to accomplish the following:
    If price makes a lower high of a certain strength - and price breaks above that high - do something
    I was working on that with zigzag, I have some basics, but it does not really do what I want.
    What is the best way to do that?
    Attached Files

    #2
    Hello Keepsimple,

    Thank you for your note.

    You would want to create the logic in the strategy to find these points in the high or low values. You would then store them in a either a double variable or DataSeries for an indexed collection of the values.

    Your first condition would define the first high value then look for when you have another low high that would meet the condition and strength factor that you are looking for.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      KeepSimple
      I think the routine your trying to create has List written all over it. By relegating all the parameters about each swing create by the zigzag to a each item in the list you can access any of the swings at any point to compare Highs , Lows Number of bars what ever parameters you wish to save.

      J~

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by PaulMohn, Today, 05:00 AM
      0 responses
      8 views
      0 likes
      Last Post PaulMohn  
      Started by ZenCortexAuCost, Today, 04:24 AM
      0 responses
      6 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by ZenCortexAuCost, Today, 04:22 AM
      0 responses
      3 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by SantoshXX, Today, 03:09 AM
      0 responses
      16 views
      0 likes
      Last Post SantoshXX  
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      5 views
      0 likes
      Last Post DanielTynera  
      Working...
      X