Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CandleStickPattern(ChartPattern.BearishHarami,)

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

    CandleStickPattern(ChartPattern.BearishHarami,)

    Using latest Ninjatrader 7.0.1000.4, has anyone seen a problem with ChartPattern.BearishHarami?

    I have the following line of code in a scipt
    if (CandleStickPattern(ChartPattern.BearishHarami, 0)[i+1] == 1) //1,2 BearishHarami
    and, it's showing a Bearish Harami when the second bar is equal to the 1st bar - when open[1] = close[2].
    Thought Harami should be when second bar is inside the 1st bar.

    Maybe there is some <= and >= in the code when it should be < and >

    Ditto for ChartPattern.BullishHarami. In the meantime I'm adding a workaround to my script
    Last edited by PeterBear; 04-19-2011, 07:29 AM.

    #2
    PeterBear, can you please post a screenshot of one of these patterns you think is off? I think you may be correct, but I'd like to double check with one of your observations.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Austin, here are 2 examples.... extract of code below and screen shots
      int i = 0;
      if (CandleStickPattern(ChartPattern.BullishHarami, 0)[i] == 1)
      // see 1st yellow arrow in one chart at 4:51

      if (CandleStickPattern(ChartPattern.BearishHarami, 0)[i] == 1)
      // see 1st yellow arrow in one chart at 4:34

      In each case the 2nd bar is not inside the 1st bar

      Funny thing is though if I have to thank you for the mistake cause the above gives much better results then if it was correct
      Attached Files
      Last edited by PeterBear; 04-19-2011, 07:06 AM.

      Comment


        #4
        Thanks PeterBear. We will take a look.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X