Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:	107
Size:	24.4 KB
ID:	1154985
    Click image for larger version

Name:	dji1.PNG
Views:	131
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.
    Kate W.NinjaTrader Customer Service

    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.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by RubenCazorla, 08-30-2022, 06:36 AM
        3 responses
        77 views
        0 likes
        Last Post PaulMohn  
        Started by f.saeidi, Yesterday, 12:14 PM
        9 responses
        23 views
        0 likes
        Last Post f.saeidi  
        Started by Tim-c, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        4 views
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,772 views
        0 likes
        Last Post Leafcutter  
        Working...
        X