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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        59 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X