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 Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      2 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,771 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X