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 Belfortbucks, Today, 09:29 PM
      0 responses
      6 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Working...
      X