Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OneBlackCrow and LongLeggedDoji patterns - available in NT?

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

    OneBlackCrow and LongLeggedDoji patterns - available in NT?

    Is there an equivalent to OneBlackCrow pattern in Ninja? I can only find ThreeBlackCrows under the candlestick indicator.
    https://tlc.thinkorswim.com/center/r...BlackCrow.html

    Is there an equivalent to LongLeggedDoji pattern in Ninja? I can only find Doji under the candlestick indicator.
    https://tlc.thinkorswim.com/center/reference/Patterns/candlestick-patterns-library/bearish-and-bullish/LongLeggedDoji

    Thanks!

    Last edited by darkgreen; 07-17-2020, 08:52 AM.

    #2
    Hi darkgreen, thanks for your question.

    Those patterns would need to be programmed into a custom indicator. I can submit a feature request to get these two patterns added to the CandleStickPattern indicator. I'll follow up with a feature tracking ID.

    Best regards.

    Comment


      #3
      Thank you. If anyone here has these two patterns written in c#, please share.

      Comment


        #4
        Originally posted by NinjaTrader_ChrisL View Post
        Hi darkgreen, thanks for your question.

        Those patterns would need to be programmed into a custom indicator. I can submit a feature request to get these two patterns added to the CandleStickPattern indicator. I'll follow up with a feature tracking ID.

        Best regards.
        Here are the calculations, perhaps it makes more sense / makes it easier now?
        IsLongWhite=
        • Its Close price is higher than the Open price;
        • Its body is longer than each shadow;
        • Its body is longer than the average body size calculated for the specified number of preceding candles

        IsLongBlack=
        • its close price is lower than its open price;
        • its body is longer than either of the shadows;
        • its body is longer than the average body size calculated for the specified number of preceding candles.
        OneBlackCrow:
        input length = 20;
        input trendSetup = 3;

        plot Bearish = IsAscending(open, trendSetup)[1] and
        IsLongWhite(length)[1] and
        IsLongBlack(length) and
        open < close[1] and
        open > open[1] and
        close < open[1];



        # LongLeggedDoji
        input length = 20;
        input trendSetup = 2;
        input shadowFactor = 0.75;

        assert(shadowFactor >= 0, "'shadow factor' must not be negative: " + shadowFactor);

        def ShadowHeight = shadowFactor * Average(BodyHeight(), length);
        def IsLongShadows = high - Max(open, close) > ShadowHeight and
        Min(open, close) - low > ShadowHeight;
        def IsDoji = IsDoji(length);

        plot Bearish = IsAscending(MidBodyVal(), trendSetup) and
        IsDoji and
        IsLongShadows;

        plot Bullish = IsDescending(MidBodyVal(), trendSetup) and
        IsDoji and
        IsLongShadows;





        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X