Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to figure out which condition group trigger the order

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

    How to figure out which condition group trigger the order

    Dear Team,
    I have many condition groups in my strategy.

    How can figure out which condition group trigger the order?

    I waste lot of time to find the exact condition group that trigger the wrong order,so any easy way I can find out it?

    So that I can modify the condition group quickly?

    #2
    Hello williamzz,

    The most simple way would be to use prints or the Signal names. If you have more than one possible entry, using unique Signal Names can help in determining which condition set was used. Otherwise as an action you could add a Print with some custom text. This does also mean you need the NinjaScript output window open while running the strategy.

    I look forward to being of further assistance.

    Comment


      #3
      Print the signal name on the chart at the entry bar.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Thank you for the reply.Can I just print the condition group name of the strategy builder,I build my strategy there,there are so many group conditions to one long or short entry,I can't adding signal name for each condition,because my strategy is many group conditions to one action buy or sell,not each condition group to each buy or each sell.It mean if(condition group1 or condition group2 or condition group3){long}

        Now I only need the text of "condition group1" "condition group2""condition group3"

        Comment


          #5
          Hello williamzz,

          To clarify, do you mean inside each set that you want to print the groups and not for the whole condition in general? A group its self has no action so that is not possible, you can only print for a whole Set.

          You can use a print in a set, like Set1 could have a print which includes what groups you have in set1, is that what you want?

          I look forward to being of further assistance.
          Last edited by NinjaTrader_Jesse; 08-01-2019, 03:19 PM.

          Comment


            #6
            Originally posted by williamzz View Post
            Thank you for the reply.Can I just print the condition group name of the strategy builder,I build my strategy there,there are so many group conditions to one long or short entry,I can't adding signal name for each condition,because my strategy is many group conditions to one action buy or sell,not each condition group to each buy or each sell.It mean if(condition group1 or condition group2 or condition group3){long}

            Now I only need the text of "condition group1" "condition group2""condition group3"
            What you are describing is too complex to do in the Strategy Builder.

            Essentially, you have to construct a signal name that is based on the conditions that are satisfied for each entry.

            Here is one way to do it, but you will have to unlock the code, and manually code it.

            On each OBU pass, you will:
            1. Nullify each partial and complete string that you used for your order's signal name.
            2. When each condition is satisfied you append an appropriate string to the existing signal name. Thus you construct a signal name that encompasses each condition that is satisfied.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            63 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            139 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X