Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with trade signal

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

    #31
    That is in english. The code is the same as I have provided before. All done via "Set user defined variables" in actions and just comparisons to "User defined variables" in the actions side.
    Josh P.NinjaTrader Customer Service

    Comment


      #32
      Josh, thank you again.

      I am not sure if I am doing this right. I am attaching a file which i believe is the saved strategy i have created. To make it simple I have taken only one criterion in the conditions and created only the long side. What I have done is added to each set as follows:

      In Conditions In Actions

      set 1: variable0== 0, Variable0 = 1,
      set 2: Barssinceentry() > 0, Enterlong(defaultquantity, "")
      set 3: Variable 0==1, variable0 = 1
      Set 4: Bars > 0 EnterLong
      Set 5: Variable0== 2 Variable0 = 1
      Set 6: Bars etc
      Set 7: Variable0-- 3 variable0 = 1

      Set 2,4,6,8 are basically same.

      Now, this must be wrong, because I am getting a buy trade with the first signal and each subsequent one is only a signal and no trade.

      Sorry, cannot attach file, it tells me it is 177bites, only allowed 17.

      So please advise how i should change this. Thanks.

      Comment


        #33
        Please use the File->Utilities->Export NinjaScript then upload it here.
        Josh P.NinjaTrader Customer Service

        Comment


          #34
          No longs in a strategy

          Josh, I have used a strategy yesterday and worked fine. Today for some reason it is giving sell signals but no buy signals although according to the criteria there should be. I have checked the conditions etc. several times with no faults. If i run the same strategy in the analyser there are buys as well as sells. What kind of problem could be doing this?

          Have a happy thanksgiving.

          Comment


            #35
            You need to check your Control Center logs. In your Strategy Wizard you might also just add "Output message" action. That way you can look in the Output Window to see what your code is doing.

            Other than that you can also take a look at this tip: http://www.ninjatrader-support2.com/...ead.php?t=3418
            Josh P.NinjaTrader Customer Service

            Comment


              #36
              Josh, hope you had a good thanksgiving holiday.

              By "output message" action you mean "Log Message" because that is the only thing i found in the Misc. section of actions. Should that be added to each of the sets? Thanks.

              Comment


                #37
                You can use the "Print" action, this data will go to the Output window.
                RayNinjaTrader Customer Service

                Comment


                  #38
                  Josh, regarding the One fill per signal problem we discussed couple of days ago, here is what i have done (still not working):

                  In Conditions In Actions
                  Set 1: Variable0==0 Eneter long(DefaultQuantity,"") AND Variable0=1
                  Set 2: same EnterLong(DefaultQuantity,"")
                  Set 3: Variable0==0 EnterShort(DefaultQuantity,"") AND Variable0=1
                  Set 4: Same EnterShort(DefaultQuantity,"")
                  Set 5,6,7: Variable0==1,2or 3 EnterLong(DefaultQuantity,"") AND Variable0=1 in all.
                  Sets8,9,10 Variable0==1,2 or 3 EnterLong(DeafultQuantity,"") & Variable0=1 in both.

                  Is it supposed to be Variable 2,3 in Actions instead of 1 in all?

                  Comment


                    #39
                    Sorry, in Sets 7,8,9 actions, it is entershort not long.

                    Comment


                      #40
                      ju1234,

                      If you could just upload your strategy that would be easier for me to understand what you have. Thanks.
                      Josh P.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      576 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      334 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      101 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      553 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      551 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X