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

Pattern recognition concept

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

    Pattern recognition concept

    Hello,
    I'm trying to wrap my head around a concept. I think the solution could be solved by using a loop, but I'm not good at loops so I hoping I can get some help.
    If someone were trying to identify say a head and shoulders pattern over and over again through the course of a month and each occurrence needed to be labelled and accessed as it's own unique instance, how would one go about doing this?
    Thanks

    #2
    Hello,

    Thanks for your post.

    Once you have created your condition to identify the head and shoulders pattern, you could use an "if" statement to draw an object where the pattern occurred. As far as labeling each occurrence as a unique instance, you could use an increment operator that would increase each time the loop executed and draw that number on your chart.

    I have located this indicator in the downloads section of the forum to get you started. It looks like all of the logic should already be there to locate the patterns, and you would only need to customize it to treat each occurrence as unique.

    http://www.ninjatrader.com/support/f...catid=4&id=574

    Please let me know if you have any further questions.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by CaptainAmsericaXX View Post
      Hello,
      I'm trying to wrap my head around a concept. I think the solution could be solved by using a loop, but I'm not good at loops so I hoping I can get some help.
      If someone were trying to identify say a head and shoulders pattern over and over again through the course of a month and each occurrence needed to be labelled and accessed as it's own unique instance, how would one go about doing this?
      Thanks
      Thanks Josh, I'm also trying to create an indicator that only shows a specific type of cup and handle pattern. There's lots of requirements so it's a bit tricky.
      Last edited by ChristianBen; 04-26-2020, 04:28 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      124 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Yesterday, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Yesterday, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Yesterday, 03:01 PM
      2 responses
      22 views
      0 likes
      Last Post helpwanted  
      Working...
      X