Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Doji candleStickPattern is not detected

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

    Doji candleStickPattern is not detected

    I noticed that sometimes Doji CandleStickPattern does not detect dojis. I tried it with trend strength values 1-5. In the example below it only detects one of the dojis:

    Click image for larger version

Name:	doji2.PNG
Views:	150
Size:	24.4 KB
ID:	1154985
    Click image for larger version

Name:	dji1.PNG
Views:	172
Size:	17.0 KB
ID:	1154984

    #2
    Hello mahdighorbanpour,

    Thank you for your post.

    In looking at the code, this would be expected. The CandleStickPattern indicator only will mark patterns if no other pattern is found in the two bars prior to it. Since in these cases the ones not marked immediately follow a marked pattern, we'd not expect to see those marked as well.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thanks for the reply, That clears things up. But is there any way to disable this behavior? How can I detect two consequent Dojis?

      Comment


        #4
        Hello mahdighorbanpour,

        Thank you for your reply.

        You could certainly modify the indicator yourself - you can open it in the NinjaScript Editor and modify the code so it highlights every doji. I'd suggest looking at the code around line 477 to start with modifications. You'll need to save a copy of the built in CandleStickIndicator to edit the code.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        72 views
        0 likes
        Last Post PaulMohn  
        Working...
        X