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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        15 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        59 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        42 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        47 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        38 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X