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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        45 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        21 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        31 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X