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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        62 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        134 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X