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 cls71, Today, 04:45 AM
      0 responses
      1 view
      0 likes
      Last Post cls71
      by cls71
       
      Started by mjairg, 07-20-2023, 11:57 PM
      3 responses
      213 views
      1 like
      Last Post PaulMohn  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      544 views
      0 likes
      Last Post PaulMohn  
      Started by GLFX005, Today, 03:23 AM
      0 responses
      3 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      12 views
      0 likes
      Last Post XXtrader  
      Working...
      X