Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry / Exit Strategy

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

    Entry / Exit Strategy

    I created 2 sets using the Strategy Wizard. Set 1 is suppose to enter the market and Set 2 is suppose to exit the market. The problem is that it is working discretionary, which means that while testing it, it enters the market in Set 2, instead of Set 1, eventhough I made sure it says "Enter Long" in Set 1 within "do the following" in the wizard.

    #2
    Your understanding is correct. Here is how it works:

    - if Set1 is true do something
    - if Set2 is true, no matter if Set1 is true or no, do something else

    -> Set1 and Set2 are just different and independent conditions

    Comment


      #3
      Question: How can I create a condition using the wizard that meets the following:

      - If Set 1 is true do something
      - Set 2 won't execute until Set 1 is true
      Maybe this is not built in different Sets maybe is within the same Set, I'm not sure.

      Please advice.

      Comment


        #4
        Unfortunately this is not doable within the wizard. Of course you could code it in NinjaScript.

        Comment


          #5
          Can you send me a sample code that do this?

          Comment


            #6
            Actually you could try this in wizard:
            - enter your Set1 conditions and add your Set1 actions
            - switch to Set2 and reenter the same condition you had on Set1 and your additional Set2 conditions and add your Set2 actions.

            This should do the trick

            Comment


              #7
              My concern is that in Set 1 I'm very specific in terms of "Bar0 > Bar1..." and I'm not sure if this would work. Will it work anyway?

              Comment


                #8
                Any condition which works for Set1 will work for Set2

                Comment


                  #9
                  The series of conditions entered in a specific set, example Set 1, are they treated as "AND" or as "OR"?

                  Comment


                    #10
                    >> are they treated as "AND"
                    Correct

                    Comment


                      #11
                      I use a specific set of conditions such as Bar1 > Bar2 among others to enter a position (Let say for example Set 1 to "Enter Long"). My concern is that if I do what you suggest in Post #6, to re-enter the same conditions in Set 2 (Remember that I'm specific in terms of how many bars ago to execute an "Enter Long") and if I include the condition to Exit the Long position, then I'm afraid that the Exit won't execute, because is reading a series of conditions that are not related to what I want to Exit the position already in because the exit is not based on the amount of Bars I specify in Set 1.

                      Comment


                        #12
                        OK, then I'm am a loss on what you want to achieve. You said below that Set2 only should be triggered as conditions of Set1 are true. Now you're saying, that's not the case ?!?

                        Can you please EXACTLY explain what you want to achieve?

                        Comment


                          #13
                          Yes is the case, don't get me wrong. I'll execute the Strategy tonight with the new recommendation you gave me and I'll let you know how it goes. Thanks.

                          Comment


                            #14
                            You can also set a variable in Set 1 and check the value of the variable in Set 2.

                            That way you don't have to maintain the same set of conidtions in Set 1 and Set 2 as you tweak them

                            Comment


                              #15
                              I have another question:

                              Let say I'm using the SMA indicator with a 1 day chart to get in with a market order. What I've seen so far is that the order gets in position and executed at the closing of the bar that crosses above / below the SMA. What I'll like to see is to get in the market order as soon as the bar touches the SMA, not at the closing of the bar.

                              How can I do this using the Strategy Wizard?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by geddyisodin, 04-25-2024, 05:20 AM
                              8 responses
                              60 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by jxs_xrj, 01-12-2020, 09:49 AM
                              4 responses
                              3,287 views
                              1 like
                              Last Post jgualdronc  
                              Started by Option Whisperer, Today, 09:55 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post Option Whisperer  
                              Started by halgo_boulder, 04-20-2024, 08:44 AM
                              2 responses
                              22 views
                              0 likes
                              Last Post halgo_boulder  
                              Started by mishhh, 05-25-2010, 08:54 AM
                              19 responses
                              6,189 views
                              0 likes
                              Last Post rene69851  
                              Working...
                              X