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, 05-11-2026, 05:56 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        202 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        366 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        284 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X