• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inverse condition in the Strategy Builder

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

    Inverse condition in the Strategy Builder

    Hi. I would like to know to see if you can help me. Is it possible to configure an inverse condition in the Strategy Builder? That is to say when the set of conditions established by the indicators in the Set are given, the program executes the action of NOT OPERATING, that is, not of entry to any order. I hope I have explained clearly.

    Thanks for your time and regards.

    #2
    Hello Rober182,

    I wanted to clarify your question, I have not completely understood this as written.

    Are you saying that if all of the conditions in your set are true, the condition does not happen? So the condition should happen only when the conditions are otherwise false?

    If that is the case, you could do that with a user variable. Setting the variable to true when the sets conditions are true, and in a second set checking if that variable is not true to do the action. When the variable is not true, it would work inversely of the other condition. You would also need to reset the variable on each bar before this happens, so this would take 3 sets total.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Sorry for the grammar, I write from Spain and I use a translator. It is correct, if all the conditions as a whole are true, the condition does not occur. Thanks for the assistance, Jesse.

      Comment


        #4
        Hello Rober182,

        Thank you for confirming.

        Yes in that situation you could use 3 sets and a variable like I had described. In a first set, set the variable to false to reset it for each bar, there is no condition required just the action of setting the variable. In a second set, check your normal condition which you want the inverse of, instead of the current action, set the variable to true. In a third set, check if the variable is not true to enact the action for each bar where set 2 did not become true otherwise when set 2 is true, set 3 is not true.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks for the assistance, Jesse.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Erwin Beckers, 11-04-2018, 02:39 AM
          4 responses
          69 views
          2 likes
          Last Post brucerobinson  
          Started by ntbone, Today, 01:25 AM
          0 responses
          5 views
          0 likes
          Last Post ntbone
          by ntbone
           
          Started by bomanpbm, Yesterday, 09:27 PM
          0 responses
          5 views
          0 likes
          Last Post bomanpbm  
          Started by tgn55, Yesterday, 08:47 AM
          0 responses
          11 views
          0 likes
          Last Post tgn55
          by tgn55
           
          Started by ballboy11, 05-04-2019, 10:26 AM
          6 responses
          61 views
          0 likes
          Last Post Kermit
          by Kermit
           
          Working...
          X