Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Making your own candlestick pattern

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

    Making your own candlestick pattern

    Hello All-

    I am trying to figure out how to make my own candlestick pattern to use in my strategy. It would be a 3 bar strategy and I want to be able to say if this pattern occurs to go long. I want to be able to name it, so I can reference things like bars since Pattern X occurred. The pattern should be something along the lines of

    Code:
     Low[3] > High[1]
     && Close[2] < Open[2]

    Basically I want to see when Bar 3 ago and Bar 1 ago don't have price that overlaps meaning Bar 2 ago was an aggressive move down.

    Thank you,

    Nick

    #2
    Hello njmeyer713,

    The easiest way would be to make a copy of the existing candlestick pattern indicator and then add your custom patterns to that. That indicator is already set up to be used as a signal and has the ability to name the patterns by using an enum.

    To make a copy you can open the original indicator then Right click -> Save as.

    Comment


      #3
      Jesse-

      Thank you for the response, is there an example of this that I can reference?

      Thank you,

      Nick

      Comment


        #4
        Hello njmeyer713,

        The CandleStickPattern indicator is included with NinjaTrader, you can view its code using the NinjaScript editor.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        71 views
        0 likes
        Last Post PaulMohn  
        Working...
        X